Cannot restart storagenode after crash, need help

Hi guys, my node stopped working because of disk error, I’d replaced the bad one with a new one then tried to restart it but it stuck at this error:

2026-07-12T18:50:44Z ERROR failure during run {"process": "storagenode", "error": "Failed to create storage node peer: hashstore: creating file=/opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: open /opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: file exists\n\tstorj.io/storj/storagenode/hashstore.newAtomicFile:248\n\tstorj.io/storj/storagenode/hashstore.(*Store).reconcileLog:1746\n\tstorj.io/storj/storagenode/hashstore.NewStore:394\n\tstorj.io/storj/storagenode/hashstore.New:105\n\tstorj.io/storj/storagenode/piecestore.(*HashStoreBackend).getDB:277\n\tstorj.io/storj/storagenode/piecestore.NewHashStoreBackend:122\n\tstorj.io/storj/storagenode.New:607\n\tmain.cmdRun:107\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.InitBeforeExecute.func1.2:389\n\tstorj.io/common/process.InitBeforeExecute.func1:407\n\tgithub.com/spf13/cobra.(*Command).execute:985\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1117\n\tgithub.com/spf13/cobra.(*Command).Execute:1041\n\tstorj.io/common/process.ExecWithCustomOptions:115\n\tmain.main:34\n\truntime.main:290", "errorVerbose": "Failed to create storage node peer: hashstore: creating file=/opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: open /opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: file exists\n\tstorj.io/storj/storagenode/hashstore.newAtomicFile:248\n\tstorj.io/storj/storagenode/hashstore.(*Store).reconcileLog:1746\n\tstorj.io/storj/storagenode/hashstore.NewStore:394\n\tstorj.io/storj/storagenode/hashstore.New:105\n\tstorj.io/storj/storagenode/piecestore.(*HashStoreBackend).getDB:277\n\tstorj.io/storj/storagenode/piecestore.NewHashStoreBackend:122\n\tstorj.io/storj/storagenode.New:607\n\tmain.cmdRun:107\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.InitBeforeExecute.func1.2:389\n\tstorj.io/common/process.InitBeforeExecute.func1:407\n\tgithub.com/spf13/cobra.(*Command).execute:985\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1117\n\tgithub.com/spf13/cobra.(*Command).Execute:1041\n\tstorj.io/common/process.ExecWithCustomOptions:115\n\tmain.main:34\n\truntime.main:290\n\tmain.cmdRun:109\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.InitBeforeExecute.func1.2:389\n\tstorj.io/common/process.InitBeforeExecute.func1:407\n\tgithub.com/spf13/cobra.(*Command).execute:985\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1117\n\tgithub.com/spf13/cobra.(*Command).Execute:1041\n\tstorj.io/common/process.ExecWithCustomOptions:115\n\tmain.main:34\n\truntime.main:290"} Error: Failed to create storage node peer: hashstore: creating file=/opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: open /opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp: file exists

Should I remove the file at /opt/storj/config/storage/hashstore/12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S/s0/meta/hashtbl-0000000000000180.tmp and restart the node?

Thank you,

I think so, given that you can also delete hashtbl-0000000000000180 and regenerate with write-hashtbl, no reason hashtbl-0000000000000180.tmp can’t be delete.

The error is here if you want to investigate storj/cmd/storagenode/cmd_run.go at 7f805ffae4294de3e3f70e335996da1f04ee49c9 · storj/storj · GitHub