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.

Is raspberry pi 3 b+ compatible? Failed to launch.

See original GitHub issue

Tell us about your environment:

  • Puppeteer version: 1.13.0
  • Platform / OS version: raspberry pi 3 b+, ubuntu mate
  • URLs (if applicable):
  • Node.js version: 8.10.0

What steps will reproduce the problem?

const browser = await puppeteer.launch({
   headless: true,
   args: ['--no-sandbox', '--disable-setuid-sandbox']
});

this gives me error message

Error: Failed to launch chrome!
/home/xxxx/.../node_modules/puppeteer/.local-chromium/liniux-641577/chrome-linux/chrome: Syntax error: word unexpected (expecting ") "

So i tried adding executablePath, for instance (not sure if this is valid though)

const browser = await puppeteer.launch({
   headless: true,
   executablePath: '/home/xxxx/.../node_modules/puppeteer/.local-chromium/liniux-641577/chrome-linux/chrome',
   args: ['--no-sandbox', '--disable-setuid-sandbox']
});

but it gave me

Error: Failed to launch chrome! spawn 
/home/xxxx/.../node_modules/puppeteer/.local-chromium/liniux-641577/chrome-linux/chrome ENOENT

and if i do chromium-browser --version it says

Chromium 73.0.3683.75 Built on Ubuntu, running on Ubuntu 18.04

Thank you guys.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

81reactions
SeongwoonHongcommented, Apr 7, 2019

solved.

56reactions
ablearscommented, Sep 26, 2019

Try using your chromium-browser, rather than Puppeteer’s chrome which might not work on the PI’s ARM architecture.

const browser = await puppeteer.launch({ executablePath: 'chromium-browser' });

I had to do this on a PI 4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi 3 B+ error
If you have an even older version of Raspbian (Jessie/Wheezy) it is not compatible and you need to start over with the latest...
Read more >
Raspberry Pi 3 B+ - Service start failed | 3CX Forums
Installation of 3CX is going fine and operation is no problem, but if we restart the Raspberry Pi Services fail to start:
Read more >
7 Causes for a Raspberry Pi That Won't Boot (And How to Fix ...
2. Raspberry Pi Not Booting? Check the Red and Green LEDs · 3 flashes: start.elf not found · 4 flashes: start.elf cannot launch,...
Read more >
[Solved] Raspberry Pi Not Booting? Here are 14 Ways to Fix!
One of the commonest reasons for the Raspberry Pi not booting is the flashing of incompatible OS on the microSD card. Raspberry Pi...
Read more >
Raspberry Pi 3 model b+ run on boot problem - MathWorks
I get this error when I activate run on boot option in Simulink for Raspberry Pi 3 model b+ and I can't find...
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