# Graceful Exit help

**URL:** <https://forum.storj.io/t/graceful-exit-help/29259>\
**Category:** troubleshooting\
**Tags:** docker, graceful-exit\
**Created:** [February 11, 2025, 1:40pm UTC](https://forum.storj.io/t/graceful-exit-help/29259 "2025-02-11T13:40:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyrider](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jonnyrider/32/1132_2.png) [@jonnyrider](https://forum.storj.io/u/jonnyrider)\
**Post date:** [February 11, 2025, 1:40pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/1 "2025-02-11T13:40:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [February 11, 2025, 2:21pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/2 "2025-02-11T14:21:19Z")

</div>

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

```auto
sudo docker exec -it storagenode /app/storagenode exit-satellite --identity-dir /app/identity

```

---

<div class="post-metadata">

**Author:** ![jonnyrider](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jonnyrider/32/1132_2.png) [@jonnyrider](https://forum.storj.io/u/jonnyrider)\
**Post date:** [February 11, 2025, 2:34pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/3 "2025-02-11T14:34:57Z")

</div>

Thanks, that worked. Knew it would be simple!

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [February 11, 2025, 4:03pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/4 "2025-02-11T16:03:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 13, 2025, 8:26am UTC](https://forum.storj.io/t/graceful-exit-help/29259/5 "2025-02-13T08:26:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [February 13, 2025, 8:33pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/6 "2025-02-13T20:33:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 15, 2025, 3:05am UTC](https://forum.storj.io/t/graceful-exit-help/29259/7 "2025-02-15T03:05:54Z")

</div>

This is weird. The latest change is there:

> <https://github.com/storj/storagenode-docker/commit/a187f986c5a29fd9f40de9615b35ba2d0bd7ae70>
>
> \* fixed exec issue for restricted systems
> 
> \* fixed the case with the older ver…sion in storage
> 
> \* fixed the case if the suggested version is not allowed yet
> 
> \* unified check for a new version
> 
> \* remove BINARY\_DIR, change BINARY\_STORE to BINARY\_STORE\_DIR
> 
> Change-Id: Ic5da0d1303e3f19d4e577bf9a58081b29c9208da
> 
> \---------
> 
> Co-authored-by: Clement Sam \<clementsam75@gmail.com\>

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

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [February 15, 2025, 4:06pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/8 "2025-02-15T16:06:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [February 16, 2025, 8:16am UTC](https://forum.storj.io/t/graceful-exit-help/29259/9 "2025-02-16T08:16:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![LrrrAc](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/lrrrac/32/8809_2.png) [@LrrrAc](https://forum.storj.io/u/LrrrAc)\
**Post date:** [February 17, 2025, 4:17pm UTC](https://forum.storj.io/t/graceful-exit-help/29259/10 "2025-02-17T16:17:27Z")

</div>

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