TestProject Forum

Selenium firefox container problems with Marionette

Hello,
I’m not sure if this is the right place for this question, but I couldn’t figure out what is going wrong.
I run a TestProject agent connected to a headless chrome and headless firefox Docker container as part of a Docker Swarm Stack. While chrome is working without issues, Firefox does not work and I can’t figure out what is going wrong.
I use the Firefox container without any configuration, as recommended:

      firefox:
        image: selenium/standalone-firefox:85.0
        volumes:
          - /dev/shm:/dev/shm

This is my log output:

1612950199628	geckodriver	INFO	Listening on 127.0.0.1:27624
1612950201053	mozrunner::runner	INFO	Running command: "/usr/bin/firefox" "--marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileEJFwS9"
[GFX1-]: glxtest: libpci missing
[GFX1-]: glxtest: libEGL missing
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new Error("", "(unknown module)"))
1612950211174	Marionette	INFO	Listening on port 34539
1612950211310	Marionette	WARN	TLS certificate errors will be ignored for this session
1612950211349	Marionette	ERROR	[18] No reply from Marionette:Register
09:43:31.475 INFO [ProtocolHandshake.createSession] - Detected dialect: W3C
09:43:31.584 INFO [Distributor.newSession] - Session created by the distributor. Id: dbcd1634-7a25-4ff1-ac3e-8a45439aaa36, Caps: Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 85.0.1, moz:accessibilityChecks: false, moz:buildID: 20210204182252, moz:geckodriverVersion: 0.29.0, moz:headless: false, moz:processID: 112, moz:profile: /tmp/rust_mozprofileEJFwS9, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platformName: linux, platformVersion: 4.15.0-123-generic, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
1612950212171	Marionette	INFO	Stopped listening on port 34539
JavaScript error: resource://activity-stream/lib/ActivityStreamPrefs.jsm, line 27: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIPrefBranch.removeObserver]
JavaScript error: resource://activity-stream/lib/ASRouter.jsm, line 968: TypeError: this._storage is null
console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
JavaScript error: resource://activity-stream/lib/PlacesFeed.jsm, line 194: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavHistoryService.addObserver]
JavaScript error: resource://gre/modules/ExtensionSettingsStore.jsm, line 122: Error: The ExtensionSettingsStore was accessed before the initialize promise resolved.
console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."

I’m really appreciating any input :slight_smile:

Hello @jonas.natzer
Try running without the volumes, remove

  • /dev/shm:/dev/shm

Also try to use the latest image of FireFox container.