mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #903] Singlefile not working in docker-compose on arm64 (M1 Macs, RPi 4, etc.) #564
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#564
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 @jillisstada on GitHub (Dec 16, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/903
Have archivebox running local on my mac which works fine with a local installed single-file.
Want to user docker-compose run archivebox add .... with single-file
docker-compose run archivebox works but not single-file
I added in Archivebox.conf
Maybe this is more a docker question?
@jillisstada commented on GitHub (Dec 16, 2021):
docker-compose archivebox --version gives:
√ SINGLEFILE_BINARY v0.3.16 valid /node/node_modules/single-file/cli/single-filewhich is not on my mac
doesn't read my
ArchiveBox.conf?docker-composer run archivebox setup :
@pirate commented on GitHub (Dec 16, 2021):
Docker uses a linux system and has all its dependencies bundled with it internally already, do not set
SINGLEFILE_BINARYor any other_BINARYconfigs when using docker.If it's still not working after removing those settings, please post your full
docker-compose.ymlconfig andArchiveBox.confconfig contents.@jillisstada commented on GitHub (Dec 16, 2021):
Thanks for responding
I added the setting because it didn't work.
get this error
attached yml and conf as zip
Archive.zip
@pirate commented on GitHub (Dec 16, 2021):
You have
SAVE_SINGLEFILE = FalseandSINGLEFILE_BINARY = /opt/homebrew/lib/node_modules/single-file/cli/single-filestill set in your config, please remove those and try again.You can also try changing the image to use the latest version:
image: ${DOCKER_IMAGE:-archivebox/archivebox:dev}(:devinstead of:master).@jillisstada commented on GitHub (Dec 16, 2021):
before adding
SINGLEFILE_BINARYit didn't work, that's why I put it in, it should not be there anymore.SAVE_SINGLEFILE = Falsebecause I don't want single file all the time.I wrote a program that sets
SAVE_SINGLEFILE = Trueoccasionally :With the local installed archivebox without docker that works fine;
I'll try your suggestions tomorrow, latest version and always true.
Thank You
@jillisstada commented on GitHub (Dec 17, 2021):
Terminal Saved Output.txt
I've tried docker-compose with and without default
Archivebox.confand with:dev, output in attachment.I keep getting the error.
I'm running on a mac M1 but that shouldn't be the problem.
archivebox and single-file installed on the mac works fine.
I will take a docker course
@jillisstada commented on GitHub (Dec 21, 2021):
@jillisstada commented on GitHub (Dec 23, 2021):
installed docker archivebox on a intel chip mac, no problem
@pirate commented on GitHub (Dec 23, 2021):
Ah that makes sense, I was wondering why I've been unable to reproduce this on my Intel mac.
@tam481 commented on GitHub (Jan 24, 2022):
Hello, I recently started using ArchiveBox (Brilliant product. Well done). I am getting the same error on my Raspberry Pi 4 (arch64) running Debian Bullseye. Apologies if that is a different issue.
Whenever I try to archive a page I get:
singlefile Extractor failed: SingleFile was not able to archive the page Got single-file response code: 0.
@darkstar commented on GitHub (Jan 28, 2022):
This is actually #905 the single-file error is a red herring. If you enter the container and execute the commands it tells you to, you see that it's not finding the correct chromium executable
@pirate commented on GitHub (Apr 21, 2022):
I believe I fixed it in the latest commits on dev
github.com/ArchiveBox/ArchiveBox@57df65f28f/ in the latest Docker release: https://hub.docker.com/layers/archivebox/archivebox/archivebox/0.6.3I also bumped chromium, yt-dlp, youtube-dl, ripgrep, git, single-file, and a few other dependencies to their latest versions ^.
Give it a shot and let me know if it works on your machines. If you still have issues comment back here and I'll reopen the ticket.
@darkstar commented on GitHub (Apr 21, 2022):
Works for me now 👍
thanks for the fix!
gallery-dlfor image gallery downloading #1869gallery-dlfor image gallery downloading #3378