Project moved to https://code.europa.eu/EDPS/website-evidence-collector ! The tool Website Evidence Collector (WEC) automates the website evidence collection of storage and transfer of personal data. https://edps.europa.eu/press-publications/edps-inspection-software_en
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!
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!