CPM - Web Application Error: 9307. Timeout Error. Failed to Find Element
Symptom
The Idira Privileged Credential Management (CPM) is unable to locate specific elements while executing operations through the Privileged Vault Web Access (PVWA) on a Web Application Plugin. The following error has been encountered: Timeout error. Failed to find element in page Code 9307.
Manual verifypass has been conducted and confirmed to be functioning correctly. Following Errors can be seen from CPM Debug Log:
16/10/2024 04:08:18.387 | ERROR -> HTMLPageController : FindElement -> Timeout error. Element '/html/body/form/textbox[1]/div[1]/input' was not found in new page.
16/10/2024 04:08:18.387 | Info -> HTMLPageController :: CloseBrowser -> START
16/10/2024 04:08:18.623 | Info -> ProcessUtilities :: KillProcess -> Failed to kill browser process. Exception Details: System.ArgumentException: Process with an Id of 8348 is not running.
at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at System.Diagnostics.Process.GetProcessById(Int32 processId)
at CyberArk.WebAutomationUtils.ProcessUtilities.KillProcess(Int32 processId, String errorMessage)
16/10/2024 04:08:18.623 | Info -> HTMLPageController :: CloseBrowser -> END
16/10/2024 04:08:18.623 | Info -> HTMLPageController :: KillDriverProcess -> START
16/10/2024 04:08:18.623 | Info -> ProcessUtilities :: KillProcess -> Failed to close driver. Exception Details: System.ArgumentException: Process with an Id of 4500 is not running.
at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
at System.Diagnostics.Process.GetProcessById(Int32 processId)
at CyberArk.WebAutomationUtils.ProcessUtilities.KillProcess(Int32 processId, String errorMessage)
16/10/2024 04:08:18.623 | Info -> HTMLPageController :: KillDriverProcess -> END
16/10/2024 04:08:18.623 | Info -> HTMLPageController :: DeleteSessionTempFolder -> START
16/10/2024 04:08:18.623 | Info -> FolderUtilities :: DeleteFolder -> Searching for folder 'C:\Users\PluginManagerUser\AppData\Local\Temp\CPMChromeData\PluginManagerUser\RootWebsite-TestWebsite'
16/10/2024 04:08:18.623 | Info -> FolderUtilities :: DeleteFolder -> Attempting to delete folder.
16/10/2024 04:08:18.764 | Info -> FolderUtilities :: DeleteFolder -> Successfully deleted folder.
16/10/2024 04:08:18.780 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Return code: 9307.
16/10/2024 04:08:18.780 | ERROR -> BaseAction :: SetPlatformOutputMessage -> Failure : Verify process failed - Timeout error. Failed to find element '/html/body/form/textbox[1]/div[1]/input' in page. Refer to the log for more information.
Environment
12.6;13.0;13.2;14.0;14.2 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Cause
The issue may arise from one of the following potential causes:
- The prerequisites outlined in the relevant documentation have not been followed.
- The web element was incorrectly specified in the Plugin's WebFormFields.
- The user account running the CPM Service lacks permissions to access the folder: C:\Users\PluginManagerUser\AppData\Local\Temp\CPMChromeData\PluginManagerUser\RootWebsite-TestWebsite
Resolution
Please follow below steps for each identified cause:
- Update DLLs on the CPM Server:
- Download the following two plugins and transfer the zip files to the CPM server:
- Web Application CPM Plugin Framework: https://community.cyberark.com/marketplace/s/#a352J000000WU3aQAG-a392J0000013WwCQAU
- Credentials Management .NET SDK:
https://community.cyberark.com/marketplace/s/#a3550000000EkA0AAK-a3950000000jjoOAAQ
- Latest Stable 32-bit Chrome Driver:
https://googlechromelabs.github.io/chrome-for-testing/#stable
**After Unzipping Plugins and driver
Backup the Bin Folder:
- Default location: <drive>:\Program Files (x86)\CyberArk\Password Manager\bin.
Copy Unzipped Content:
- Copy all unzipped content into the bin folder, allowing it to overwrite old files.
Unblock Files:
- Open PowerShell as an administrator and navigate to the bin folder (Default path: <drive>:\Program Files (x86)\CyberArk\Password Manager\bin). Run the following command to unblock any files in that folder:
Get-ChildItem -Recurse | Unblock-File
Note: There is no response/output for the command, that is normal.
**Additional Checks
- Ensure that Google Chrome 32-bit is installed on the CPM server. If it’s not installed, download it from https://chromeenterprise.google/intl/en_US/download/?modal-id=download-chrome.
- Verify that .NET Framework 4.8 is installed on the CPM machine, as this is required for CPM plugins.
- Set the following parameters in Platform Settings > Automatic Password Management > Additional Policy Settings > Parameters:
a. Browser - Chrome
b. BrowserPath - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Note: Ensure that chrome.exe is located in this path on the CPM server.
c. DriverFolder - C:\Program Files (x86)\CyberArk\Password Manager\bin
- Input Correct Element ID/Name/XPaths. Ensure that correct element identifiers are provided in the WebFormFields found in Platform Settings.
- Permissions for User Running CPM Service:
Grant the user running the CPM service permissions to access the folder:
C:\Users\PluginManagerUser\AppData\Local\Temp\<CPMChromeData/CPMEdgeData>\PluginManagerUser\<Folder>
Note: Path may vary in different environments.