-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Docker share - Archive not writable. #862
Comments
Running with
|
Ok, so it seem to be related to something specific for the container instance? Some variable used in signatures or something like that? (I'm guessing 😛 ) Locally I get the same issue if I try to create a share with a container, and then share with my local
No diff in permissions:
|
It's because the secret key is persisted to .dat in home when docker throws
away on reboot.
@jhand any option to specify another place to store that?
…On Mon, Sep 11, 2017, 14:16 Asbjorn Enge ***@***.***> wrote:
Ok, so it seem to be related to something specific for the container
instance? Some variable used in signatures or something like that? (I'm
guessing 😛 )
Locally I get the same issue if I try to create a share with a container,
and then share with my local dat installation.
// create share `html`
dat share html
// create share `html2` with container
docker run --rm -v (pwd):/dat -it registry.taghub:5000/dat-data:0.0.7 share /dat/html2
// re-share `html2` -> error
dat share html2
// re-share `html` -> works
dat share html
No diff in permissions:
./html/.dat:
total 88
drwxr-xr-x 14 asbjorn staff 476 11 Sep 14:09 .
drwxr-xr-x 3 asbjorn staff 102 11 Sep 14:09 ..
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.bitfield
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.key
-rw-r--r-- 1 asbjorn staff 64 11 Sep 14:09 content.secret_key
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.signatures
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.tree
-rw-r--r-- 1 asbjorn staff 3360 11 Sep 14:09 metadata.bitfield
-rw-r--r-- 1 asbjorn staff 46 11 Sep 14:09 metadata.data
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 metadata.key
-rw-r--r-- 1 asbjorn staff 0 11 Sep 14:09 metadata.latest
-rw-r--r-- 1 asbjorn staff 1 11 Sep 14:09 metadata.ogd
-rw-r--r-- 1 asbjorn staff 96 11 Sep 14:09 metadata.signatures
-rw-r--r-- 1 asbjorn staff 72 11 Sep 14:09 metadata.tree
./html2/.dat:
total 88
drwxr-xr-x 14 asbjorn staff 476 11 Sep 14:09 .
drwxr-xr-x 3 asbjorn staff 102 11 Sep 14:09 ..
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.bitfield
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.key
-rw-r--r-- 1 asbjorn staff 64 11 Sep 14:09 content.secret_key
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.signatures
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 content.tree
-rw-r--r-- 1 asbjorn staff 3360 11 Sep 14:09 metadata.bitfield
-rw-r--r-- 1 asbjorn staff 46 11 Sep 14:09 metadata.data
-rw-r--r-- 1 asbjorn staff 32 11 Sep 14:09 metadata.key
-rw-r--r-- 1 asbjorn staff 0 11 Sep 14:09 metadata.latest
-rw-r--r-- 1 asbjorn staff 1 11 Sep 14:09 metadata.ogd
-rw-r--r-- 1 asbjorn staff 96 11 Sep 14:09 metadata.signatures
-rw-r--r-- 1 asbjorn staff 72 11 Sep 14:09 metadata.tree
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#862 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAW_VSkfNB_U34WDa5tcmVUSCHS4ROAUks5shSShgaJpZM4PS4D5>
.
|
Unfortunately, looks like there isn't an option and it isn't quite straightforward to add. Our storage APIs are tightly coupled right now Opened issue in dat-storage too dat-ecosystem-archive/dat-storage#6 |
Ah, excellent! Suspected it was something like this 😛 I managed to work around it by simply mounting docker run --rm -v (pwd)/html:/html -v (pwd)/dat:/root/.dat -it registry.taghub:5000/dat-data:0.0.10 dat share /html Thanks a bunch 🎉 |
Hi guys 😄
I've been experimenting with using
dat
as adocker volumes
replacement. It's been working quite well 🎉 👍 Only issue I'm having is that restarting theshare
service gives me an error:Archive not writable, cannot use share. Please use sync to resume download.
.A quick example:
So, I'm starting the
share
- everything looks good, the.dat
folder is created etc. However, restarting with the exact same command gives me the above error. I'm pretty sure it's some docker permissions thing where theuid
oggid
mismatch or something, but I haven't been able to pin it down. Giving the folder 777 does not seem to help.So I've been wondering how this
dat.writable
get's determined and if we can find a clue there somewhere. Any ideas?To Dockerfile is just:
Thanks 👍
The text was updated successfully, but these errors were encountered: