mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #722] Question: Docker on Windows archiving to an SMB path that doesn't support FSYNC #456
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#456
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 @aluhrs13 on GitHub (Apr 24, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/722
I've been fighting with this long enough to hope that someone with more ArchiveBox and/or Docker knowledge can spot something I'm doing wrong. I'm attempting to run ArchiveBox on Windows following the docker-compose directions, with my Volume on an SMB path (my NAS, not my server).
First I make the volume:
docker volume create --driver local --opt type=cifs --opt device=//<ipaddress>/ArchiveBox --opt o=username=<username>,password=<pass> ArchiveBoxThen I run the first command in the directions:
docker-compose run archivebox init --setupAnd hit errors:
A folder named "logs" is created, but nothing else. Obviously seems to be a permissions issue of some sort, but I don't know enough to figure out what it is. Any suggestions or alternative approaches?
@pirate commented on GitHub (Apr 24, 2021):
Try adding a
:zflag to your volume:Network drives throw red-herring permissions errors sometimes because we use
atomic_writeto FSYNC all writes, and some filesystems don't support it. The:zflag seems to often fix that quirk by having docker middleman the writes (which seems to hide the lack of FSYNC support and fix the error as a side effect).@aluhrs13 commented on GitHub (Apr 24, 2021):
No dice 😢, here's the contents of my docker-compose.yml in case it's something there.
@pirate commented on GitHub (Apr 25, 2021):
Can you post the output of these ^
@aluhrs13 commented on GitHub (Apr 25, 2021):
Here you go, thanks for the help!
@pirate commented on GitHub (Apr 25, 2021):
Can you try giving all permissions on the dir?
chmod -R 777 data(or whatever the windows equivalent ofchmodis).You may also have to change the settings on the cifs cluster to allow read/write for all users, as often permissions are enforced on the server side of the fileshare.
@aluhrs13 commented on GitHub (Apr 25, 2021):
The permissions definitely changed according to SSH and Synology's dashboard, but re-running the the last commands still show the same permissions from Docker's perspective and I get the same error.
I wonder if I should re-think my approach entirely. Is there any way to change what folder archived data is saved to after initial setup? I didn't see an environment variable to configure that. Or maybe I finally go nuclear and swap this server to Linux like I should've done from the start 😅.
@aluhrs13 commented on GitHub (Apr 25, 2021):
Alright I've bit a partial bullet and opted to just run ArchiveBox on my Synology instead of trying to fight this more. Feel free to close this out, unless there's something here you want to investigate further, I'm happy to continue trying troubleshooting steps.
@pirate commented on GitHub (Apr 12, 2022):
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.