Getting Parent suite setup failed: SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google

Can someone please help. we are able to run the tests locally without docker but facing issues in cicd.

we are trying to Set up robotframework in docker container Debian GNU/Linux 11 (bullseye), when we run the test cases for UI it fails. we are using selenium library and chrome browser

This is my requirements.txt
attrs==23.2.0
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
decorator==5.1.1
h11==0.14.0
idna==3.7
jsonpath-ng==1.6.1
jsonpath-rw==1.4.0
jsonpath-rw-ext==1.2.2
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
objectpath==0.6.1
outcome==1.3.0.post0
pbr==6.0.0
ply==3.11
pycparser==2.22
pyjsonselect==0.2.2
PySocks==1.7.1
referencing==0.35.1
requests==2.31.0
robotframework==7.0
robotframework-httpctrl==0.3.1
robotframework-jsonlibrary==0.5
robotframework-jsonschemalibrary==1.0
robotframework-jsonvalidator==2.0.0
robotframework-pythonlibcore==4.4.1
robotframework-requests==0.9.7
robotframework-seleniumlibrary==6.3.0
rpds-py==0.18.1
selenium==4.20.0
six==1.16.0
sniffio==1.3.1
sortedcontainers==2.4.0
trio==0.25.0
trio-websocket==0.11.1
typing_extensions==4.11.0
urllib3==2.2.1
wsproto==1.2.0

with below error.

Parent suite setup failed:

SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.

(session not created: DevToolsActivePort file doesn’t exist)

(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Stacktrace:

#0 0x555555da886a

#1 0x555555a76e50

#2 0x555555aaee05

#3 0x555555aaac78

#4 0x555555af764e

#5 0x555555af6e66

#6 0x555555aeb233

#7 0x555555ab9093

#8 0x555555aba09e

Hi there! Would the Debian installation happen to be a minimal version? If so, there are a few things to check:

  1. Are there any missing dependencies? This is indicated by processes failing to start. A common bundle to install for Chrome is: sudo apt-get update && sudo apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2 libxshmfence1 fonts-liberation xdg-utils wget
  2. What is being logged by Chromedriver? To enable this log, pass chromedriver.log to the argument service_log_path of the Open Browser keyword from Selenium library. This log file is stored in the repository root after the test run is complete.