Error: file or directory not found error: open identity/identity.cert: no such file or directory

I followed the documentation as described here https://documentation.storj.io/setup/cli

  • I have the authorization token
  • Created an identity
  • Enabled port forwarding
  • Installed docker on debian 10
  • Downloaded the storage node docker container
  • Mounted a 5TB disk on /mnt/usb

And then I got to the part where I have to run this command

docker run --rm -e SETUP="true" \
    --mount type=bind,source=/usr/local/bin,destination=/app/identity \
    --mount type=bind,source=/mnt/usb,destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

I get this error message

Error: file or directory not found error: open identity/identity.cert: no such file or directory

Which is weird because /usr/local/bin exists, and has an identity file in it.

Obviously I am missing something here, but I can’t figure out what.

You don’t use the location of the identity program but the location of the files it creates

thanks, this seemed to do the trick

docker run --rm -e SETUP="true" \
    --mount type=bind,source=/root/.local/share/storj/identity/storagenode,destination=/app/identity \
    --mount type=bind,source=/mnt/usb,destination=/app/config \
    --name storagenode storjlabs/storagenode:latest
1 Like

I would like to suggest you to move the identity folder to the storage, you will need both anyway - identity and tied data, but also would have a small protection against disqualification if your drive wouldn’t mounted for any reason - the node will not start.
Don’t forget to change the binding to the new location, if you would follow the suggestion.

1 Like