PGU - "Failed to initialize Google Chrome" when create web plugin

PGU - "Failed to initialize Google Chrome" when create web plugin

256
Created On 11/10/26 10:53 AM - Last Modified 11/10/26 15:51 PM


Symptom


When users launch PGU and start recording web applications, the error below pops up:
image.png

In the PGU log, the error below appears:

xx/xx/2024 05:10:20.341 | ERROR -> SeleniumDriverService`2 :: OpenWebBrowser -> Failed to open browser Exception Details: System.InvalidOperationException: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 121.0.6167.140 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  (Driver info: chromedriver=90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}),platform=Windows NT 10.0.20348 x86_64) (InsecureCertificate)
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options)
   at Cyberark.PGU.PSMCC.Logic.ChromeSeleniumDriverService.CreateDriver(ChromeOptions driverOptions)
   at Cyberark.PGU.PSMCC.Logic.SeleniumDriverService`2.GetDriver(String driverFolder, TDriverOptions driverOptions)
   at Cyberark.PGU.PSMCC.Logic.SeleniumDriverService`2.OpenWebBrowser(DriverParameters parameters, TDriverOptions driverOptions, String browserProcessName, CancellationToken ct)
06/02/2024 05:10:20.341 | ERROR -> ChromeService :: OpenWebBrowser -> session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 121.0.6167.140 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  (Driver info: chromedriver=90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}),platform=Windows NT 10.0.20348 x86_64) (InsecureCertificate) 
06/02/2024 05:10:20.341 | ERROR -> RecordingControlViewModel :: PreapreRecording -> Start record failed, System.InvalidOperationException: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 121.0.6167.140 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  (Driver info: chromedriver=90.0.4430.24 (4c6d850f087da467d926e8eddb76550aed655991-refs/branch-heads/4430@{#429}),platform=Windows NT 10.0.20348 x86_64) (InsecureCertificate)
   at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options)
   at Cyberark.PGU.PSMCC.Logic.ChromeSeleniumDriverService.CreateDriver(ChromeOptions driverOptions)
   at Cyberark.PGU.PSMCC.Logic.SeleniumDriverService`2.GetDriver(String driverFolder, TDriverOptions driverOptions)
   at Cyberark.PGU.PSMCC.Logic.SeleniumDriverService`2.OpenWebBrowser(DriverParameters parameters, TDriverOptions driverOptions, String browserProcessName, CancellationToken ct)
   at Cyberark.PGU.PSMCC.Logic.ChromeService.OpenWebBrowser(Int32 actionTimeout, Int32 pageLoadTimeout, String url, CancellationToken ct)
   at Cyberark.PGU.PSMCC.Logic.WebRecordingService.StartRecord(Int32 actionTimeout, Int32 pageLoadTimeout, String url, CancellationToken ct)
   at Cyberark.PGU.PSMCC.UI.UserControls.ViewModels.RecordingControlViewModel.PreapreRecording()

 


Environment


12.2;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1;14.0 Privilege Cloud Plug-in Generator Utility (PGU)

Cause


It is because the version of Chrome driver included in the PGU installer does not match the Chrome browser version.

Resolution


Update the Chrome driver to match the Chrome browser version.
The driver path can be found in the log, for example:
xx/xx/2024 05:10:18.137 | Info -> ChromeService :: CreateParametersObject -> Driver folder: C:\TEMP\Plugin Generator Utility-v1.7.0.255 - v2\Selenium

In the example, the Chrome driver path is C:\TEMP\Plugin Generator Utility-v1.7.0.255 - v2\Selenium


Actions
  • Print
  • Copy Link

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