Hello,
Can you help me please with adding second node? I am struggling with a correct declaration which will make sure that I use all unique ports for the second node.
Right now, I am using the following:
docker run --rm -e SETUP="true" \
--user $(id -u):$(id -g) \
--mount type=bind,source="/mnt/WD-WCC7K3NHF837/identity",destination=/app/identity \
--mount type=bind,source="/mnt/WD-WCC7K3NHF837",destination=/app/config \
--name WD-WCC7K3NHF837 storjlabs/storagenode:latest
This will create stub config in my designated folder in /mnt.
Then, I launch it:
docker run -d \
--restart unless-stopped \
--stop-timeout 300 \
--memory="4g" \
-p "28968:28968/tcp" \
-p "28968:28968/udp" \
-p "192.168.1.182:14003:14003" \
-e CONSOLE_ADDRESS="192.168.1.182:14003" \
-e SERVER_PRIVATE_ADDRESS="127.0.0.1:7779" \
-e WALLET="mywallet" \
-e EMAIL="myemail" \
-e ADDRESS="mydynamicdns:28968" \
-e STORAGE="3697GB" \
--user "1000:1000" \
--mount type=bind,source="/mnt/WD-WCC7K3NHF837/identity",destination=/app/identity \
--mount type=bind,source="/mnt/WD-WCC7K3NHF837",destination=/app/config \
--name "WD-WCC7K3NHF837" \
storjlabs/storagenode:latest
I added all new ports, 28968, 14003. Second node starts correctly and it is running in the background. But problem is, I cannot see anything on 14003 port. Tried 127.0.01:14003, 192.168.1.182:14003 (my PC IP), from inside and outside of that PC.
NetworkSettings inspection show some problems. This is my first node, which has been running nicely for weeks:
$ docker inspect c3522791a8b4 --format='{{json .NetworkSettings.Ports}}' | jq{
"14002/tcp": [
{
"HostIp": "192.168.1.182",
"HostPort": "14002"
}
],
"28967/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "28967"
},
{
"HostIp": "::",
"HostPort": "28967"
}
],
"28967/udp": [
{
"HostIp": "0.0.0.0",
"HostPort": "28967"
},
{
"HostIp": "::",
"HostPort": "28967"
}
]
}
And this is the second node, spawned using command above:
$ docker inspect b5029286a2c0 --format='{{json .NetworkSettings.Ports}}' | jq
{
"14002/tcp": null,
"14003/tcp": [
{
"HostIp": "192.168.1.182",
"HostPort": "14003"
}
],
"28967/tcp": null,
"28968/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "28968"
},
{
"HostIp": "::",
"HostPort": "28968"
}
],
"28968/udp": [
{
"HostIp": "0.0.0.0",
"HostPort": "28968"
},
{
"HostIp": "::",
"HostPort": "28968"
}
]
}
I don’t know why these null ports. And why no output on 14003 port, despite node running:
Storage Node Dashboard ( Node Version: v1.114.6 )
======================
ID xxxxx
Status ONLINE
Uptime 12m50s
Available Used Egress Ingress
Bandwidth N/A 183.07 MB 2.85 MB 180.21 MB (since Oct 1)
Disk 3.70 TB 159.71 MB
Internal 127.0.0.1:7778
External my_dynamic_DNS_address:28968
My last questions, please.
- Wallet and e-mail being the same for all nodes, this is allowed, right?
- How much space declare for storj to use, in GB? How many GB to leave free? I have 4TB disks, which have 3724 GiB formatted, and 3698 GiB when completely free. Currently I told storj to use
-e STORAGE="3697GB" \
but it may be too much?
Thank you!