More help about database disk image is malformed

hello, suddenly this error appears and my node does not turn on well, what can I do?

2021-03-12T22:11:45.748Z ERROR piecestore failed to add bandwidth usage {“error”: “bandwidthdb error: database disk image is malformed”, “errorVerbose”: “bandwidthdb error: database disk image is malformed\n\tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB).Add:60\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).beginSaveOrder.func1:683\n\tstorj.io/storj/storagenode/piecestore.(*Endpoint).Upload:327\n\tstorj.io/common/pb.DRPCPiecestoreDescription.Method.func1:1025\n\tstorj.io/drpc/drpcmux.(*Mux).HandleRPC:29\n\tstorj.io/common/rpc/rpctracing.(*Handler).HandleRPC:58\n\tstorj.io/drpc/drpcserver.(*Server).handleRPC:111\n\tstorj.io/drpc/drpcserver.(*Server).ServeOne:62\n\tstorj.io/drpc/drpcserver.(*Server).Serve.func2:99\n\tstorj.io/drpc/drpcctx.(*Tracker).track:51”}

I currently use centos 7.6, but I don’t quite understand the instructions they indicate, should I just run this? What do they indicate in step 1? and check my version of sqlite3?

docker run --rm -it --mount type = bind, source = $ {PWD}, destination = / data sstc / sqlite3 find. -iname “* .db” -maxdepth 1 -print0 -exec sqlite3 ‘{}’ ‘PRAGMA integrity_check;’ ‘;’

You could try to fix it by following these instructions:

If it doesn’t work, a node can still be recovered even if some databases were to be lost: here is how they can be recreated:

In last resort if everything else fails, deleting all database files should work, but you would lose all statistics for current month, and possibly some of your earnings for current month also, but at least the node would be “saved”.

uff, after calmly reading the instructions, I have worked again! Thank you!

3 Likes