Storj is offline

Hi there, my server shuts down due a power failure and now it show offline storj server, I already check the databases with - sqlite3 /path/to/storage/all_db_files.db “PRAGMA integrity_check;” - but all passed the check, the logs on storj are:

2022-11-11T11:36:30.307-0800 INFO piecestore uploaded {“Piece ID”: “C2GPJ3P6MIJ6MFYYF6N4ZXUNMV2WHBCLXY2HZV5FPIQDIDRVJIPQ”, “Satellite ID”: “12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs”, “Action”: “PUT”, “Size”: 151552}
2022-11-11T11:36:30.311-0800 INFO piecestore upload started {“Piece ID”: “55MOVVRSOBTNI34PSZCU2QTEL2NNMTKGRNUDCSKTYENH6EJ7RS7Q”, “Satellite ID”: “12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S”, “Action”: “PUT”, “Available Space”: 1995854753792}
2022-11-11T11:36:30.521-0800 ERROR piecestore failed to add bandwidth usage {“error”: “bandwidthdb: database disk image is malformed”, “errorVerbose”: “bandwidthdb: database disk image is malformed\n\tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB).getSummary:171\n\tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB).Summary:113\n\tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB).Add:52\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).beginSaveOrder.func1:731\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).Upload:445\n\tstorj.io/common/pb.DRPCPiecestoreDescription.Method.func1:220\n\tstorj.io/drpc/drpcmux.(*Mux).HandleRPC:33\n\tstorj.io/common/rpc/rpctracing.(*Handler).HandleRPC:61\n\tstorj.io/common/experiment.(*Handler).HandleRPC:42\n\tstorj.io/drpc/drpcserver.(*Server).handleRPC:122\n\tstorj.io/drpc/drpcserver.(*Server).ServeOne:66\n\tstorj.io/drpc/drpcserver.(*Server).Serve.func2:112\n\tstorj.io/drpc/drpcctx.(*Tracker).track:52”}
2022-11-11T11:36:30.521-0800 INFO piecestore uploaded {“Piece ID”: “55MOVVRSOBTNI34PSZCU2QTEL2NNMTKGRNUDCSKTYENH6EJ7RS7Q”, “Satellite ID”: “12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S”, “Action”: “PUT”, “Size”: 2816}
2022-11-11T11:36:30.624-0800 INFO Stop/Shutdown request received.
2022-11-11T11:36:30.635-0800 ERROR piecestore:cache error getting current used space: {“error”: “context canceled; context canceled; context canceled”, “errorVerbose”: “group:\n— context canceled\n— context canceled\n— context canceled”}

any idea how to fix this?

I’m running
Windows 11 Pro (21H2) build 22000.1219
Intel Xeon Processor
18 Ram
more than 50% space free on storage node and OS Disk

thanks in advance

1 Like

Hi @cblancart3

Please show more of the log. However both errors shown point to you needing to run drive checks (chkdsk) due to possible file corruption. Also check the bandwidth.db file again.

1 Like

Please note, if you provided a wrong path to the database, sqlite3 will just create an empty one and of course check will be successful.
Also check should be performed when storagenode is stopped.