My node reset it’s data
What happend?
Your databases seems corrupted, please check and fix them:
i uploaded the wrong earnings.py output
it should be:
Do you know what else it could be? Database looks ok
It seemed to have corrected itself randomly after the reboot, which i did multiple times,
do you know if
find /path/to/storage/ -maxdepth 1 -iname "*.db" -print0 -exec sqlite3 '{}' 'PRAGMA integrity_check;' ';'
also corrects the database automatically.
Hello.
My nodes seem to adjust disk space to real one everytime I perform a database integrity check, although always output is ok.
Do you see any negative point in performing every few days (or 24h) via cron:
stop node
integrity check
start node
Regards.
No, it doesn’t. But when the used-space-filewalker is finishing its scan, it updates the databases. They then flushed to the disk once a hour. So, it’s better to wait a hour after the last used-space-filewalker has finished its scan and successfully updated its databases.
I do not think it’s needed, see my comment above about periods when the updated information is flushed to the disk.
However, the restart itself may resolve the discrepancy, since startup scanning is enabled by default, which calculates the used space and updates the databases.