Hi! My storj node works 24/7. And few minutes ago I decided to check statistic and found strange thing. All statistic was set to zero. I tried to choose satellites, but nothing happened. I pushed “refresh button” in a header of the page and still got zero statistic. I tried to refresh page, but no results (still zero). But status was “ONLINE” (look at screenshot below). I checked “docker ps -a” - everything works. Then I decided to reboot whole node and now it works fine.
HDD mounted correctly (using fstab). It works.
I’ll check integrity of all db files. But there are so many steps Why there are no script that does it automatically? It is strange. I mean like
HDD said: “Structure Needs Cleaning”. After that I used “fsck” to restore it. HDD works fine. I copied and checked all *.db files and there are a lot of mistakes:
root@alex-pc:~/storj# find -name *.db -exec echo -n '{} - ’ ; -exec sqlite3 ‘{}’ ‘PRAGMA INTEGRITY_CHECK;’ ‘;’
bandwidth.db - *** in database main ***
Page 494: btreeInitPage() returns error code 11
Page 492: btreeInitPage() returns error code 11
… ~20 same problems …
Page 472: btreeInitPage() returns error code 11
Page 468: btreeInitPage() returns error code 11
Error: database disk image is malformed
heldamount.db - ok
info.db - ok
notifications.db - ok
orders.db - ok
piece_expiration.db - ok
pieceinfo.db - ok
piece_spaced_used.db - ok
pricing.db - ok
reputation.db - ok
revocations.db - Error: file is not a database
satellites.db - ok
storage_usage.db - ok
used_serial.db - ok
Now I begin to restore “bandwidth.db”. But I have a question about “revocations.db”. Should I try to restore “revocations.db” or it is not a true DB file?
And now almost all DB files OK. Except “revocations.db”.
root@alex-pc:~/storj# find -name *.db -exec echo -n '{} - ’ ; -exec sqlite3 ‘{}’ ‘PRAGMA INTEGRITY_CHECK;’ ‘;’
./storage/revocations.db - Error: file is not a database
./storage/storage/piece_spaced_used.db - ok
./storage/storage/reputation.db - ok
./storage/storage/piece_expiration.db - ok
./storage/storage/orders.db - ok
./storage/storage/satellites.db - ok
./storage/storage/heldamount.db - ok
./storage/storage/bandwidth.db - ok
./storage/storage/info.db - ok
./storage/storage/notifications.db - ok
./storage/storage/pieceinfo.db - ok
./storage/storage/used_serial.db - ok
./storage/storage/pricing.db - ok
./storage/storage/storage_usage.db - ok
I’ll try to start node and check if it works without recovering “revocations.db”.
And I don’t see any disqualification notice in web GUI. I hope that problem is solved. And there is no reason to restore “revocations.db” (may be it is not even a true DB file).