# Node crashes after restart

**URL:** <https://forum.storj.io/t/node-crashes-after-restart/26324>\
**Category:** troubleshooting\
**Tags:** database\
**Created:** [May 23, 2024, 10:07pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324 "2024-05-23T22:07:55Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [May 25, 2024, 6:32pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/21 "2024-05-25T18:32:43Z")

</div>

not able to fix it! will try later on…

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [May 25, 2024, 6:38pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/22 "2024-05-25T18:38:31Z")

</div>

Fixed… No errors now! that file was on a different folder

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [May 30, 2024, 1:11pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/23 "2024-05-30T13:11:48Z")

</div>

getting same error! anyone who can help?

`Error: Error migrating tables for database on storagenode: migrate: sql: Scan error on column index 0, name "MAX(version)": converting driver.Value type []uint8 ("\xaf,B\x00>\xfc\x82j\xb46\x1fs\xf9ؐ\x94!F\xfe\x0e\xbe\x80g\x86\xf8\xe7\x19\b\x00\x00\x00\x00") to a int64: invalid syntax `

---

<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:** [May 31, 2024, 3:54am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/24 "2024-05-31T03:54:33Z")

</div>

Since you cannot recover it, then you need to re-create it:

> **[How to fix database: file is not a database error](https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error)**
>
> If your node was abruptly terminated due to power failure, the database file could be irreversible corrupted, you can see an error Error starting master database on storagenode: database: file is n...

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [May 31, 2024, 8:33am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/25 "2024-05-31T08:33:31Z")

</div>

i cannot find .db-shm and .db-wal extensions! I’ve run the command sudo find -name .db-shm and no output! the other db are in …/storage/ folder!

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [May 31, 2024, 2:24pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/26 "2024-05-31T14:24:04Z")

</div>

storagewars@raspberrypi:// $ sudo find /home/storagewars/Hds/HD2/ -maxdepth 1 -iname “_.db" -print0 -exec sqlite3 ‘{}’ ‘PRAGMA integrity\_check;’ ‘;’  
/home/storagewars/Hds/HD2/revocations.dbError: file is not a database  
storagewars@raspberrypi:// $ find /home/storagewars/Hds/HD2/storage -maxdepth 1 -iname "_.db” -print0 -exec sqlite3 ‘{}’ ‘PRAGMA integrity\_check;’ ‘;’  
/home/storagewars/Hds/HD2/storage/piece\_spaced\_used.dbok  
/home/storagewars/Hds/HD2/storage/orders.dbok  
/home/storagewars/Hds/HD2/storage/notifications.dbok  
/home/storagewars/Hds/HD2/storage/heldamount.dbok  
/home/storagewars/Hds/HD2/storage/pieceinfo.dbok  
/home/storagewars/Hds/HD2/storage/used\_serial.dbok  
/home/storagewars/Hds/HD2/storage/reputation.dbok  
/home/storagewars/Hds/HD2/storage/info.dbok  
/home/storagewars/Hds/HD2/storage/bandwidth.dbok  
/home/storagewars/Hds/HD2/storage/secret.dbok  
/home/storagewars/Hds/HD2/storage/used\_space\_per\_prefix.dbok  
/home/storagewars/Hds/HD2/storage/piece\_expiration.dbok  
/home/storagewars/Hds/HD2/storage/storage\_usage.dbok  
/home/storagewars/Hds/HD2/storage/garbage\_collection\_filewalker\_progress.dbok  
/home/storagewars/Hds/HD2/storage/satellites.dbok  
/home/storagewars/Hds/HD2/storage/pricing.dbok

---

<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:** [June 1, 2024, 6:02am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/27 "2024-06-01T06:02:52Z")

</div>

> [@toma](#):
>
> i cannot find .db-shm and .db-wal extensions!

That’s good. This is mean that your node is not running and didn’t crash (these files are created only when the node is running and deleted when it’s gracefully stopped).

> [@toma](#):
>
> /home/storagewars/Hds/HD2/revocations.dbError: file is not a database

This one you may ignore (it should not be here anyway, it should be one level directory upper, near the `config.yaml`), you may even delete it, it will be recreated on the node restart.

All others seems doesn’t have issues.

What’s now logs says when you run the node?

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 8:28am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/28 "2024-06-01T08:28:34Z")

</div>

Will see when the time let! I’m not able to see it now!

A sábado, 1/06/2024, 07:12, Alexey via Storj Community Forum (official) \<[storj@literatehosting.com](mailto:storj@literatehosting.com)\> escreveu:

---

<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:** [June 1, 2024, 8:30am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/29 "2024-06-01T08:30:07Z")

</div>

Do you mean that you do not see errors in your logs?

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 12:43pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/30 "2024-06-01T12:43:41Z")

</div>

The only error that i’m able to see is the one that you also view

A sábado, 1/06/2024, 09:40, Alexey via Storj Community Forum (official) \<[storj@literatehosting.com](mailto:storj@literatehosting.com)\> escreveu:

---

<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:** [June 1, 2024, 12:44pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/31 "2024-06-01T12:44:57Z")

</div>

I cannot see any errors, they are stored/showed only your side…

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 1:27pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/32 "2024-06-01T13:27:05Z")

