response code 500 error: chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed

106 views
Skip to first unread message

pric...@gmail.com

unread,
Apr 10, 2024, 10:59:15 AM4/10/24
to Selenium Users
Hello everyone,

We've recently encountered and error on a jenkins run which uses an amazon amd64 linux instance where i can no longer connect to the browser with selenium, chromedriver etc.

it is now using selenium manager to get the browser and chromerdiver, but it just fails continually. The code below is where i have specified version 114 in a desperate attempt to get it to work, but all version fail the same way.

Any suggestions welcome

here is the error log 

15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] chromedriver not found in PATH 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] chrome not found in PATH 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] chrome 114 not found in the system 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Discovering versions from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Required browser: chrome 114.0.5735.133 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Downloading chrome 114.0.5735.133 from https://storage.googleapis.com/chrome-for-testing-public/114.0.5735.133/linux64/chrome-linux64.zip 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] chrome 114.0.5735.133 is available at /home/jenkins/.cache/selenium/chrome/linux64/114.0.5735.133/chrome 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Reading chromedriver version from https://chromedriver.storage.googleapis.com/LATEST_RELEASE_114 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Required driver: chromedriver 114.0.5735.90 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Downloading chromedriver 114.0.5735.90 from https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Driver path: /home/jenkins/.cache/selenium/chromedriver/linux64/114.0.5735.90/chromedriver 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager] Browser path: /home/jenkins/.cache/selenium/chrome/linux64/114.0.5735.133/chrome 15:53:33 2024-04-10 14:53:27 FINE Selenium [SeleniumManager getDriverPath] Using driver at location: /home/jenkins/.cache/selenium/chromedriver/linux64/114.0.5735.90/chromedriver, browser at location /home/jenkins/.cache/selenium/chrome/linux64/114.0.5735.133/chrome 15:53:33 2024-04-10 14:53:27 FINE Selenium [RemoteWebDriver] Executing: newSession [null, newSession {capabilities=[Capabilities {browserName: chrome, goog:chromeOptions: {args: [--no-sandbox, headless=new, --window-size=1920,1080, --remote-allow-origins=*], binary: /home/jenkins/.cache/seleni..., extensions: [], prefs: {download.default_directory: /home/jenkins/pdfDocuments}}}]}] 15:53:33 2024-04-10 14:53:27 FINE Selenium [DriverService start] Starting driver at /home/jenkins/.cache/selenium/chromedriver/linux64/114.0.5735.90/chromedriver with [--port=7320] 15:53:33 2024-04-10 14:53:27 FINE Selenium [UrlChecker waitUntilAvailable] Waiting for [http://localhost:7320/status] 15:53:33 2024-04-10 14:53:27 FINE Selenium [UrlChecker] Polling http://localhost:7320/status 15:53:33 2024-04-10 14:53:27 FINE Selenium [JdkHttpClient execute0] Executing request: (POST) /session 15:53:33 2024-04-10 14:53:27 FINE Selenium [JdkHttpClient execute0] Ending request (POST) /session in 161ms 15:53:33 2024-04-10 14:53:27 FINE Selenium [UrlChecker waitUntilUnavailable] Waiting for http://localhost:7320/shutdown 15:53:33 2024-04-10 14:53:27 FINE Selenium [UrlChecker] Polling http://localhost:7320/shutdown 15:53:33 2024-04-10 14:53:27 FINE Selenium [ExternalProcess] completed to copy the output of process 3946 15:53:33 2024-04-10 14:53:27 FINE Selenium [UrlChecker] Polling http://localhost:7320/shutdown 15:53:33 2024-04-10 14:53:27 FINE Selenium [RemoteWebDriver] Exception: newSession Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited abnormally. 15:53:33 (unknown error: DevToolsActivePort file doesn't exist) 15:53:33 (The process started from chrome location /home/jenkins/.cache/selenium/chrome/linux64/114.0.5735.133/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

thanks
Reply all
Reply to author
Forward
0 new messages