Failed to execute commands

hello
i try to execute a cli dashboard but i have the error, i try the solution posted here but doest work
error

FATAL Failed to load identity. {“error”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:329\n\tmain.cmdDashboard:53\n\tstorj.io/private/process.cleanup.func1.4:344\n\tstorj.io/private/process.cleanup.func1:362\n\tgithub.com/spf13/cobra.(*Command).execute:840\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:945\n\tgithub.com/spf13/cobra.(*Command).Execute:885\n\tstorj.io/private/process.ExecWithCustomConfig:86\n\tstorj.io/private/process.ExecCustomDebug:68\n\tmain.main:329\n\truntime.main:203”}

sudo docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967
-p 127.0.0.1:14002:14002
-e WALLET=""
-e EMAIL=""
-e ADDRESS=""
-e STORAGE=“500GB”
–mount type=bind,source="/home/S3c0nd/.local/share/storj/identity/storagenode",destination=/app/identity
–mount type=bind,source="/storj2/",destination=/app/config
–name storagenode storjlabs/storagenode:beta

ls -l /home/S3c0nd/.local/share/storj/identity/storagenode
total 24
-rw-r–r-- 1 S3c0nd S3c0nd 518 May 10 00:44 ca.1589064258.cert
-rw-r–r-- 1 S3c0nd S3c0nd 1048 May 10 00:44 ca.cert
-rw------- 1 S3c0nd S3c0nd 241 May 10 00:35 ca.key
-rw-r–r-- 1 S3c0nd S3c0nd 1056 May 10 00:44 identity.1589064258.cert
-rw-r–r-- 1 S3c0nd S3c0nd 1586 May 10 00:44 identity.cert
-rw------- 1 S3c0nd S3c0nd 241 May 10 00:35 identity.key

also have a different error with diag command

2020-05-11T06:48:08.471Z INFO Configuration loaded {“Location”: “/root/.local/share/storj/storagenode/config.yaml”}
2020-05-11T06:48:08.472Z INFO tracing disabled
unable to get bandwidth summary: bandwidthdb error: no such table: bandwidth_usage_rollups
Error: bandwidthdb error: no such table: bandwidth_usage_rollups

How is your HDD connected ?

Looks like you’re running the node as user S3c0nd, but the command as user root.

hello the disk is connected and the node running

yes im run the docker command with sudo because i havent permission to execute with my regular user
docker exec -it storagenode /app/storagenode
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.40/containers/storagenode/json: dial unix /var/run/docker.sock: connect: permission denied

already solved the permission for my user, now i dont need execute docker with sudo
i used the command

sudo usermod -aG docker $(whoami), restart session and try again, now i have permission

also i recreate the container whit the new permission but the original message continues

Please, remove the config.yaml and restart the storagenode.
Do not modify paths in a new created config.yaml if you change them in the docker run command. The parameters from the docker run command have a precedence over the config.yaml, but in case of docker the paths must be a static, because they are in the container, not in your host.

i ran docker stop -t 300 storagenode && sudo rm /storj2/config.yaml && docker run storagenode command
but dont fix

Please, show the current error.

2020-05-11T14:01:51.437Z INFO tracing disabled
2020-05-11T14:01:51.438Z FATAL Failed to load identity. {“error”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:329\n\tmain.cmdDashboard:53\n\tstorj.io/private/process.cleanup.func1.4:344\n\tstorj.io/private/process.cleanup.func1:362\n\tgithub.com/spf13/cobra.(*Command).execute:840\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:945\n\tgithub.com/spf13/cobra.(*Command).Execute:885\n\tstorj.io/private/process.ExecWithCustomConfig:86\n\tstorj.io/private/process.ExecCustomDebug:68\n\tmain.main:329\n\truntime.main:203”}

This is clearly states, that you did something wrong either with your config.yaml or with your docker run command, since in the container there is no such path ever.

Please, make sure that you changed only source part of the --mount command and didn’t touch the destination part, and the config.yaml doesn’t exist in the storage location.
Perhaps the restart is not enough and you should remove the container and run it again

Also, please, show the result of the command

sudo ls -l /root/.local/share/storj/identity/storagenode/

i ckeck and all see normal, for test only i add the final slash in config directory but the issue continues

–mount type=bind,source="/home/S3c0nd/.local/share/storj/identity/storagenode/",destination=/app/identity
–mount type=bind,source="/storj2/",destination=/app/config \

sudo ls -l /root/.local/share/storj/identity/storagenode/
ls: cannot access ‘/root/.local/share/storj/identity/storagenode/’: No such file or directory

ls -l /home/S3c0nd/.local/share/storj/identity/storagenode/
total 24
-rw-r–r-- 1 S3c0nd S3c0nd 518 May 10 00:44 ca.1589064258.cert
-rw-r–r-- 1 S3c0nd S3c0nd 1048 May 10 00:44 ca.cert
-rw------- 1 S3c0nd S3c0nd 241 May 10 00:35 ca.key
-rw-r–r-- 1 S3c0nd S3c0nd 1056 May 10 00:44 identity.1589064258.cert
-rw-r–r-- 1 S3c0nd S3c0nd 1586 May 10 00:44 identity.cert
-rw------- 1 S3c0nd S3c0nd 241 May 10 00:35 identity.key

  1. Ok, stop and remove the container.
  2. Remove the config.yaml from the storage folder
  3. Run the storagenode again

not fix i paste full log

$docker stop -t 300 storagenode && docker rm storagenode && sudo rm /storj2/config.yaml

storagenode
storagenode

$ ls /storj2/

lost+found revocations.db storage trust-cache.json

$ docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967
-p 127.0.0.1:14002:14002
-e WALLET=""
-e EMAIL=""
-e ADDRESS=""
-e STORAGE=“500GB”
–mount type=bind,source="/home/S3c0nd/.local/share/storj/identity/storagenode/",destination=/app/identity
–mount type=bind,source="/storj2/",destination=/app/config
–name storagenode storjlabs/storagenode:beta

1e18a14057e0b6513c02a1b9d70549ffb6653b6a9015e17ad2af5a7c9184a48c

$ docker exec -it storagenode /app/storagenode dashboard
2020-05-11T15:23:21.176Z INFO tracing disabled
2020-05-11T15:23:21.177Z FATAL Failed to load identity. {“error”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found error: open /root/.local/share/storj/identity/storagenode/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:329\n\tmain.cmdDashboard:53\n\tstorj.io/private/process.cleanup.func1.4:344\n\tstorj.io/private/process.cleanup.func1:362\n\tgithub.com/spf13/cobra.(*Command).execute:840\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:945\n\tgithub.com/spf13/cobra.(*Command).Execute:885\n\tstorj.io/private/process.ExecWithCustomConfig:86\n\tstorj.io/private/process.ExecCustomDebug:68\n\tmain.main:329\n\truntime.main:203”}

Just make sure you aren’t using curly quotes.

yes im using, but i removed, and did all the procedure again (stop container, delete container, delete config.yaml, create container) without the quotes but the issue persist

Where did you get that command from? The correct command would be docker exec -it storagenode /app/dashboard.sh. Your command seems to try to start a second instance of a soragenode in the container.

1 Like

yes, that solved the problem,
I read the command from the documentation https://documentation.storj.io/resources/faq/other-commands
thanks a lot everyone

That page doesn’t list any commands, only how to execute them. To get the available commands, run docker exec -it storagenode /app/storagenode help as written on that page.

Also, please mark the solution in this thread.