</div>

I will give a feed when in front of them…

A sábado, 1/06/2024, 13:55, Alexey via Storj Community Forum (official) \<[storj@literatehosting.com](mailto:storj@literatehosting.com)\> escreveu:

---

<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:** [June 1, 2024, 1:28pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/33 "2024-06-01T13:28:50Z")

</div>

Please post any errors, if they are appear.

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 3:36pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/34 "2024-06-01T15:36:48Z")

</div>

```auto
find /home/storagewars/Hds/HD2/storage -maxdepth 1 -iname "*.db" -print0 -exec sqlite3 '{}' 'PRAGMA integrity_check;' ';'
/home/storagewars/Hds/HD2/storage/piece_spaced_used.dbok
/home/storagewars/Hds/HD2/storage/orders.dbok
/home/storagewars/Hds/HD2/storage/notifications.dbok
/home/storagewars/Hds/HD2/storage/heldamount.dbok
/home/storagewars/Hds/HD2/storage/pieceinfo.dbok
/home/storagewars/Hds/HD2/storage/used_serial.dbok
/home/storagewars/Hds/HD2/storage/reputation.dbok
/home/storagewars/Hds/HD2/storage/info.dbok
/home/storagewars/Hds/HD2/storage/bandwidth.dbok
/home/storagewars/Hds/HD2/storage/secret.dbok
/home/storagewars/Hds/HD2/storage/used_space_per_prefix.dbok
/home/storagewars/Hds/HD2/storage/piece_expiration.dbok
/home/storagewars/Hds/HD2/storage/storage_usage.dbok
/home/storagewars/Hds/HD2/storage/garbage_collection_filewalker_progress.dbok
/home/storagewars/Hds/HD2/storage/satellites.dbok
/home/storagewars/Hds/HD2/storage/pricing.dbok

storagewars@raspberrypi:// $ sudo docker logs storagenode22

2024-06-01T15:32:15Z	ERROR	failure during run	{"Process": "storagenode", "error": "Error migrating tables for database on storagenode: migrate: sql: Scan error on column index 0, name \"MAX(version)\": converting driver.Value type []uint8 (\"\\xaf,B\\x00>\\xfc\\x82j\\xb46\\x1fs\\xf9ؐ\\x94!F\\xfe\\x0e\\xbe\\x80g\\x86\\xf8\\xe7\\x19\\b\\x00\\x00\\x00\\x00\") to a int64: invalid syntax\n\tstorj.io/storj/shared/dbutil/txutil.WithTx:53\n\tstorj.io/storj/private/migrate.(*Migration).getLatestVersion:252\n\tstorj.io/storj/private/migrate.(*Migration).Run:182\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:387\n\tmain.cmdRun:98\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error migrating tables for database on storagenode: migrate: sql: Scan error on column index 0, name \"MAX(version)\": converting driver.Value type []uint8 (\"\\xaf,B\\x00>\\xfc\\x82j\\xb46\\x1fs\\xf9ؐ\\x94!F\\xfe\\x0e\\xbe\\x80g\\x86\\xf8\\xe7\\x19\\b\\x00\\x00\\x00\\x00\") to a int64: invalid syntax\n\tstorj.io/storj/shared/dbutil/txutil.WithTx:53\n\tstorj.io/storj/private/migrate.(*Migration).getLatestVersion:252\n\tstorj.io/storj/private/migrate.(*Migration).Run:182\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:387\n\tmain.cmdRun:98\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:100\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error migrating tables for database on storagenode: migrate: sql: Scan error on column index 0, name "MAX(version)": converting driver.Value type []uint8 ("\xaf,B\x00>\xfc\x82j\xb46\x1fs\xf9ؐ\x94!F\xfe\x0e\xbe\x80g\x86\xf8\xe7\x19\b\x00\x00\x00\x00") to a int64: invalid syntax
	storj.io/storj/shared/dbutil/txutil.WithTx:53
	storj.io/storj/private/migrate.(*Migration).getLatestVersion:252
	storj.io/storj/private/migrate.(*Migration).Run:182
	storj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:387
	main.cmdRun:98
	main.newRunCmd.func1:33
	storj.io/common/process.cleanup.func1.4:393
	storj.io/common/process.cleanup.func1:411
	github.com/spf13/cobra.(*Command).execute:983
	github.com/spf13/cobra.(*Command).ExecuteC:1115
	github.com/spf13/cobra.(*Command).Execute:1039
	storj.io/common/process.ExecWithCustomOptions:112
	main.main:34
	runtime.main:267
2024-06-01 15:32:15,543 INFO stopped: storagenode (exit status 1)
2024-06-01 15:32:15,545 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)

storagewars@raspberrypi:// $ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3fa883aed762 storjlabs/storagenode:latest "/entrypoint --opera…" 2 days ago Exited (0) About a minute ago storagenode22
c0ca3b8c666b storjlabs/storagenode:latest "/entrypoint --opera…" 4 months ago Up 4 days 127.0.0.1:14003->14002/tcp, 0.0.0.0:28968->28967/tcp, 0.0.0.0:28968->28967/udp, :::28968->28967/tcp, :::28968->28967/udp storagenode11
c385aa961387 hello-world "/hello" 9 months ago Exited (0) 9 months ago frosty_fermat
storagewars@raspberrypi:// $ sudo docker rm storagenode22
storagenode22
storagewars@raspberrypi:// $ sudo docker run -d --restart always --stop-timeout 300 -p 28969:28967/tcp -p 28969:28967/udp -p 127.0.0.1:14002:14002 -e WALLET="0x20ba0ed29b38f63cfe96193b1e85365821a7058a" -e EMAIL="unofficialolym@gmail.com" -e ADDRESS="storagewarz.ddns.net:28969" -e STORAGE="1.7TB" --memory=800m --log-opt max-size=50m --log-opt max-file=10 --mount type=bind,source=/home/storagewars/Hds/HD2/ID2/,destination=/app/identity --mount type=bind,source=/home/storagewars/Hds/HD2,destination=/app/config --name storagenode22 storjlabs/storagenode:latest --operator.wallet-features=zksync
WARNING: Your kernel does not support memory limit capabilities or the cgroup is not mounted. Limitation discarded.
111eba2d71bd5e693d7ac6a2270e6acdf823f294b6e35eef7aeb8ed6754b7cac

```

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 3:44pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/35 "2024-06-01T15:44:24Z")

