mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #905] Bug: Docker Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT #2073
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#2073
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 @alpe12 on GitHub (Dec 17, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/905
Describe the bug
Singlefile output doesn't work.
Steps to reproduce
/node/node_modules/single-file/cli/single-file --browser-executable-path=chromium "--browser-args=[\"--headless\", \"--no-sandbox\", \"--disable-gpu\", \"--disable-dev-shm-usage\", \"--disable-software-rasterizer\", \"--run-all-compositor-stages-before-draw\", \"--hide-scrollbars\", \"--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.61 Safari/537.36 ArchiveBox/{VERSION} (+https://github.com/ArchiveBox/ArchiveBox/)\", \"--window-size=1440,2000\"]" https://www.kabum.com.br/ singlefile.html)ArchiveBox version
Apparently it tries to run /usr/bin/chromium-browser which doesn't exist. The correct would be /usr/bin/chromium.
Either symlink it, or change the code to use /usr/bin/chromium.
Thanks.
@darkstar commented on GitHub (Jan 28, 2022):
if you check the command line it tries to exceute, you see that it actually tries to override the chromium path via
--browser-executable-path=chromiumbut that doesn't seem to work.Official puppeteer docs seem to suggest that there is an environment variable,
PUPPETEER_EXECUTABLE_PATH, that can be used as well, but that also doesn't work.It seems the puppeteer they are shipping is broken and only checks the hardcoded path, and not the overrides.
@pirate commented on GitHub (Jan 30, 2022):
Maybe we can fix it with a symlink shim created in the Dockerfile that points
/usr/bin/chromium-browser->/usr/bin/chromium?@darkstar commented on GitHub (Jan 31, 2022):
That would probably work, but the question is why does that (apparently) not pop up for the other architectures? And why is neither the commandline parameter nor the environment variable honored?
@pirate commented on GitHub (Jan 31, 2022):
🤷 No idea, if you're able to reproduce the ignoring of the CLI arg with bare SingleFile, want to open an issue over on their repo https://github.com/gildas-lormeau/SingleFile/issues? I'm not too bothered by working around it without figuring out the root cause, since I'm going to be refactoring this stuff soon anyway.
@darkstar commented on GitHub (Jan 31, 2022):
nah, I'm fine with the symlink workaround (or any other), I'm not really too bothered about it too ;)
@tam481 commented on GitHub (Feb 18, 2022):
Is there a fix for this?
@tam481 commented on GitHub (Feb 26, 2022):
hi all. Will the workaround be used as a fix and if yes, any chance this can be incorporated and released so that we can use it :-)
Thank you in advance
@pirate commented on GitHub (Mar 13, 2022):
docker-compose exec archivebox ln -s /usr/bin/chromium /usr/bin/chromium-browserfor now until I add a fix to the Dockerfile later.@albertoperezbautista commented on GitHub (Feb 9, 2023):
Lo resolví de la siguiente manera en el Dockerfile:
@pirate commented on GitHub (Jun 13, 2023):
is anyone still experiencing this issue on the latest
archivebox/archivebox:devimage? I believe some of the recent fixes https://github.com/ArchiveBox/ArchiveBox/blob/dev/Dockerfile#L60 have addressed this, but if not comment back here and I'll re-open this issue.