CPM - Web Application using MS EDGE getting Error code:9999 or 9300
932
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:03 PM
Symptom
When using MS Edge as the browser for Web Application plugin.
Getting below error:-
pm_error.log
==========
CACPM404E Verifying Password Safe: xxxxx, Folder: Root, Object: xxxxx failed (try #0). The Password was disabled because an unrecoverable error was detected. Code: 9999, Error: Execution error. General error occurred. Review the logs for more information. Error code:9999
OR
CACPM344E Verifying Password Safe: xxxxx, Folder: Root, Object: xxxxx failed (try #0). Code: 9300, Error: Execution error. Verify process failed - Failed to initialize web browser, The selected browser was not found. Validate that the browser is installed, excluded for the hardening and the parameter 'BrowserPath' is configured correctly. Error code:9300
Debug.log
========
15/08/2024 05:33:26.579 | ERROR -> HTMLPageController :: CloseBrowser -> Failed to close browser. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
at CyberArk.WebAutomationUtils.HTMLPageController.CloseBrowser()
15/08/2024 05:33:26.579 | Info -> HTMLPageController :: CloseBrowser -> END
15/08/2024 05:33:26.579 | Info -> HTMLPageController :: KillDriverProcess -> START
15/08/2024 05:33:26.579 | Info -> ProcessUtilities :: KillProcess -> Failed to close driver. Exception Details: System.ComponentModel.Win32Exception (0x80004005): Access is denied
AND
15/08/2024 05:37:40.356 | ERROR -> BaseAction :: HandleGeneralError -> Got exception: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:59305/session timed out after 60 seconds. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
Environment
11.4;11.5;11.6;11.7;12.2;12.6;13.0;14.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)
- Central Policy Manager (CPM)
- Web Applications for CPM
Cause
Developer tools in MS EDGE is disabled by GPO or Registry key.
Resolution
MS Edge Developer tools is required for msedgedriver.exe to automate Microsoft Edge browser.
Below Microsoft article for reference.
https://learn.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=c-sharp#developer-tools-availability-policy
How to enable MS Edge DevTools via Registry:-
=====================================
Create the key (DWORD (32-bit)) under HKLM\SOFTWARE\Policies\Microsoft\Edge, Value: DeveloperToolsAvailability = 1.
Once the above registry set to 1, make sure that MS Edge is not running at the background.
Running Task Manager to check, if MS Edge still running, End task all the browser.
After that we can perform Verify, Change or Reconcile on the target account.