-
-
Notifications
You must be signed in to change notification settings - Fork 803
Labels
Description
Product
Hot Chocolate
Version
15.0.0
Link to minimal reproduction
Local reproduction unsing devcontainer
Steps to reproduce
- Build and run devcontainer
cd ./website/yarn start
What is expected?
Website should launch
What is actually happening?
Failed to launch the browser process!
/workspaces/graphql-platform/website/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Relevant log output
vscode ➜ /workspaces/graphql-platform/website (main) $ yarn start
...
verbose Transition to "initializingData" > "sourcingNodes"
...
Error: Failed to launch the browser process!
/workspaces/graphql-platform/website/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
- BrowserRunner.ts:223 onClose
[website]/[puppeteer]/src/node/BrowserRunner.ts:223:9
- BrowserRunner.ts:209 Interface.<anonymous>
[website]/[puppeteer]/src/node/BrowserRunner.ts:209:50
- node:events:520 Interface.emit
node:events:520:35
- interface:555 Interface.close
node:internal/readline/interface:555:10
- interface:273 Socket.onend
node:internal/readline/interface:273:10
- node:events:520 Socket.emit
node:events:520:35
- readable:1701 endReadableNT
node:internal/streams/readable:1701:12
- task_queues:89 processTicksAndRejections
node:internal/process/task_queues:89:21Additional context
Additionally, forwarded ports don't work as expected in devcontainer
libnss3 is only one of many needed dependencies: Debian (e.g. Ubuntu) Dependencies contains the full list
It can also be solved, by installing google chrome in the container Running Puppeteer in Docker