# Randomly nodes turn off

**URL:** <https://forum.storj.io/t/randomly-nodes-turn-off/27611>\
**Category:** troubleshooting\
**Tags:** windows-gui, writeable-timeout\
**Created:** [August 25, 2024, 9:50am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611 "2024-08-25T09:50:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 25, 2024, 9:50am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/1 "2024-08-25T09:50:51Z")

</div>

As now there is lot of proceses that run on HDD, they time to time jamming each other.  
So i think that there is time to make default Writability check little bit bigger than 1 min.

I have several nodes that go off with this error.

```auto
|2024-08-25T11:20:17+03:00|ERROR|services|unexpected shutdown of a runner|{name: piecestore:monitor, error: piecestore monitor: timed out after 1m0s while verifying writability of storage directory, errorVerbose: piecestore monitor: timed out after 1m0s while verifying writability of storage directory\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2.1:181\n\tstorj.io/common/sync2.(*Cycle).Run:160\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2:168\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:20:17+03:00|ERROR|gracefulexit:chore|error retrieving satellites.|{error: satellitesdb: context canceled, errorVerbose: satellitesdb: context canceled\n\tstorj.io/storj/storagenode/storagenodedb.(*satellitesDB).ListGracefulExits.func1:200\n\tstorj.io/storj/storagenode/storagenodedb.(*satellitesDB).ListGracefulExits:212\n\tstorj.io/storj/storagenode/gracefulexit.(*Service).ListPendingExits:59\n\tstorj.io/storj/storagenode/gracefulexit.(*Chore).AddMissing:55\n\tstorj.io/common/sync2.(*Cycle).Run:160\n\tstorj.io/storj/storagenode/gracefulexit.(*Chore).Run:48\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:44\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:20:32+03:00|WARN|services|service takes long to shutdown|{name: retain}|
|2024-08-25T11:20:32+03:00|WARN|services|service takes long to shutdown|{name: piecestore:cache}|
|2024-08-25T11:20:32+03:00|WARN|services|service takes long to shutdown|{name: collector}|
|2024-08-25T11:20:32+03:00|WARN|servers|service takes long to shutdown|{name: server}|
|2024-08-25T11:20:32+03:00|WARN|services|service takes long to shutdown|{name: pieces:trash}|
|2024-08-25T11:21:34+03:00|ERROR|pieces|used-space-filewalker failed|{Satellite ID: 1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE, Lazy File Walker: false, error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:21:34+03:00|ERROR|piecestore:cache|encountered error while computing space used by satellite|{error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78, SatelliteID: 1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE}|
|2024-08-25T11:21:34+03:00|ERROR|pieces|used-space-filewalker failed|{Satellite ID: 121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6, Lazy File Walker: false, error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:21:34+03:00|ERROR|piecestore:cache|encountered error while computing space used by satellite|{error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78, SatelliteID: 121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6}|
|2024-08-25T11:21:34+03:00|ERROR|pieces:trash|emptying trash failed|{error: pieces error: filestore error: context canceled; context canceled, errorVerbose: pieces error: filestore error: context canceled; context canceled\n\tstorj.io/storj/storagenode/blobstore/filestore.(*blobStore).EmptyTrash:205\n\tstorj.io/storj/storagenode/blobstore/statcache.(*CachedStatBlobstore).EmptyTrash:114\n\tstorj.io/storj/storagenode/pieces.(*BlobsUsageCache).EmptyTrash:432\n\tstorj.io/storj/storagenode/pieces.(*Store).EmptyTrash:443\n\tstorj.io/storj/storagenode/pieces.(*TrashChore).Run.func1.1:84\n\tstorj.io/common/sync2.(*Workplace).Start.func1:89}|
|2024-08-25T11:21:34+03:00|ERROR|retain|retain pieces failed|{cachePath: C:\\Program Files\\Storj11\\Storage Node/retain, error: retain: filewalker: context canceled, errorVerbose: retain: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePiecesToTrash:181\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkSatellitePiecesToTrash:582\n\tstorj.io/storj/storagenode/retain.(*Service).retainPieces:380\n\tstorj.io/storj/storagenode/retain.(*Service).Run.func2:265\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:21:34+03:00|ERROR|pieces|used-space-filewalker failed|{Satellite ID: 12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S, Lazy File Walker: false, error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:21:34+03:00|ERROR|piecestore:cache|encountered error while computing space used by satellite|{error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78, SatelliteID: 12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S}|
|2024-08-25T11:21:34+03:00|ERROR|pieces|used-space-filewalker failed|{Satellite ID: 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs, Lazy File Walker: false, error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
|2024-08-25T11:21:34+03:00|ERROR|piecestore:cache|encountered error while computing space used by satellite|{error: filewalker: context canceled, errorVerbose: filewalker: context canceled\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkSatellitePieces:74\n\tstorj.io/storj/storagenode/pieces.(*FileWalker).WalkAndComputeSpaceUsedBySatellite:79\n\tstorj.io/storj/storagenode/pieces.(*Store).WalkAndComputeSpaceUsedBySatellite:731\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:81\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78, SatelliteID: 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs}|
|2024-08-25T11:21:34+03:00|ERROR|piecestore:cache|error getting current used space for trash: |{error: filestore error: failed to walk trash namespace 7b2de9d72c2e935f1918c058caaf8ed00f0581639008707317ff1bd000000000: context canceled, errorVerbose: filestore error: failed to walk trash namespace 7b2de9d72c2e935f1918c058caaf8ed00f0581639008707317ff1bd000000000: context canceled\n\tstorj.io/storj/storagenode/blobstore/filestore.(*blobStore).SpaceUsedForTrash:273\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run.func1:100\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78}|
2024-08-25T11:21:58+03:00	ERROR	collector	error during expired pieces collection	{"count": 11000, "error": "pieces error: pieceexpirationdb: context canceled", "errorVerbose": "pieces error: pieceexpirationdb: context canceled\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceExpirationDB).getExpiredPaginated:103\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceExpirationDB).GetExpired:66\n\tstorj.io/storj/storagenode/pieces.(*Store).GetExpiredBatchSkipV0:612\n\tstorj.io/storj/storagenode/collector.(*Service).Collect:99\n\tstorj.io/storj/storagenode/collector.(*Service).Run.func1:68\n\tstorj.io/common/sync2.(*Cycle).Run:99\n\tstorj.io/storj/storagenode/collector.(*Service).Run:64\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:44\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}
2024-08-25T11:21:58+03:00	ERROR	collector	error during collecting pieces: {"error": "pieces error: pieceexpirationdb: context canceled", "errorVerbose": "pieces error: pieceexpirationdb: context canceled\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceExpirationDB).getExpiredPaginated:103\n\tstorj.io/storj/storagenode/storagenodedb.(*pieceExpirationDB).GetExpired:66\n\tstorj.io/storj/storagenode/pieces.(*Store).GetExpiredBatchSkipV0:612\n\tstorj.io/storj/storagenode/collector.(*Service).Collect:99\n\tstorj.io/storj/storagenode/collector.(*Service).Run.func1:68\n\tstorj.io/common/sync2.(*Cycle).Run:99\n\tstorj.io/storj/storagenode/collector.(*Service).Run:64\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:44\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}
2024-08-25T11:21:58+03:00	ERROR	failure during run	{"error": "piecestore monitor: timed out after 1m0s while verifying writability of storage directory", "errorVerbose": "piecestore monitor: timed out after 1m0s while verifying writability of storage directory\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2.1:181\n\tstorj.io/common/sync2.(*Cycle).Run:160\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2:168\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}
2024-08-25T11:21:58+03:00	FATAL	Unrecoverable error	{"error": "piecestore monitor: timed out after 1m0s while verifying writability of storage directory", "errorVerbose": "piecestore monitor: timed out after 1m0s while verifying writability of storage directory\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2.1:181\n\tstorj.io/common/sync2.(*Cycle).Run:160\n\tstorj.io/storj/storagenode/monitor.(*Service).Run.func2:168\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}

```

---

<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:** [August 25, 2024, 10:37am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/2 "2024-08-25T10:37:42Z")

</div>

> [@Vadim](#):
>
> timed out after 1m0s while verifying writability of storage directory

That’s a culprit, you need either improve the disk subsystem or increase a timeout accordingly the error.  
In this case you need to increase the writable timeout a little bit (30s for example).  
And repeat this until the node would stop to crash. However, if it would be greater than 5 minutes it’s time to rethink your setup.  
If you would take into the account, that now the timeout for a GET\_AUDIT request is 15 seconds, and you would have a readable checks failures… well, you have a problem. Not now, by the way, but if you could have (never, please)…

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 25, 2024, 11:43am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/3 "2024-08-25T11:43:29Z")

</div>

It is a problem only when there is a Delets are happening, all other time it working fine.

---

<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:** [August 25, 2024, 1:59pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/4 "2024-08-25T13:59:30Z")

</div>

Ok.  
“When I became a firefighter, it was so cool! Until, you know, you have to put out a fire… Then I prayed to get fired…”

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 25, 2024, 4:15pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/5 "2024-08-25T16:15:54Z")