</div>

Same error! Failure during run! port checker reveals port closed!

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 3:55pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/36 "2024-06-01T15:55:22Z")

</div>

O errors and 0 bad blocks after running a health check! 🙃

```auto
storagewars@raspberrypi:// $ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
111eba2d71bd storjlabs/storagenode:latest "/entrypoint --opera…" 16 minutes ago Up 2 seconds 127.0.0.1:14002->14002/tcp, 0.0.0.0:28969->28967/tcp, 0.0.0.0:28969->28967/udp, :::28969->28967/tcp, :::28969->28967/udp storagenode22
c0ca3b8c666b storjlabs/storagenode:latest "/entrypoint --opera…" 4 months ago Up 4 days 127.0.0.1:14003->14002/tcp, 0.0.0.0:28968->28967/tcp, 0.0.0.0:28968->28967/udp, :::28968->28967/tcp, :::28968->28967/udp storagenode11
c385aa961387 hello-world "/hello" 9 months ago Exited (0) 9 months ago frosty_fermat

```

---

<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:** [June 1, 2024, 4:23pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/37 "2024-06-01T16:23:27Z")

</div>

I can only suggest to recreate this database

> **[How to fix database: file is not a database error](https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error)**
>
> If your node was abruptly terminated due to power failure, the database file could be irreversible corrupted, you can see an error Error starting master database on storagenode: database: file is n...

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 9:27pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/38 "2024-06-01T21:27:40Z")

</div>

Should all DB be deleted?

A sábado, 1/06/2024, 17:33, Alexey via Storj Community Forum (official) \<[storj@literatehosting.com](mailto:storj@literatehosting.com)\> escreveu:

---

<div class="post-metadata">

