Graceful Exit help

Hi all,

Apologies if this is a simple question, but I cannot get graceful exit to work. Below is the command I use to start the node:

sudo docker run -d --restart always --stop-timeout 300 -p 28967:28967/tcp -p 28967:28967/udp -p 14002:14002 -e WALLET="REDACTED" -e EMAIL="REDACTED" -e ADDRESS="REDACTED" -e STORAGE="900GB" --log-opt max-size=50m --log-opt max-file=10 --mount type=bind,source=/home/admin/storj,destination=/app/identity --mount type=bind,source=/mnt/storj/storagenode,destination=/app/config --name storagenode storjlabs/storagenode:latest --operator.wallet-features=zksync-era

but when I enter the following command:

sudo docker exec -it storagenode /app/bin/storagenode exit-satellite --config-dir /app/config

I get the following error:

OCI runtime exec failed: exec failed: unable to start container process: exec: "/app/bin/storagenode": stat /app/bin/storagenode: no such file or directory: unknown

Thanks in advance to anyone who can help.

This is the command I used. For whatever reason the location of the file “storagenode” was different. Try that.

sudo docker exec -it storagenode /app/storagenode exit-satellite --identity-dir /app/identity
2 Likes

Thanks, that worked. Knew it would be simple!

1 Like

Took me a while to figure out, glad to save you some time.

Hello @jonnyrider,
Welcome to the forum!

@LrrrAc @jonnyrider
It could work only if you never updated the base image (e.g. do not have a watchtower and didn’t run docker pull storjlabs/storagenode after setup).

The latest base image put binaries to /app/bin/ folder.

1 Like

I regularly pull new images, when was this changed? I used the /app/bin location before, i was forced to figure out the new /app location months ago.

This is weird. The latest change is there:

So, I do not know how you managed to get binaries back to /app unless you used the older base image.

I just checked and it’s app/bin again. I used that before, then had to figure out it was changed to /app/, but I guess it changed back since I last used it. Odd.

Maybe some of your hosts have an old base image, some - the new one?

Could be, but regardless, now they match what you say they should.

1 Like