Failed to close driver. Exception Details: System.ComponentModel.Win32Exception (0x80004005): Access is denied

Failed to close driver. Exception Details: System.ComponentModel.Win32Exception (0x80004005): Access is denied

163
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 15:54 PM


Symptom


When checking the PSM dispatcher logs we can see error lines as described below:


PSMDU018E Dispatcher error: [HTMLPageController :: CloseDevToolsSession -> Failed to close devtools port. Error: {0} Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.


PSMDU019I Dispatcher trace message: [ProcessUtilities :: KillProcess -> Failed to close driver. Exception Details: System.ComponentModel.Win32Exception (0x80004005): Access is denied


PSMDU018E Dispatcher error: [ConnectionComponentController :: Main -> OpenQA.Selenium.WebDriverException: Cannot start the driver service onĀ http://localhost:21093/





Environment


11.5;12.2;12.6;13.2;13.1;14.0;14.2;14.3;14.4 Privilege Cloud Privilege Cloud PSM

Privilege Cloud and PSM self hosted



Cause


A Terminal Server agent is added and enabled to the Windows Server when SCCM is installed or updated. The Paloalto Terminal Server (TS) agent blocks/uses the ports that Chrome Driver uses to make the web connection.


This agent listens on its default Source Port Allocation Range (20,000-39,999) which is similar to ChromeDriver range, 20607 as example.




Resolution


1) Do not install Paloalto Terminal Server (TS) agent as part of SCCM configuration.

2) Paloalto Terminal Server (TS) agent ports can be changed to avoid ChromeDriver ports overlapping. Please see, https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-admin/user-id/map-ip-addresses-to-users/configure-user-mapping-for-terminal-server-users/configure-the-palo-alto-networks-terminal-services-agent-for-user-mapping



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000tuECAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail