mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #943] Question: Trouble Running add from docker-compose command #3604
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#3604
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 @stephenmetzger on GitHub (Mar 11, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/943
Hi all.
Trying to run
docker-compose run archivebox add 'http://google.com'and getting the error:Not sure what I'm doing wrong here.
@pirate commented on GitHub (Mar 13, 2022):
It's an issue with your filesystem. Either the
data/folder is on a failing drive, it's not writable due to permissions, it's a broken symlink, or some other problem outside of ArchiveBox's control.@stephenmetzger commented on GitHub (Mar 16, 2022):
You are exactly right. Was running low on disk space. Freeing up space solved the problem. Thanks.
This actually brings me to another question now:
How would I set up my docker-compose.yml to use a bind mount for the appdata (ArchiveBox.conf, index.sqlite3, logs, etc) on my hosts local storage, but link the archive folder to a samba share mounted to the ArchiveBox host? Under the archivebox service, would adding a link to
/mnt/SAMBAstorage/archivebox/archivefrom/data/archivework, or, since archive is a subdirectory of data, would this cause issues?Edit: Okay, found the relevant option to set in ArchiveBox.conf. But, now I'm getting the error:
Does Archivebox running in docker (UID/GIDnot specified in docker compose) run as
archivebox,root, or something else? What is the recommended way to set permissions? Add the docker user to the /mnt/archivebox directory? Specify users in the docker-compose.yml that already have permissions? Something else?Another Edit: Not sure if this is the best solution, but I modified by fstab entry to mount the share as 1000:1000, verified correct ownership and permissions, and added the environmental variables
PUID=1000andPGID=1000to my docker-compose.yml. This seems to have done the trick.@stephenmetzger commented on GitHub (Mar 16, 2022):
Whelp. My fix above isn't working out. Going to close this thread since it solved by initial problem and start a new one with this new issue.
Thanks.