Ident and ca cert file location?

Standing up a new node on a QNAP, via container station/docker. Immediately fails saying needs .cert files, then restarts container. I’ve generated the certs on the host, but need to know where to copy them to in the container so it can find them. Anyone know the path, or if there’s a way to end the boot loop and generate them inside the container directly?

Hello @nevetsyad,
Welcome back!

I would suggest to use a docker CLI instead of this outdated app: CLI Install - Storj Docs

There you will know, where you placed your identity and data and always can get the same result.

This app is a wrapper around docker, so basically you can use a command to see what were mount parameters for the container during the run:

In case of the QNAP App the name of the container you can get from the command:

docker ps -qf ancestor=storjlabs/storagenode

Or just

docker ps

Good morning,

I have docker version from storjlabs/storagenode installed. The amazingly simple QNAP app stopped working long ago. :frowning: But the fresh docker install just boot loops in docker when I start it, never giving me the chance to create an identity.

2024-01-25 05:10:30,030 INFO exited: storagenode (exit status 1; not expected)
2024-01-25 05:10:32,034 INFO spawned: ‘storagenode’ with pid 40
2024-01-25 05:10:32,037 INFO spawned: ‘storagenode-updater’ with pid 41
2024-01-25T05:10:32Z INFO Anonymized tracing enabled {“Process”: “storagenode-updater”}
2024-01-25T05:10:32Z FATAL Error loading identity. {“Process”: “storagenode-updater”, “error”: “file or directory not found: open identity/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found: open identity/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdRun:108\n\tstorj.io/private/process.cleanup.func1.4:393\n\tstorj.io/private/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomOptions:112\n\tstorj.io/private/process.ExecWithCustomConfigAndLogger:77\n\tmain.main:20\n\truntime.main:267”}
2024-01-25 05:10:32,066 INFO exited: storagenode-updater (exit status 1; not expected)
2024-01-25T05:10:32Z INFO Anonymized tracing enabled {“process”: “storagenode”}
2024-01-25T05:10:32Z ERROR Failed to load identity. {“process”: “storagenode”, “error”: “file or directory not found: open identity/identity.cert: no such file or directory”, “errorVerbose”: “file or directory not found: open identity/identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdRun:51\n\tmain.newRunCmd.func1:32\n\tstorj.io/private/process.cleanup.func1.4:393\n\tstorj.io/private/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:852\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:960\n\tgithub.com/spf13/cobra.(*Command).Execute:897\n\tstorj.io/private/process.ExecWithCustomOptions:112\n\tmain.main:30\n\truntime.main:267”}
Error: Failed to load identity: file or directory not found: open identity/identity.cert: no such file or directory
storj.io/common/identity.Config.Load:326
main.cmdRun:51
main.newRunCmd.func1:32
storj.io/private/process.cleanup.func1.4:393
storj.io/private/process.cleanup.func1:411
github.com/spf13/cobra.(*Command).execute:852
github.com/spf13/cobra.(*Command).ExecuteC:960
github.com/spf13/cobra.(*Command).Execute:897
storj.io/private/process.ExecWithCustomOptions:112
main.main:30
runtime.main:267

You need to provide a full path to the identity folder in your docker run command, where you have 6 files of the identity are located.
See Storage Node - Storj Docs

Please show your docker run command (you may mask your private information) between two new lines with three backticks, like this:

```
docker run -d ...
```