</div>

I think problem will be partly solved when Budger cache can be moved to SSD, it will lower pressure on HDD, like it hapened with DBs

---

<div class="post-metadata">

**Author:** ![JWvdV](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jwvdv/32/7814_2.png) [@JWvdV](https://forum.storj.io/u/JWvdV)\
**Post date:** [August 25, 2024, 5:11pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/6 "2024-08-25T17:11:02Z")

</div>

It can but you have to take some effort:

- Windows: [NTFS Hard Links, Junctions and Symbolic Links](https://www.2brightsparks.com/resources/articles/ntfs-hard-links-junctions-and-symbolic-links.html?srsltid=AfmBOoqULrli9GxovyAedzIRAKGpqcWFlo3nfCzMZku0oNP7ivo0rNcl)
- Linux: [https://www.baeldung.com/linux/bind-mounts](https://www.baeldung.com/linux/bind-mounts)
- Docker: [Bind mounts | Docker Docs](https://docs.docker.com/engine/storage/bind-mounts/)

---

<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:** [August 26, 2024, 3:14am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/7 "2024-08-26T03:14:39Z")

</div>

Do you think the badger cache have a high I/O pressure? Did you see it with a Resources Monitor? I believe that it’s cached by the OS.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 26, 2024, 3:30am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/8 "2024-08-26T03:30:08Z")

</div>

It is cached when it has enouth RAM for it, yes it has big presure, for example node on NVME is with cache make start scan len than in minut, it draw 25MB/s from NVME, hdd cant make this speeds.

---

<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:** [August 26, 2024, 4:10am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/9 "2024-08-26T04:10:20Z")

</div>

If the whole node on NVME, then it’s a total amount of operations. Not sure that you can compare speed with IOPS though.  
Only the load can show this, however, you need to separate the load driven by the badger cache from the total load. You need to use either a Resources Monitor or a Performance Monitor (it has much more metrics and you can save the graphs for a period of time and review what was the load in the past).

---

<div class="post-metadata">

**Author:** ![EasyRhino](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/easyrhino/32/1133_2.png) [@EasyRhino](https://forum.storj.io/u/EasyRhino)\
**Post date:** [August 26, 2024, 5:25am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/10 "2024-08-26T05:25:11Z")

</div>

Hey vadim, there are some options in config.yaml about deletes. number of processed simultaneously, and number of files to delete. If you are doing more than 1 simultaneous, maybe stop and go to 1.

What filesystem are you running on?

Also, if you are using docker then it’s pretty easy right now to move the badger cache to SSD. Just mount a separate mount for filestatcache.

my docker compose is like this:

```
  - type: bind
    source: /srv/storj2
    target: /app/config
  - type: bind
    source: /home/ubuntu/storj/storage
    target: /app/dbs
  - type: bind
    source: /home/ubuntu/storj/badger
    target: /app/config/storage/filestatcache

```

---

<div class="post-metadata">

**Author:** ![Evgeny](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/evgeny/32/7824_2.png) [@Evgeny](https://forum.storj.io/u/Evgeny)\
**Post date:** [August 26, 2024, 12:03pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/11 "2024-08-26T12:03:00Z")

</div>

I had a similar problem. I noticed that the amount of RAM becomes extremely small after some time of computer operation. Then I enlarged the swap file in windows and the problem went away.

---

<div class="post-metadata">

**Author:** ![batelis](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/batelis/32/1136_2.png) [@batelis](https://forum.storj.io/u/batelis)\
**Post date:** [August 26, 2024, 3:26pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/12 "2024-08-26T15:26:03Z")

</div>

Yep I get this error on my new node with slower disk 5600rpm aswell

---

<div class="post-metadata">

**Author:** ![arrogantrabbit](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/arrogantrabbit/32/11200_2.png) [@arrogantrabbit](https://forum.storj.io/u/arrogantrabbit)\
**Post date:** [August 26, 2024, 3:56pm UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/13 "2024-08-26T15:56:37Z")

</div>

> [@Evgeny](#):
>
> Then I enlarged the swap file in windows and the problem went away.

The problem was swapped under the rug, it did not go away anywhere. The only way to “fix” the problem is make amount of IO reaching the disk smaller than what it can sustain. You can find specific advice on the forum here.

---

<div class="post-metadata">

**Author:** ![Vadim](https://storj.bcdn.literatehosting.com/letter_avatar/vadim/32/6_449c533f586939b6e5f246632a46421f.png) [@Vadim](https://forum.storj.io/u/Vadim)\
**Post date:** [August 28, 2024, 12:12am UTC](https://forum.storj.io/t/randomly-nodes-turn-off/27611/14 "2024-08-28T00:12:26Z")

</div>

No brain file deletion makes problem to node, watch mft size and location.

 ![Screenshot 2024-08-28 030936](https://storj-s3.bcdn.literatehosting.net/original/3X/9/7/973ad0c5dc3e6a3dd8bd4d6458cb92509d5f95e2.png)

i found that this node has files in trash from 28.07 and it cant clean it, I deleted some manualy some files deletion was 1 per second or even slower.
