Hello there’s one node that keeps restarting! the problem has happened one of these days. Here are part of the log! I’ve run a health check and restarted it again!
2024-05-23T21:57:46Z INFO Telemetry enabled {"Process": "storagenode", "instance ID": "1PYi5kCo4kYx1DKd816QfULhmAyMDK7rtUjVZnD4iYEoKSsXoS"}
2024-05-23T21:57:46Z INFO Event collection enabled {"Process": "storagenode", "instance ID": "1PYi5kCo4kYx1DKd816QfULhmAyMDK7rtUjVZnD4iYEoKSsXoS"}
2024-05-23T21:57:46Z INFO db.migration.57 Create new bandwidth_usage table, backfilling data from bandwidth_usage_rollups and bandwidth_usage tables, and dropping the old tables. {"Process": "storagenode"}
2024-05-23T21:57:46Z ERROR failure during run {"Process": "storagenode", "error": "Error migrating tables for database on storagenode: migrate: v57: database disk image is malformed\n\tstorj.io/storj/private/migrate.(*Migration).Run:212\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: v57: database disk image is malformed\n\tstorj.io/storj/private/migrate.(*Migration).Run:212\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: v57: database disk image is malformed
storj.io/storj/private/migrate.(*Migration).Run:212
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-05-23 21:57:46,243 INFO stopped: storagenode (exit status 1)
2024-05-23 21:57:46,245 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)
or re-create (you will lose a bandwidth usage history in this case, however, it will not affect your payout, but the bandwidth usage on the dashboard will be wrong, and estimation likely too):
I’m getting ‘storagewars@raspberrypi:~ $ sudo docker run --rm -it --mount type=bind,source=/home/storagewars/Hds/HD2/storage,destination=/storage sstc/sqlite3 sh
Unable to find image ‘sstc/sqlite3:latest’ locally
latest: Pulling from sstc/sqlite3
docker: no matching manifest for linux/arm/v8 in the manifest list entries’
It says : storagewars@raspberrypi:~/Hds/HD2/storage $ sudo apt-get install sqlite3 Reading package lists... Done Building dependency tree... Done Reading state information... Done sqlite3 is already the newest version (3.34.1-3). 0 upgraded, 0 newly installed, 0 to remove and 109 not upgraded.
when trying to run storagewars@raspberrypi:~/Hds/HD2/storage $ sudo docker run --rm -it --mount type=bind,source=/home/storagewars/Hds/HD2/storage,destination=/storage sstc/sqlite3 sh Unable to find image 'sstc/sqlite3:latest' locally latest: Pulling from sstc/sqlite3 docker: no matching manifest for linux/arm/v8 in the manifest list entries. See 'docker run --help'.
storagewars@raspberrypi:~/Hds/HD2/storage $ sudo apt-get install sqlite3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
sqlite3-doc
The following NEW packages will be installed:
sqlite3
0 upgraded, 1 newly installed, 0 to remove and 109 not upgraded.
Need to get 1,054 kB of archives.
After this operation, 2,729 kB of additional disk space will be used.
Get:1 http://mirrors.fe.up.pt/raspbian/raspbian bullseye/main armhf sqlite3 armhf 3.34.1-3 [1,054 kB]
Fetched 1,054 kB in 11s (92.1 kB/s)
Selecting previously unselected package sqlite3.
(Reading database ... 178253 files and directories currently installed.)
Preparing to unpack .../sqlite3_3.34.1-3_armhf.deb ...
Unpacking sqlite3 (3.34.1-3) ...
Setting up sqlite3 (3.34.1-3) ...
Processing triggers for man-db (2.9.4-2) ...
storagewars@raspberrypi:~/Hds/HD2/storage $ sudo docker stop storagenode22
storagenode22
storagewars@raspberrypi:~/Hds/HD2/storage $ sudo docker run --rm -it --mount type=bind,source=/home/storagewars/Hds/HD2/storage,destination=/home/storagewars/Hds/HD2/storage sstc/sqlite3 sh
Unable to find image 'sstc/sqlite3:latest' locally
latest: Pulling from sstc/sqlite3
docker: no matching manifest for linux/arm/v8 in the manifest list entries.
See 'docker run --help'.
Strange, I would have expected an error for bandwidth.db. You can try starting your node. If it still fails, stop the node again and try following the repair steps for bandwidth.db starting at step 9.