mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1263] Playwright install may hangs at installing chromium if manually setting PID and GID in docker #777
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gnattu on GitHub (Nov 4, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1263
Describe the bug
When using docker-compose to deploy the latest 7.0 ArchiveBox,
docker compose run archivebox init --setupwill hang at installing chromium if PGID and PUID is specified with env variables.By doing something like
docker compose run --entrypoint /bin/bash -it archiveboxto run the playwright install command manually (as root in this case) and thepython -m playwright install chromiumwill returns normally, the chromium is located in/browsers/chromium-1084/chrome-linux/chrome. But if I set PGID and PUID,python -m playwright install chromiumalso hangs and never returns.I currently workarounds this by manually
config --set CHROME_BINARY=/browsers/chromium-1084/chrome-linux/chromeand archivebox seems to be working normally.Steps to reproduce
Modify the
docker-compose.yml:Run
docker compose run archivebox init --setupIt hangs at installing Chromium.
Screenshots or log output
ArchiveBox version
@pirate commented on GitHub (Nov 4, 2023):
Ah that makes sense the browsers dir is owned by root, I can fix it by chowning it to UID and GID in the entry point.
@pirate commented on GitHub (Nov 7, 2023):
Done
github.com/ArchiveBox/ArchiveBox@fd9803f3b7 (diff-254aea5175), pull and give it a try once a new build pushes orgit clone ...; docker build . -t archivebox:dev