ChromeHeadless (Puppeteer) not captured when running in docker
See original GitHub issueTrying to convert my karma config from phantomjs to puppeteer but I’m facing issues when running my test suite. Here’s the log:
[18:25:41] Starting 'karma'...
29 01 2018 18:26:37.287:INFO [karma]: Karma v2.0.0 server started at http://0.0.0.0:9876/
29 01 2018 18:26:37.289:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
29 01 2018 18:26:37.501:INFO [launcher]: Starting browser ChromeHeadless
29 01 2018 18:27:37.521:WARN [launcher]: ChromeHeadless have not captured in 60000 ms, killing.
29 01 2018 18:27:39.527:WARN [launcher]: ChromeHeadless was not killed in 2000 ms, sending SIGKILL.
29 01 2018 18:27:41.532:WARN [launcher]: ChromeHeadless was not killed by SIGKILL in 2000 ms, continuing.
After debugging, the CHROME_BIN
is available here: /tmp/webcore/node_modules/puppeteer/.local-chromium/linux-526987/chrome-linux/chrome
And the karma config are these:
{ action: 'run',
singleRun: true,
browsers: [ 'ChromeHeadless' ],
reporters: [ 'junit', 'dots' ],
configFile: '/tmp/webcore/test/unit/config/karma.conf' }
Also tried using a custom launcher with the --no-sandbox
option, but same issue… 😕
Any help is definitely welcome.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:34
- Comments:23
Top Results From Across the Web
"ChromeHeadless have not captured in 60000 ms, killing ...
I am expecting the tests to run successfully in all three instances (local npm, local Gitlab Runner and remote Gitlab CI/CD pipeline). Currently ......
Read more >Troubleshooting - Puppeteer
Chrome headless doesn't launch on UNIX. Make sure all the necessary dependencies are installed. You can run ldd chrome | grep not on...
Read more >browserless/chrome - Docker Image
An interactive puppeteer debugger, so you can see what the headless browser is doing and use its DevTools. Works with most headless libraries....
Read more >Crafting the perfect container to play with a Headless Chrome
In the world of webdev, the ability to run quickly end-to-end tests ... and Docker - See "3 ways to securely use Chrome...
Read more >Puppeteer - npm
Puppeteer runs in headless mode by default, but can be configured to run in full (non-headless) Chrome/Chromium.
Read more >Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue for me using Angular 7. Running docker inside Jenkins.
karma.conf.js:
Had same problem, when I ran tests using Gitlab CI. I just added