Aitor
February 23, 2021, 8:32pm
1
Hello,
I’m trying to setup my second node on the same linux box. I have tried all this:
sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967
-p 14003:14003
-e WALLET=“0x”
-e EMAIL=“info@”
-e ADDRESS=“node2.kozow.com:28968 ”
-e STORAGE=“1TB”
–mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity
–mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config
–name node1 storjlabs/storagenode:latest
sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967
-p 14003:14003
-e WALLET=“0x”
-e EMAIL=“info@”
-e ADDRESS=“node2.kozow.com:28967 ”
-e STORAGE=“1TB”
–mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity
–mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config
–name node1 storjlabs/storagenode:latest
sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967
-p 14003:14002
-e WALLET=“0x”
-e EMAIL=“info@”
-e ADDRESS=“node2.kozow.com:28968 ”
-e STORAGE=“1TB”
–mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity
–mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config
–name node1 storjlabs/storagenode:latest
Ports are open on the router like:
-p 28968:28967 \
-p 14003:14003 \
The error it’s:
ERROR contact:service ping satellite failed
I also tried to:
Disable firewall.
Identity checked correctly: 2 and 3.
DMZ the IP on the router.
My setup:
outside world => 28968
node2.kozow.com:28968
router => 28968 => 28967
node machine => docker
-p 28968:28967 \
Thank you.
Vadim
February 23, 2021, 9:03pm
2
it because your node wating to connect on 28968 but router configured to switch from 28968 on wan to 28967 on lan, so node not get connection on 28968 change router to 28968 on lan
-p 28968:28967 \ this mean that in doker insode 28967 but outsode 28968
also it is not recomended to open dashboard to uotside world for connection, only inside lan usage.
2 Likes
Aitor
February 23, 2021, 9:12pm
3
Yes!!!
It worked, it’s online now. Thank you very much. I can’t connect to the dashboard. Is this correct?
-p 14003:14003 \ ?
Vadim
February 23, 2021, 9:17pm
4
dashdoard shold work on 192.168.1.10:14003 in lan, but if you forward it on router you expouse it to connect from outside world, hackers can hack it
Aitor
February 23, 2021, 9:19pm
5
I removed on the router, thank you.
It worked with: -p 14003:14002 \
Aitor
February 24, 2021, 10:22am
6
Now, it’s offline again. This node was down for 2 days, may that be why I can’t connect?
My configuration it’s 29868 to 29868 on router and:
sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967
-p 14003:14002
-e WALLET=“0x”
-e EMAIL=“info@”
-e ADDRESS=“node2.kozow.com:28968 ”
-e STORAGE=“1TB”
–mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity
–mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config
–name node1 storjlabs/storagenode:latest
Vadim
February 24, 2021, 10:36am
7
check your node2.kozow.com give you your external ip, do you use ddns updater?
do you have node 1 on same ip?
then no need to make separate ddns, and second ddns will be not updated.
Aitor
February 24, 2021, 12:19pm
8
Both nodes use ddns on the same ip/machine. I tried using another ddns host but still the same error:
2021-02-24T12:16:27.061Z ERROR contact:service ping satellite failed {“Satellite ID”: “121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6”, “attempts”: 6, “error”: “ping satellite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkHqpwhq8pGgKYgvbvTJrg) at address node1.casacam.net:28968 : rpc: dial tcp 188.26.207.73:28968: connect: connection refused”, “errorVerbose”: “ping satellite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkHqpwhq8pGgKYgvbvTJrg) at address node1.casacam.net:28968 : rpc: dial tcp 188.26.207.73:28968: connect: connection refused\n\tstorj.io/storj/storagenode/contact.(*Service ).pingSatelliteOnce:141\n\tstorj.io/storj/storagenode/contact.(*Service ).pingSatellite:95\n\tstorj.io/storj/storagenode/contact.(*Chore ).updateCycles.func1:87\n\tstorj.io/common/sync2.(*Cycle ).Run:92\n\tstorj.io/common/sync2.(*Cycle ).Start.func1:71\n\tgolang.org/x/sync/errgroup.(*Group ).Go.func1:57”}
My last configuration:
sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28968:28967
-p 14003:14002
-e WALLET=“0x…”
-e EMAIL=“info@…”
-e ADDRESS=“node1.casacam.net:28968 ”
-e STORAGE=“1TB”
–mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity
–mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config
–name node1 storjlabs/storagenode:latest
Vadim
February 24, 2021, 3:04pm
9
use same ddns no need to use different
baker
February 24, 2021, 3:04pm
10
If you want to rule out problems with the DDNS service, you can put your public IP in the ADDRESS
field and see if that works. Also, watch out that you are not passing curly quotes and hyphens in your run command. I see them in your posted commands, although I know the forum does some reformatting. You can preserve formatting (which will help the community catch any errors) but placing your block of text with three backticks ( ``` ) on the lines above and below the text block.
Aitor
February 24, 2021, 3:09pm
11
Here it’s, still doesn’t connect. IP it’s also on DMZ of the router, so all ports are passed, even 14002/14003 from external now (just until I find the problem).
sudo docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28968:28967 \
-p 14003:14002 \
-e WALLET="0x" \
-e EMAIL="info@" \
-e ADDRESS="188.26.207.73:28968" \
-e STORAGE="1TB" \
--mount type=bind,source="/mnt/storj/storj/node1/identity",destination=/app/identity \
--mount type=bind,source="/mnt/storj/storj/node1/storage",destination=/app/config \
--name node1 storjlabs/storagenode:latest
Aitor
February 24, 2021, 3:28pm
13
node2@node2:~$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json: dial unix /var/run/docker.sock: connect: permission denied
node2@node2:~$ sudo docker ps
[sudo] password for node2:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
38d8069a52a0 storjlabs/storagenode:latest "/entrypoint" 19 minutes ago Up 13 minutes 0.0.0.0:14003->14002/tcp, 0.0.0.0:28968->28967/tcp node1
9c145a08f690 storjlabs/storagenode:latest "/entrypoint" 3 days ago Up 13 minutes 0.0.0.0:14002->14002/tcp, 0.0.0.0:28967->28967/tcp node2
Both are running, but the second doesn’t connect. You can see it here:
http://188.26.207.73:14003/
Aitor
February 24, 2021, 3:34pm
14
Firewall it’s off too:
node2@node2:~$ sudo ufw status
Status: inactive
peem
February 24, 2021, 3:34pm
15
What the command returns
sudo docker logs node1 2>&1 | head -n 30
Aitor
February 24, 2021, 3:35pm
16
ERROR contact:service ping satellite failed {"Satellite ID": "1wFTAgs9DP5RSnCqKV1eLf6N9wtkxcs8EjT69tGE", "attempts": 3, "error": "ping satellite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkHYgvbvTJrg) at address 188.26.207.73:28968: rpc: dial tcp 188.26.207.73:28968: connect: connection refused", "errorVerbose": "pite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkHqpwhq8pGgKYgvbvTJrg) at address 188.26.207.73:28968l tcp 188.26.207.73:28968: connect: connection refused\n\tstorj.io/storj/storagenode/contact.(*Service).pingSatelliteOnce:141\o/storj/storagenode/contact.(*Service).pingSatellite:95\n\tstorj.io/storj/storagenode/contact.(*Chore).updateCycles.func1:87\n/common/sync2.(*Cycle).Run:92\n\tstorj.io/common/sync2.(*Cycle).Start.func1:71\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1
2021-02-24T15:08:44.043Z ERROR contact:service ping satellite failed {"Satellite ID": "121RTSDpyNZVcEU84Ticf2L1ntiu21tuvgk3vzoA6", "attempts": 3, "error": "ping satellite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkKYgvbvTJrg) at address 188.26.207.73:28968: rpc: dial tcp 188.26.207.73:28968: connect: connection refused", "errorVerbose": "lite error: failed to dial storage node (ID: 1XxvnNhpcT2F8eXVnew2uZpYkAmYRkHqpwhq8pGgKYgvbvTJrg) at address 188.26.207.73:2896al tcp 188.26.207.73:28968: connect: connection refused\n\tstorj.io/storj/storagenode/contact.(*Service).pingSatelliteOnce:141io/storj/storagenode/contact.(*Service).pingSatellite:95\n\tstorj.io/storj/storagenode/contact.(*Chore).updateCycles.func1:87\o/common/sync2.(*Cycle).Run:92\n\tstorj.io/common/sync2.(*Cycle).Start.func1:71\n\tg
Aitor
February 24, 2021, 3:36pm
17
This node was down for 2 days.
Vadim
February 24, 2021, 3:42pm
18
what about identitie did you signed it with new key from storj? does it has 6 files?
Aitor
February 24, 2021, 3:48pm
20
Identity is verified, it give me 2-3 as output. Ports are open as like:
It works if I start the node with no content on /storage folder. I moved data from a windows node to this linux, I think it have to be anything about that.