Exit-satellite with --identity-dir doesn't seem to work

Any idea what I’m doing wrong?

$ docker exec -it 531 /app/storagenode exit-satellite --identity-dir /app/identity
2023-06-22T07:25:51.618Z        INFO    Anonymized tracing enabled      {"process": "storagenode"}
2023-06-22T07:25:51.624Z        FATAL   Failed to load identity.        {"process": "storagenode", "error": "file or directory not found: open /identity.cert: no such file or directory", "errorVerbose": "file or directory not found: open /identity.cert: no such file or directory\n\tstorj.io/common/identity.Config.Load:326\n\tmain.cmdGracefulExitInit:109\n\tmain.newGracefulExitInitCmd.func1:43\n\tstorj.io/private/process.cleanup.func1.4:399\n\tstorj.io/private/process.cleanup.func1:417\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:113\n\tmain.main:30\n\truntime.main:250"}
$ docker exec -it 531 ls /app/identity
ca.1674082369.cert  ca.key                    identity.cert
ca.cert             identity.1674082369.cert  identity.key

You need to use --config-dir instead, the latest versions have changed the behavior a little bit.

docker exec -it 531 /app/storagenode exit-satellite --config-dir config
1 Like