Closed Abekonge closed 5 years ago
hmm.. is this because of a file ownership / permissions problem?
can you ls -lh ssb-pub-data
when it's working?
if you copy in an old secret, you need to have the ownership / permissions match this, most likely you need to chown 1000:1000 ssb-pub-data/secret
to have it owned by the node
user in the Docker container.
does that help?
Ah good point, forgot to think about that. The copied secret did indeed have the wrong permissions.
So when I chown -R 1000:1000 ~/ssb-pub-data
and then afterwards copy in my old secret - there will be an ownership problem.
The readme could point this put, but maybe that would be going into too much detail...
Something like
rsync -avz ~/ssb-pub-data/blobs/sha256/ $HOST:~/ssb-pub-data/blobs/sha256/
# Remember to set the permissions on the newly copied files
chown -R 1000:1000 ~/ssb-pub-data
interesting how 1000:1000 sets the permissions to the "first system user", so its my user on the host, and the node user on the container ... clever use of that! but still wondering how docker manages this - what if I copied a file with the second user on the host - what would that become in the container ? anywho I digress ...
The readme could point this put, but maybe that would be going into too much detail...
yes, happy if you want to submit a pull request! :smiley_cat:
interesting how 1000:1000 sets the permissions to the "first system user", so its my user on the host, and the node user on the container ... clever use of that! but still wondering how docker manages this - what if I copied a file with the second user on the host - what would that become in the container ? anywho I digress ...
1000 is the user id (uid). this number happens to be the "first system user". but the node user in the container is always uid 1000, so if you had a file owned by the second user (e.g. 1001), it won't be owned by the node user because it's not 1000.
closing because this is resolved, but yeah happy for any pull requests
using
docker logs --tail 50 --follow --timestamps sbot
to see what was going on inside the container I got the following error:I removed the secret (and the gossip.json) and tried again, and voila - it worked!