Closed floor114 closed 3 years ago
Our builds too started failing a few hours ago. We are getting the following error:
E selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
E (unknown error: DevToolsActivePort file doesn't exist)
E (The process started from chrome location /app/.apt/usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
I tried --remote-debugging-port=9222
, --disable-dev-shm-usage
. But none of that fixes the build.
I started the heroku CI in debug mode. I noticed that chrome binary is failing to instantiate. Here's the error I get:
~ $ google-chrome
/app/.apt/usr/bin/google-chrome: line 2: [: =: unary operator expected
/app/.apt/usr/bin/google-chrome: line 4: [: =: unary operator expected
/app/.apt/opt/google/chrome/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory
This definitely seems like a buildpack related issue to me.
We are seeing the same issue on Heroku CI. For the record, this looks like a duplicate of #105.
@cimm Thanks for the link. I fixed our CI by following https://github.com/heroku/heroku-buildpack-google-chrome/issues/105#issuecomment-789724688.
I assume it should be fixed here https://github.com/heroku/heroku-buildpack-google-chrome/pull/104
Closing an issue due to resolution in https://github.com/heroku/heroku-buildpack-google-chrome/issues/105#issuecomment-789724688.
heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt
if you need it outside CI.
Modify your app.json
file in case you need it in CI."environments": {
"test": {
...
"buildpacks": [
{
...
"url": ""
}
]
}
}
Aptfile
in the root folder with libxshmfence-dev
inside.
I've started getting this error after today's deployment to Heroku. Nothing has changed from the configurations side.
I thought
chromedriver v88.0.4324.96
might be the reason, but settingCHROMEDRIVER_VERSION=87.0.4280.88
didn't help.Here is my previously working ruby code