patd0
patd0
RRailway
Created by patd0 on 8/13/2023 in #✋|help
I cannot seem to get Puppeteer running on node.
So I modified my nixpacks to use node 18.16.
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
[phases.setup]
nixpkgsArchive = '4ecab3273592f27479a583fb6d975d4aba3486fe'
I'm using :
this.browser = await puppeteer.launch({
headless: "new",
args: ["--no-sandbox", "--disable-setuid-sandbox"],
ignoreDefaultArgs: ['--disable-extensions']
});
this.browser = await puppeteer.launch({
headless: "new",
args: ["--no-sandbox", "--disable-setuid-sandbox"],
ignoreDefaultArgs: ['--disable-extensions']
});
But I keep getting this error:
file:///app/node_modules/@puppeteer/browsers/lib/esm/launch.js:268
reject(new Error([
^
Error: Failed to launch the browser process! undefined
[19:19:0813/053526.608441:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
TROUBLESHOOTING: https://pptr.dev/troubleshooting
at ChildProcess.onClose (file:///app/node_modules/@puppeteer/browsers/lib/esm/launch.js:268:24)
at ChildProcess.emit (node:events:525:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Node.js v18.16.0
file:///app/node_modules/@puppeteer/browsers/lib/esm/launch.js:268
reject(new Error([
^
Error: Failed to launch the browser process! undefined
[19:19:0813/053526.608441:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
TROUBLESHOOTING: https://pptr.dev/troubleshooting
at ChildProcess.onClose (file:///app/node_modules/@puppeteer/browsers/lib/esm/launch.js:268:24)
at ChildProcess.emit (node:events:525:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Node.js v18.16.0
Although we can clearly see that the --no-sandbox flag is being passed. package.json:
"puppeteer": "^20.7.2"
"puppeteer": "^20.7.2"
If anyone could help out.
12 replies
RRailway
Created by patd0 on 8/12/2023 in #✋|help
Latest node.js Version. What's the proper way to be using node 18.17?
Hi, I was wondering if it was possible to use node 18.17 on railway? IF so, mind sharing some details?
13 replies
RRailway
Created by patd0 on 7/3/2023 in #✋|help
Unable to create node.js server
Hi, I am unable to add a node.js server. Would it be possible get get more logs as to why?
28 replies
RRailway
Created by patd0 on 6/16/2023 in #✋|help
/bin/bash: line 1: ./out: Permission denied
I'm trying to deploy a GO App, but I keep getting: /bin/bash: line 1: ./out: Permission denied.
43 replies
RRailway
Created by patd0 on 11/9/2022 in #✋|help
Server logs not showing up
Hi, I seem to be having an issue with my server logs taking ages to appear or not showing up at all. Anyone has seen this?
16 replies