Headless Chrome fails on new Chrome update 58.0.3029.81 - wrong launcher path (MAC)
See original GitHub issueI had the launcher working for HeadlessChrome until the latest google update 58.0.3029.81 and I can see is because the path for the launcher is now incorrect.
karma.conf:
browsers: ['HeadlessChrome'],
customLaunchers: {
HeadlessChrome: {
base: 'Chrome',
flags: ['--headless', '--disable-gpu', ' --remote-debugging-port=9222']
}
},
When trying to launch Chrome, the launcher tries to find the resources.pak
inside the wrong folder (/Applications/Google Chrome.app/Contents/Versions/58.0.3029.81/Google Chrome Framework.framework/Versions/A/resources.pak
).
I believe it must have changed with the update as is now located inside /Applications/Google Chrome.app/Contents/Versions/58.0.3029.81/Google Chrome Framework.framework/Versions/A/Resources/resources.pak
02 05 2017 14:36:42.952:INFO [launcher]: Trying to start Chrome again (2/2).
02 05 2017 14:36:43.113:ERROR [launcher]: Cannot start Chrome
[0502/143643.028018:ERROR:resource_bundle.cc(767)] Failed to load /Applications/Google Chrome.app/Contents/Versions/58.0.3029.81/Google Chrome Framework.framework/Versions/A/resources.pak
Some features may not be available.
I have only tested this with macOS Sierra 10.12.4, not sure about windows.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:14 (4 by maintainers)
Top Results From Across the Web
Fix Chrome update problems & failed updates - Google Support
If you're having problems updating Chrome on your computer, you might see: Update failed: Updates are disabled by administrator; Update failed (Error: 3...
Read more >Getting Started with Headless Chrome - Chrome Developers
In the CLI section, we started Chrome manually using --headless --remote-debugging-port=9222 . However, to fully automate tests, you'll ...
Read more >993686 - Problem with Chrome headless from CLI: empty PDF ...
Issue 993686: Problem with Chrome headless from CLI: empty PDF and error “Failed to serialize document: Uncaught”.
Read more >ChromeHeadless failed to start stdout / Cannot start ...
The issue was due to the version of Google Chrome I had installed. Headless Chrome is supported from Chrome 59 onwards, whereas I...
Read more >Google Chrome 108.0.5359.125 - Chocolatey
Deployment Method: Individual Install, Upgrade, & Uninstall. Install; Upgrade; Uninstall. To install Google Chrome, run the following command from the command ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
Well, the flag exists, but you’ll run into that resources.pkg error. It is only officially supported in Chrome 59 and up.
For now I moved the
resources.pak
back to the launcher path to make it work again.