Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to launch process #357

Open
Lucetia opened this issue Mar 31, 2021 · 2 comments
Open

Failing to launch process #357

Lucetia opened this issue Mar 31, 2021 · 2 comments

Comments

@Lucetia
Copy link

Lucetia commented Mar 31, 2021

Currently I am trying to run "destreamer" on Raspbian OS. The below is what I posted on their github too as it looked like it might be a puppeteer issue, but someone there mentioned posting it here too thinking it might be a destreamer issue. If there is more details you need just let me know.

The program itself uses puppeteer from the looks of it. When I go to run the command I get the following error:

Launching headless Chrome to perform the OpenID Connect dance...

[ERROR] Error: Failed to launch the browser process!
/home/pi/destreamer/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: 1: /home/pi/destreamer/node_modules/puppeteer/.local-chromium/linux-818858/chrome-linux/chrome: Syntax error: "(" unexpected


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/home/pi/destreamer/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)
    at Interface.helper_js_1.helper.addEventListener (/home/pi/destreamer/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:183:68)
    at Interface.emit (events.js:203:15)
    at Interface.close (readline.js:397:8)
    at Socket.onend (readline.js:173:10)
    at Socket.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

I tried running the ldd chrome | grep not command and at first gave an error of ldd: ./chrome: No such file or directory so I have to dig through the folders in the file system and then copy/paste it to cd into it at the command line. Once I did that it now returns **not** a dynamic executable

Puppeteer looks like it is on version 5.5.0 based on the info it gives when I do a npm i puppeteer. Nodejs looks like it is on version 10.24.0.

After doing some googling, I found it is likely due to dependencies so I found npm i puppeteer to reinstall it and same result. Then next I ran sudo apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget that would install most of the dependencies it would need with the same result occuring.

Most of the things I am finding are in regards to program your application which in this case wouldn't apply since I'm running one and that doesn't seem to be the problem.

@snobu
Copy link
Owner

snobu commented Mar 31, 2021

If you have a copy of Chromium already installed and working you can plug that into puppeteer. See the README for details.
https://github.com/snobu/destreamer#can-i-plug-in-my-own-browser

@lukaarma
Copy link
Collaborator

lukaarma commented Mar 31, 2021

@Lucetia can I ask you a screenshot of the code you edited (or a copy paste is good enough), please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants