-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
Is there a good way to debug a failed browser launch in a docker container? I have followed the Dockerfile.bionic fairly closely (I’m on pw v1.0.1) although I have a few additional requirements at my organization for certs/proxy/etc so added those. Webkit and Chrome launch fine, but FireFox fails to launch and just times out. I'm not getting anything other than below and I am having a hard time debugging just based on that alone.
TimeoutError: Timed out after 30000 ms while trying to connect to Firefox!
at Firefox._launchServer (/home/e451/node_modules/playwright-core/lib/server/firefox.js:109:30)
at Firefox.launch (/home/e451/node_modules/playwright-core/lib/server/firefox.js:41:58)
at CustomEnvironment.setup (/home/e451/libs/web/environment/jest-env-base.environment.js:27:29)
at runTestInternal (/home/e451/node_modules/@jest/core/node_modules/jest-runner/build/runTest.js:406:5)
at runTest (/home/e451/node_modules/@jest/core/node_modules/jest-runner/build/runTest.js:488:34)
at Object.worker (/home/e451/node_modules/@jest/core/node_modules/jest-runner/build/testWorker.js:171:12) {
name: 'TimeoutError'
}
I did open the container and was able to open FireFox in headless mode and got a few WARN, but didn't see any errors. I am not really sure what to do beyond starting it to verify it works on its own.
e451@2add7e295096:~/node_modules/playwright/.local-browsers/firefox-1089/firefox$ ./firefox -headless
*** You are running in headless mode.
1588886082291 addons.webextension.doh-rollout@mozilla.org WARN Loading extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extension permission: networkStatus
1588886082331 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: mozillaAddons
1588886082332 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: telemetry
1588886082332 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: resource://pdf.js/
1588886082333 addons.webextension.screenshots@mozilla.org WARN Loading extension 'screenshots@mozilla.org': Reading manifest: Invalid extension permission: about:reader*
Also under Firefox-1089 I don’t see a cached-profile directory but I believe that was removed in 1.0.0.
Mykola-Veryha
Metadata
Metadata
Assignees
Labels
No labels