**Author:** ![toma](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/toma/32/1125_2.png) [@toma](https://forum.storj.io/u/toma)\
**Post date:** [June 1, 2024, 11:10pm UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/39 "2024-06-01T23:10:14Z")

</div>

![imagem_2024-06-02_000119883](https://storj-s3.bcdn.literatehosting.net/original/3X/f/2/f293e15f6bfa69acddfc70cac0e2f7a77b588bd6.png)

No DB there! One output of the log:

```auto
2024-06-01T23:09:01Z	INFO	lazyfilewalker.used-space-filewalker	starting subprocess	{"Process": "storagenode", "satelliteID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S"}
2024-06-01T23:09:01Z	ERROR	lazyfilewalker.used-space-filewalker	failed to start subprocess	{"Process": "storagenode", "satelliteID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S", "error": "context canceled"}
2024-06-01T23:09:01Z	ERROR	pieces	failed to lazywalk space used by satellite	{"Process": "storagenode", "error": "lazyfilewalker: context canceled", "errorVerbose": "lazyfilewalker: context canceled\n\tstorj.io/storj/storagenode/pieces/lazyfilewalker.(*process).run:73\n\tstorj.io/storj/storagenode/pieces/lazyfilewalker.(*Supervisor).WalkAndComputeSpaceUsedBySatellite:130\n\tstorj.io/storj/storagenode/pieces.(*Store).SpaceUsedTotalAndBySatellite:704\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:58\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78", "Satellite ID": "12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S"}
2024-06-01T23:09:01Z	ERROR	piecestore:cache	error getting current used space: {"Process": "storagenode", "error": "filewalker: context canceled; filewalker: context canceled; filewalker: context canceled; filewalker: context canceled", "errorVerbose": "group:\n--- 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).SpaceUsedTotalAndBySatellite:713\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:58\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78\n--- 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).SpaceUsedTotalAndBySatellite:713\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:58\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78\n--- 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).SpaceUsedTotalAndBySatellite:713\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:58\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78\n--- 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).SpaceUsedTotalAndBySatellite:713\n\tstorj.io/storj/storagenode/pieces.(*CacheService).Run:58\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}
2024-06-01T23:09:02Z	ERROR	failure during run	{"Process": "storagenode", "error": "piecestore monitor: disk space requirement not met", "errorVerbose": "piecestore monitor: disk space requirement not met\n\tstorj.io/storj/storagenode/monitor.(*Service).Run:137\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2.1:87\n\truntime/pprof.Do:51\n\tstorj.io/storj/private/lifecycle.(*Group).Run.func2:86\n\tgolang.org/x/sync/errgroup.(*Group).Go.func1:78"}
Error: piecestore monitor: disk space requirement not met
2024-06-01 23:09:02,071 INFO stopped: storagenode (exit status 1)
2024-06-01 23:09:02,074 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)

```

---

<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:** [June 2, 2024, 3:34am UTC](https://forum.storj.io/t/node-crashes-after-restart/26324/40 "2024-06-02T03:34:46Z")

</div>

> [@toma](#):
>
> Should all DB be deleted?

All DBs should be moved to the backup folder except the corrupted one. The corrupted one should be deleted.  
But seems you deleted all databases instead, so the history is now gone. It’s not a problem and do not affect payouts.

> [@toma](#):
>
> `Error: piecestore monitor: disk space requirement not met`

This is because all databases were re-created, and there is no info about used space, so the node cannot start properly, because you do not have 500GB free on the disk.  
This can be solved by adding/uncommenting option in the `config.yaml` file:

```auto
# how much disk space a node at minimum has to advertise (default 500.00 GB)
storage2.monitor.minimum-disk-space: 0B

```

Save the config and restart the node.  
Or by adding it as a command line argument after the image name in your `docker run` command:

```auto
docker run ...
...
--name storagenode storjlabs/storagenode:latest \
--storage2.monitor.minimum-disk-space=0B

```

When the used-space-filewalker would finish its job, it will update databases with a correct values and after that you may comment out this option in the `config.yaml` file if you added/uncommented it before or remove that command line option from your `docker run` command.  
You may check the progress of the filewalkers in your logs:

> [@Filewalker status](https://forum.storj.io/t/topic/25325/5):
>
> Logs should be at least info level Used space filewalker Task: Calculates disk usage by scanning all pieces and updates the local node databases afterwards with these values docker logs storagenode -f 2\>&1 | grep "used-space-filewalker" | grep -E "started|finished" GC filewalker Task: Based on a [Bloom filter](https://forum.storj.io/t/how-bloom-filters-work/12104/2) it marks pieces as expired for removal by the retain process docker logs storagenode -f 2\>&1 | grep "gc-filewalker" | grep -E "started|finished" Trash-cleanup filewalker Task: Deletes p…

[Previous page](https://forum.storj.io/t/node-crashes-after-restart/26324.md?page=1)

[Next page](https://forum.storj.io/t/node-crashes-after-restart/26324.md?page=3)
