How to access dashboard of SN in datacenter (Debian Linux)

@saamxvr ill help you out mate ... im kinda advanced on linux/freeBSD Unix etc … so lets start simple, first thing we must see its running on your internal network … run the command bellow on your server to get your internet IP first :
root@SERVER1:~# /sbin/ifconfig|grep inet
inet 192.168.200.201 netmask 255.255.255.0 broadcast 192.168.200.255

You should get something like that and try http://192.168.200.201:14002 my example and see if its running … and we go forward from there !!!

P.S: ( first thing i wanna mention is “-p 127.0.0.1:14002:14002” your IP here should be the internal IP of your server 192.168.200.201 my example not localhost 127.0.0.1 [<—probably this is your problem] … will never work outside your internal network otherwise ) … i wait for your reply and we go forward after … will work 100 % in the end so no worries …

you can add the iptables command to but probably not your case :
iptables -A OUTPUT -p tcp -m tcp --dport 14002 -j ACCEPT
iptables -A OUTPUT -p udp -m udp --dport 14002 -j ACCEPT
iptables-save

an example of my NODE starting command …
root@SERVER1:~# cat START
docker run -d --restart unless-stopped -p 28967:28967
-p 192.168.200.201:14002:14002
-e WALLET=“0xxxxxxxxxxxxxxxxxxxxx”
-e EMAIL="email@gmail.com"
-e ADDRESS=“www.your.dns.com:28967
-e BANDWIDTH=“500000000000000000 TB”
-e STORAGE=“8TB”
–mount type=bind,source="/home/administrator/.local/share/storj/identity/storagenode/",destination=/app/identity
–mount type=bind,source="/mnt/storj1",destination=/app/config
–name storagenode storjlabs/storagenode:beta
root@SERVER1:~#

Hahaha here you go … thank you !! Yes i did try adding IPTABLE and if even cant open public … yes i need your help

 /sbin/ifconfig|grep inet
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:5ff:feef:e3cf/64 Scope:Link
          inet addr:xxxx  Bcast:xxxx  Mask:255.255.255.0
          inet6 addr: fe80::baac:6fff:fe99:7336/64 Scope:Link
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          inet6 addr: fe80::5821:d5ff:feb6:f8e3/64 Scope:Link
          inet6 addr: fe80::344d:eeff:fe51:25cb/64 Scope:Link

just read everything i said … let me know if you understood and paste your internal IP (works just for you so no security issue :))) ) … and tell me if http://your-internal-ip:14002/ opens up for you !!!

ok got it … so you have a real IP there … not internal … do the iptables commands then … and as i mentioned up … add your IP to docker command when you run the node :

docker run -d --restart unless-stopped -p 28967:28967
-p your-ip-not-localhost:14002:14002 …

UPDATE :
just the docker configuration of IP is your problem … as your server doesnt have firewall that is blocking your port for the dashboard :

root@SERVER1:~# telnet your-ip 14002
Trying your-ip…
telnet: Unable to connect to remote host: Connection refused
root@SERVER1:~#

if you add your real ip instead of localhost on the running command of your node should fix your problem !!!

OK tel me should i run again docker command ?

yes … change your IP to docker and run it again !!!

So could you tel me how could i stop docker and run this command correct order ? and wont i lost node data ? right

You really shouldnt have touched this, theres a reason no one is giving step by step how to do it, they need to learn to do it themselfs and learn the risks, instead its going to be on you. It is not recommended to make the dashboard public at all.

of course not … you dont lose data , you can find out the info here : https://documentation.storj.io/setup/cli/software-updates / manual updates info

or just do this :
docker stop -t 300 storagenode ( ps : if your storagenode has the name storagenode )
docker rm storagenode
and now start your storagenode again with new IP
docker run -d --restart unless-stopped --stop-timeout 300 … etc !!!

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p 127.0.0.1:14002:14002 \
    -e WALLET="xxxxx" \
    -e EMAIL="xxxxxx" \
    -e ADDRESS="xxx:28967" \
    -e STORAGE="1.6TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode",destination=/app/identity \
    --mount type=bind,source="/mnt/filehd",destination=/app/config \
    --name storagenode storjlabs/storagenode:beta

New code should like this ?

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p xxxxxx:14002:14002 \
    -e WALLET="xxx" \
    -e EMAIL="pxxxxx" \
    -e ADDRESS="xxxx:28967" \
    -e STORAGE="1.6TB" \
    --mount type=bind,source="/root/.local/share/storj/identity/storagenode",destination=/app/identity \
    --mount type=bind,source="/mnt/filehd",destination=/app/config \
    --name storagenode storjlabs/storagenode:beta

Right ?

yes exactly … just IP needs to be changed nothing else if worked fine before !!!

Hahah let me run … wish me luck !!

will work … its science … no need luck =)) hehe … but GL :slight_smile:

Hmm i just did … no respond HTTP … any idea ?

great … i see it works !!! :grin: … for anything else about Linux … you can always ask me !!! have fun !!!

you forgot the port mate … :14002 :))))

Ohhhhhhhhhhhhhhhhhhhhhhh yehhhhhhhhhhh !! you saved my life !!! love you !!!

glad i could help !!! with you the best !!!

1 Like

Thank you so much !!! and this thared is really help who run in Linux and open to public port