-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datastore corruption when the disk is full #1810
Comments
Hi,
Yep. https://shaarli.readthedocs.io/en/master/Backup-and-restore/ |
I installed 0.12.1 from release ZIP. But I re-installed it and set up a cron backup. |
Leaving this open so I can recheck/try to reproduce datastore corruption when the disk is full. |
I can confirm that attempting a write operation from the web UI (add new bookmark) while the disk is full corrupted my datastore.php which is now size 0. Luckily I have a recent backup though. |
On every disk write operation, we check the available free disk space (+ slight marging of arbitrary 500kB), and if there is not enough space we do not attempt to write anything. This should prevent most case of corrupted datastore becoming an empty file due to full HDD. Fixes #1810
@ArthurHoaro Thank you so much for fixing this, I really appreciate it! |
The system drive went full (100%) this morning, and Shaarli is displaying this error instead of normal data :
Using an older datastore.php I get normal behavior of the app.
I suppose that current datastore.php has been corrupted when the storage incident happened !
Is it possible to recover these data in datastore.php ?
NB : sadly I make daily bachups of mysql databases but not files... I know it's dumb ;-(
The text was updated successfully, but these errors were encountered: