question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headless Chrome fails on new Chrome update 58.0.3029.81 - wrong launcher path (MAC)

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dpoguecommented, May 2, 2017

Well, the flag exists, but you’ll run into that resources.pkg error. It is only officially supported in Chrome 59 and up.

1reaction
missbrunicommented, May 2, 2017

For now I moved the resources.pak back to the launcher path to make it work again.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found