The same gitlab-ci.yml worked three months ago. It fails now with unknown error: Chrome failed to start: exited abnormally
Following is extract of my gitlab-ci.yml:
....
....
....
e2e_tests:
before_script:
# install chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update
- apt-get install -y google-chrome-stable xvfb
# install mysql
- wget https://dev.mysql.com/get/mysql-apt-config_0.8.8-1_all.deb
- dpkg -i mysql-apt-config_0.8.8-1_all.deb
- apt-get update
- apt-get install -y mysql-client
# xvfb
- export DISPLAY=:99.0
- Xvfb -ac $DISPLAY &
# start application
- export MAVEN_USER_HOME=`pwd`/.maven
- chmod +x mvnw
- ./mvnw -Dmaven.repo.local=$MAVEN_USER_HOME &
- sleep 30
script:
- yarn e2e
This is the protractor.conf, tried with and without no-sandbox.
capabilities: {
'browserName': 'chrome',
chromeOptions: {
binary: '/usr/bin/google-chrome-stable',
args: [ "--headless", "--disable-gpu", "--window-size=800,600", "--no-sandbox" ]
}
},
This is the error stack:
[00:23:27] I/direct - Using ChromeDriver directly...
[00:24:28] E/launcher - unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.35.528139 (XXXXXXXXXXXXXXXXXXXXXXXX),platform=Linux 4.13.5-coreos-r2 x86_64)
[00:24:28] E/launcher - WebDriverError: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.35.528139 (XXXXXXXXXXXXXXXXXXXXXXXX),platform=Linux 4.13.5-coreos-r2 x86_64)
at WebDriverError (/builds/myuser/myproject/node_modules/selenium-webdriver/lib/error.js:27:5)
at Object.checkLegacyResponse (/builds/myuser/myproject/node_modules/selenium-webdriver/lib/error.js:505:15)
at parseHttpResponse (/builds/myuser/myproject/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/builds/myuser/myproject/node_modules/selenium-webdriver/lib/http.js:440:13)
at process._tickCallback (internal/process/next_tick.js:109:7)
From: Task: WebDriver.createSession()
at Function.createSession (/builds/myuser/myproject/node_modules/selenium-webdriver/lib/webdriver.js:777:24)
at Function.createSession (/builds/myuser/myproject/node_modules/selenium-webdriver/chrome.js:709:29)
at Direct.getNewDriver (/builds/myuser/myproject/node_modules/protractor/lib/driverProviders/direct.ts:90:25)
at Runner.createBrowser (/builds/myuser/myproject/node_modules/protractor/lib/runner.ts:225:39)
at q.then.then (/builds/myuser/myproject/node_modules/protractor/lib/runner.ts:391:27)
at _fulfilled (/builds/myuser/myproject/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/builds/myuser/myproject/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/builds/myuser/myproject/node_modules/q/q.js:796:13)
at /builds/myuser/myproject/node_modules/q/q.js:556:49
at runSingle (/builds/myuser/myproject/node_modules/q/q.js:137:13)
[00:24:28] E/launcher - Process exited with error code 199
error Command failed with exit code 199.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: Job failed: exit code 1