Node dashboard won't load. Setup failure?

@RandallStevens If you migrated a worked node to the Linux, you must not generate a new identity and perform a setup step, otherwise you will destroy your old node, what you seems almost did. And this is good, that it cannot start.
I hope that you at least did not generate a new identity, otherwise you need to copy your previous identity from the Windows PC again.

Please also make sure that you migrated all data to the /mnt/STORJ/storagenode/data/storage/ (note the subdirectory storage, this is important!).
If you migrated to the /mnt/STORJ/storagenode/data/ path, not to the /mnt/STORJ/storagenode/data/storage/, then you need to move all data from /mnt/STORJ/storagenode/data/ to /mnt/STORJ/storagenode/data/storage/.

You must never execute the docker run command with SETUP=true for existing node!

In your docker run command you will use /mnt/STORJ/storagenode/data (note here the storage subdirectory must absent).

@peem

Yes I did run that command

@Alexey

No I did not generate a new identity

I did run this set up command

sudo docker run --rm -e SETUP="true" \
    --user $(id -u):$(id -g) \
    --mount type=bind,source="/mnt/STORJ/storagenode/identity/storjidentity",destination=/app/identity \
    --mount type=bind,source="/mnt/STORJ/storagenode/data",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

What does that mean?

Doe that mean I’m screwed?

Or can I rerun the setup command with soemthing different for SETUP?

Or should I rerun the setup command with SETUP deleted altogether?

I moved the data from /mnt/STORJ/storagenode/data to…

/mnt/STORJ/storagenode/data/storage

so that much is taken care of

@peem @Alexey

Okay!!!

We are making progress.

I stopped the container and then reran it after relocating the files like Alexey said and now the dashboard loads but says offline misconfigured

Please provide the last 20 lines from your logs (text please, not a screenshot).
To prettify the look, place logs lines here between two new lines with three backticks, like this

```
log lines here
```

@Alexey @peem

Is says the port is closed…

Screenshot from 2022-10-29 21-33-13

Do you have a working firewall on this linux system?

And of course on the router have you changed the port forwarding on the PC now used for SN?

1 Like

@peem

I don’t know if I have a working firewall on linux.

I never set one up. Is it set up by default?

@peem @Alexey

If I run:

udo ufw status

it says “inactive”

@peem

yes I changed port forwarding on my router. Is the type supposed to be “DNS”?

Don’t you already have a redirect to SN under Windows? It would be sufficient to change the LAN IP
the type supposed to be “custom”

@peem

Yes that’s what I did on my router.

I changed it to “custom”

I get this error message when trying to restart

randall@GoodRig:~$ sudo docker restart -t 300 storagenode
Error response from daemon: Cannot restart container storagenode: permission denied
history | grep usermod

@peem

randall@GoodRig:~$ history | grep usermod
   82  history | grep usermod

OK
now:

sudo usermod -aG docker $USER

@peem

done but was I supposed to change the $user to $randall?

also it still says port is closed

The port is closed because SN is not working…

$USER add randall (or rather who is now logged in) into the docker group

you will do the same:

sudo usermod -aG docker randall

Now stop the SN container:

sudo docker stop -t 300 storagenode

remove it:

sudo docker rm storagenode

@peem

that command worked just fine but now the dashboard won’t even load again.

This is so frustrating. Is this because I ran “SETUP=true”???

That’s what the directions say to do…

@peem

randall@GoodRig:~$ sudo docker stop -t 300 storagenode
[sudo] password for randall: 
storagenode
randall@GoodRig:~$ sudo docker rm storagenode
storagenode
randall@GoodRig:~$ 

Now start the container but without sudo:

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967/tcp \
    -p 28967:28967/udp \
    -p 127.0.0.1:14002:14002 \
etc....