Closed tballmsft closed 6 months ago
Here's what copilot says
It appears that you’re encountering an issue related to Puppeteer and the missing shared library libnss3.so. Let’s troubleshoot this together!
The error message indicates that the browser process failed to launch due to the absence of the libnss3.so library. This library is essential for network security services in Linux systems.
Here are some steps you can take to resolve this issue:
Install libnss3:
The most straightforward solution is to install the libnss3 package. You can do this using the following commands:
sudo apt-get update
sudo apt-get install libnss3
That didn't work. Looking to: https://stackoverflow.com/questions/59979188/error-failed-to-launch-the-browser-process-puppeteer
Got it working with above instructions.
Hmm... I was able to get yarn develop working inside Ubuntu (headless chromium) and attach to it via Edge, but still getting error in Docker:
[watch*docs] Failed to launch the browser process!
[watch*docs] /root/.cache/puppeteer/chrome/linux-1095492/chrome-linux/chrome: error while
[watch*docs] loading shared libraries: libnss3.so: cannot open shared object file: No such
[watch*docs] file or directory
[watch*docs]
[watch*docs]
[watch*docs] TROUBLESHOOTING:
[watch*docs] https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
[watch*docs]
[watch*docs]
[watch*docs]
[watch*docs] Error: Failed to launch the browser process!
[watch*docs] /root/.cache/puppeteer/chrome/linux-1095492/chrome-linux/chrome: error while l
[watch*docs] oading shared libraries: libnss3.so: cannot open shared object file: No such f
[watch*docs] ile or directory
[watch*docs] TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/trouble
[watch*docs] shooting.md
added this to Dockerfile
sudo apt-get install chromium-browser
sudo apt-get install libx11-xcb1 libxcomposite1 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 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