Closed Mauro1924 closed 1 year ago
Your debug log is for firefox. Looks like you are running the browser in headed mode in the docker container that doesn't have x server. Try removing .setHeadless(true)
from the code. If you need further help please share a complete self-contained repro that we could run locally.
Sorry I added the old code in the new one I'm using firefox and in headless mode it works locally but running on cloud environment it gives me this error.
I'm using the xvfb-run --auto-servernum --server-num=1
for the x server or is this wrong implemented?
I'm using the
xvfb-run --auto-servernum --server-num=1
for the x server or is this wrong implemented?
--server-num=1
is redundant. In headless mode you don't need xvfb-run. But it's hard to tell what you are doing and what's not working without a reproducible example.
Sorry I can't give a repo for this, as this is my companies project.
When I run it in the cloud environment, it first said, "Couldn't find a X Server". Thats why I used the xvfb-run and then the error didn't show anymore. Is there anything I can show you from the project that would help you or does it have to be the full repo I need to give?
This is the message it gives me when I'm taking out the xvfb-run:
`Error {
message='
╔════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Looks like you launched a headed browser without having a XServer running. ║
║ Set either 'headless: true' or use 'xvfb-run
You keep launching in headed mode for some reason, we normally recommend running in headless especially on CI. If you have to run in headed mode for some reason xvfb-run should handle that. If you need further help we need a full repro. Given that the problem is with browser launch it should be possible to extract a minimal repro that wouldn't contain any sensitive details. You can create a repro with our docker image.
Closing this request as we cannot help further without additional details. Please file a new issue with a repro and link it to this one.
System info
Source code