-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Unable to create the django_migrations table (database is locked) - When OUTPUT_DIR to SAMBA share #946
Comments
Not sure why I was getting the issue above, but ended up finding a workaround (probably the 'right' way to do it). I started from scratch and ran a new
Any issues doing it this way? |
Nope, that's a valid way to do it! But I recommend this instead so you don't have to hardcode those file paths: - ./archivebox/data:/data
- /mnt/BAlink/archivebox/archive:/data/archive |
Fantastic. Thanks. So, for docker generally, you can specify a subdirectory of a directory to be linked to a different path than the rest of the base-directory? Does the order they are listed matter? |
Yes, and the order matters. Sub-path overrides for paths within a parent must be listed after the parent. |
Note I've added a new DB/filesystem troubleshooting area to the wiki that may help people arriving here from Google: https://github.com/ArchiveBox/ArchiveBox/wiki/Upgrading-or-Merging-Archives#database-troubleshooting Contributions/suggestions welcome there. |
This is working. When the BTW, I also tried NFS mounting and didn't encounter database locked issue. |
Hello,
Running ArchiveBox in docker (docker compose) am trying to output my archives to a samba share mounted on the archivebox host.
I am configuring the directories, and the docker-compose.yml file, then running the
docker-compose run archivebox init --setup
command. Once finished, I'm updating the ArchiveBox.conf file to containOUTPUT_DIR = /mnt/archivebox
(which is where i have my mounted SAMBA share directory mounted to the container from the host using a bind mount), and running thedocker-compose up -d
command.In the logs, there is a long pause at
[+] Building main SQL index and running initial migrations...
, then a failure to load. Full log:I have exact setup working succesfully working another machine with ArchiveBox running in docker, but cannot seem to get it to work on this machine (Ubuntu Server 21.10).
The text was updated successfully, but these errors were encountered: