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”}
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
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
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.
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/
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
$ 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”}
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.
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.