Closed mk270 closed 5 years ago
hi @mk270, how did you setup the server?
i just setup another two pubs, one using the automated setup and one using manual setup, i wasn't able to reproduce any errors, so i'm not sure what's wrong on my side.
I've retrodden my steps and taken notes:
ahdinosaur/ssb-pub
ssb-pub
image (i.e., "docker pull ahdinosaur/ssb-pub")~/ssb-pub-data
and the various scripts (modulo having low memory in the VM)Then
root@ginsburg:~# ./create-sbot
792b4d805f883a9daf449d9ef1557817e3ccd7298016dd704f8e3aa81b21c9b3
root@ginsburg:~# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
792b4d805f88 ahdinosaur/ssb-pub "sbot server" 15 seconds ago Restarting (1) 3 seconds ago sbot
"docker logs sbot" still gives the same EACCESS problem against /home/node/.ssb/secret
.. I'm assuming that the /home/node
refers to the filesystem inside the container - I certainly don't have one in the host environment.
What is the "setup" stage you refer to?
@mk270 this is great thank you. :smiley_cat:
so i guess, can you double check your ./create-sbot
with:
cat ./create-sbot
and then also double check your ~/ssb-pub-data
permissions with:
ls -lh ~/ssb-pub-data
create-sbot:
#!/bin/bash
set -eu
ssb_host=gulag.ucant.org
mem=$(free -b --si | awk '/Mem\:/ { print $2 }')
memory_limit=$(( $mem - 200 * (10 ** 6) ))
docker run -d --name sbot \
-v ~ssb/ssb-pub-data/:/home/node/.ssb/ \
-e ssb_host="\$ssb_host" \
-p 8008:8008 \
--restart unless-stopped \
ahdinosaur/ssb-pub
It's not clear from the instructions which user in the host system is supposed to be executing these commands (e.g., root, or a non-privileged user - in my setup you seem to need to be root to use the docker commands).
root@ginsburg:~# ls -ldn ~/ssb-pub-data/
drwxr-xr-x 2 1000 1000 4096 Dec 22 16:47 /root/ssb-pub-data/
@mk270 I think you have a typo in your create-sbot
script. You have ~ssb
instead of ~/ssb
in your volume specifier.
Afraid that's not the problem:
root@ginsburg:~# cat create-sbot
#!/bin/bash
set -eu
ssb_host=gulag.ucant.org
mem=$(free -b --si | awk '/Mem\:/ { print $2 }')
memory_limit=$(( $mem - 200 * (10 ** 6) ))
docker run -d --name sbot \
-v ~ssb/ssb-pub-data/:/home/node/.ssb/ \
-e ssb_host="\$ssb_host" \
-p 8008:8008 \
--restart unless-stopped \
ahdinosaur/ssb-pub
root@ginsburg:~# finger ssb
-su: finger: command not found
root@ginsburg:~# ls /home/ssb
ssb-pub-data
Again, it's not clear from the instructions which user in the host system is supposed to be executing these commands (e.g., root, or a non-privileged user - in my setup you seem to need to be root to use the docker commands).
Ok, it turned out to be several problems, in particular https://github.com/docker/libnetwork/issues/1790
Thanks for the help.
"docker logs sbot" yields the following error, repeated many times: