Error: file or directory not found: open identity/identity.key: permission denied

Hello,

have trouble with starting a new node.
I’ve signed identity, moved identity files to my location and checked them:

grep -c BEGIN /home/user/storjcert/ca.cert
2
user@user:~/storjcert$ grep -c BEGIN /home/user/storjcert/identity.cert
3

this looks fine.
then i run this:

docker run --rm -e SETUP=“true” --user $(id -u):$(id -g) --mount type=bind,source=“/home/user/storjcert/”,destination=/app/identity --mount type=bind,source=“/home/user/storjdata/”,destination=/app/config --name storagenode storjlabs/storagenode:latest

and i always get the same error:

15500K … … … … … 99% 542M 0s
15550K … … … … … 99% 432M 0s
15600K … … … … … 99% 544M 0s
15650K … … … 100% 490M=0.4s

2022-08-31 11:04:25 (42.8 MB/s) - ‘/tmp/storagenode.zip’ saved [16048605/16048605]

Running ./storagenode setup --config-dir config --identity-dir identity --metrics.app-suffix=-alpha --metrics.interval=30m --version.server-address=https://version.storj.io --console.address=:14002 --storage.allocated-disk-space=2.0TB
2022-08-31T11:04:26.116Z INFO Anonymized tracing enabled {“Process”: “storagenode”}
Error: file or directory not found: open identity/identity.key: permission denied

Thank you.

was trying to solve this, and now i get a bit different error, running the same command:

2022-08-31T11:49:00.914Z INFO Anonymized tracing enabled {“Process”: “storagenode”}
Error: open /app/config/config.yaml2929679811: permission denied

solved out :slight_smile:

sudo chown -R user:user /home/user/storjdata/

1 Like