instrumentisto / geckodriver-docker-image

geckodriver Docker image
https://firefox-source-docs.mozilla.org/testing/geckodriver
Other
19 stars 5 forks source link

Missing libs in most recent image #11

Closed maxcountryman closed 3 months ago

maxcountryman commented 3 months ago

I've recently started seeing the following errors with the latest image:

geckodriver  | *** You are running in headless mode.
geckodriver  | console.warn: services.settings: Ignoring preference override of remote settings server
geckodriver  | console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
geckodriver  | [GFX1-]: glxtest: libpci missing
geckodriver  | [GFX1-]: glxtest: libGL.so.1 missing
geckodriver  | [GFX1-]: No GPUs detected via PCI
geckodriver  |
geckodriver  | 1717000205057    Marionette      INFO    Marionette enabled
geckodriver  | 1717000205299    Marionette      INFO    Listening on port 34131
geckodriver  | Read port: 34131
geckodriver  | [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
geckodriver  | console.error: ({})
tyranron commented 3 months ago

@maxcountryman could you specify the command you're running the image with?

maxcountryman commented 3 months ago

@tyranron docker run -it -p 4444:4444 instrumentisto/geckodriver

tyranron commented 3 months ago

@maxcountryman anything else to reproduce the issue? I have the following:

$ docker run --rm -it -p 4444:4444 docker.io/instrumentisto/geckodriver:126.0-driver0.34.0-r0 
Unable to find image 'instrumentisto/geckodriver:126.0-driver0.34.0-r0' locally
126.0-driver0.34.0-r0: Pulling from instrumentisto/geckodriver
09f376ebb190: Already exists 
79f518476e83: Pull complete 
Digest: sha256:6e8fb1d6fdbdf30402c18df86089c901e43e0ca6b31ef58cbd9e6c1ef7fc39c8
Status: Downloaded newer image for instrumentisto/geckodriver:126.0-driver0.34.0-r0
1717088605639   geckodriver     INFO    Listening on 127.0.0.1:4444
tyranron commented 3 months ago

@maxcountryman ok, I was able to reproduce the issue. Strangely, despite the errors written into logs they don't affect any use cases of our WebDriver usage and all our builds/tests are OK.

tyranron commented 3 months ago

@maxcountryman we install all the dependencies of firefox-esr Debian package, since Debian doesn't have a package for non-ESR Firefox, and as the versions of ESR and non-ESR may differ quite much, such problems may happen.

I've added these libs, so try out the 126.0.1-driver0.34.0-r1 image version. I've tested it in our pipelines and the error has gone.

The worst part, I don't know how to build a test to catch such regressions in the future. If you have any ideas in mind, PR is welcome.

maxcountryman commented 3 months ago

Thanks for this. I'll give it a try shortly.