You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
I am trying to make WEC work in a Debian container, however, I came across the following problem:
docker build -t wec . && docker run -it wec bash
collector@e5dfa1e5e9e8:~$ website-evidence-collector --json https://google.com
/usr/lib/node_modules/website-evidence-collector/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197
reject(new Error([
^
Error: Failed to launch the browser process!
find: '/home/collector/.config/chromium/Crash Reports/pending/': No such file or directory
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
at onClose (/usr/lib/node_modules/website-evidence-collector/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:197:20)
at ChildProcess.<anonymous> (/usr/lib/node_modules/website-evidence-collector/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:188:79)
at ChildProcess.emit (node:events:523:35)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
Node.js v20.2.0
Seems like the culprit of the problem lies in Puppeteer.
NodeJS version is v20.2.0 and NPM version is 9.6.6
Also, here is a Dockerfile that I used:
After a while, I managed to solve the problem by running the container as privileged or at least with SYS_ADMIN capability i.e. docker run --cap-add=SYS_ADMIN -it wec bash.
I would really prefer to avoid giving containers excessive privileges. Do you know if there is a way to solve this problem differently?
Thank you!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dear website-evidence-collector team,
I am trying to make WEC work in a Debian container, however, I came across the following problem:
Seems like the culprit of the problem lies in Puppeteer.
NodeJS version is
v20.2.0
and NPM version is9.6.6
Also, here is a Dockerfile that I used:
After a while, I managed to solve the problem by running the container as privileged or at least with
SYS_ADMIN
capability i.e.docker run --cap-add=SYS_ADMIN -it wec bash
.I would really prefer to avoid giving containers excessive privileges. Do you know if there is a way to solve this problem differently?
Thank you!
The text was updated successfully, but these errors were encountered: