mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #1277] support: mounting docker data directory #3806
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#3806
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 @shazgames1 on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1277
Describe the bug
Running ArchiveBox init inside Docker completely breaks Linux permissions. I can't even open new terminal session because of Permission denied
Steps to reproduce
Screenshots or log output
Status: Downloaded newer image for archivebox/archivebox:latest
chown: cannot access '/browsers/*': No such file or directory
[i] [2023-11-27 16:27:40] ArchiveBox v0.7.1+editable: archivebox init --setup
> /data
[X] This folder appears to already have files in it, but no index.sqlite3 present.
You must run init in a completely empty directory, or an existing data folder.
Hint: To import an existing data folder make sure to cd into the folder first,
then run and run 'archivebox init' to pick up where you left off.
(Always make sure your data folder is backed up first before updating ArchiveBox)
ArchiveBox version
Latest from DockerHub
@pirate commented on GitHub (Nov 27, 2023):
What folder are you running it inside of? Is it a network mount or other special folder of some kind?
@shazgames1 commented on GitHub (Nov 27, 2023):
I run in user's home directory (/home/$USER)
@shazgames1 commented on GitHub (Nov 27, 2023):
I installed docker on clean ubuntu using official docker instruction with Linux post-installation steps
@pirate commented on GitHub (Nov 27, 2023):
Ah that's why, you need to create a new empty folder for it and run inside that folder. Don't run it inside your home folder or any other folder that already contains files.
@shazgames1 commented on GitHub (Nov 28, 2023):
It would be useful to add this clarification to the documentation in a block using Docker to avoid problems
@shazgames1 commented on GitHub (Nov 28, 2023):
I'm still wondering how the container was able to access the host's system directories
@pirate commented on GitHub (Nov 28, 2023):
-v $PWD:/datamounts$PWD(the current folder you're in) into/datainside the container. If you run it inside your home folder it will attempt to use your home folder as the data dir, which errors out because that's not allowed.The README and docs are pretty clear about the requirements of the data folder
@shazgames1 commented on GitHub (Nov 29, 2023):
I mean Usage instruction instruction in the Overview. There is no information about necessity of running command in new empty directory. Why not add a

mkdir archivebox && cd archiveboxinstruction to the section as is done in Docker Compose Setup section ?@ZeroPing01 commented on GitHub (Dec 14, 2023):
Hi,
I'm using the last image version and I still have the same issue as you @shazgames1
The error is :
chown: cannot access '/browsers/*': No such file or directoryThe volume used for my case is :
/SSD1/archivebox/data:/dataI changed the permission on this folder (host side):
chmod 777 -R /SSD1/archivebox/databut nothing change.This folder data is empty.
The problem seems being in the container directly in this path :
/browsers/browsersis not binded on my host.I don't understand why changing permission (chmod 777) for
/datafrom my host, can affect/browsersfolder in the container.I followed steps from this page : https://archivebox.io/
I found nothing about this
/browsersfolder.It is not clear for me.
Thanks for your help.
@pirate commented on GitHub (Dec 15, 2023):
The browsers folder should not require binding and has no relation to the /data folder, it's entirely internal to the container and is not meant to be exposed to users at all.
Do you mind opening a new issue @hafx and posting the full output of
archivebox version?@ZeroPing01 commented on GitHub (Dec 18, 2023):
@Gobbless beat me to it.