-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChromeDriver doesn't work in headless mode on Linux #414
Comments
Very strange days on Ubuntu (with this and some other issues on newer versions). Could there be missing dependencies that Chrome requires in a headless environment? I am not sure, but though the graphical version works, headless mode may require additional packages or settings to function properly. Can you try running chrome headless directly please? Should be something like this:
|
It seems to be a chrome issue indeed. Running it directly resulted in the following error:
After going through these steps trying to debug it unsuccessfully, I have installed a previous version of chrome and chromedriver, which works fine. (I'll leave them here in case someone comes accross the same issue: However, I encountered some strange behavior while experimenting with different Chrome versions:
Is it possible that GHOSTS is still caching an instance of chrome somewhere else? |
Thanks for all the detail! Ghosts shouldn't cache (if it does, I am unaware how that is happening) anything like this. There is a setting in ./config/application.json for /bin/firefox for the FF binaries. It shouldn't be accessing chrome from anywhere else. |
I think I found what is causing this behaviour: As of Selenium 4.11, it automatically downloads Chrome if it is not already installed on your system. This feature manages both drivers (like chromedriver) and browser versions. It seems that the |
And another update: the original issue, which I had with Chrome version So, long story short: we actually don't have to bother anymore with manually installing Chrome :) |
Sorry, I was crossing firefox and chrome wires!! |
Hi!
When I run ghosts in
"isheadless": "false"
mode, everything works fine. But when I use"isheadless": "true"
, I get asession not created: DevToolsActivePort file doesn't exist
error.I'm using Ubuntu 22.04. I have installed the latest Chrome and its corresponding ChromeDriver. They are both in the ghosts folder.
This is my
timeline.json
file:This is the
app.log
file:After some googling, I tried adding these option, but they don't solve the issue either:
The text was updated successfully, but these errors were encountered: