Replies: 4 comments 2 replies
-
If the disk is full or in read only, that seems like a normal behavior to me. We write a json file to the filesystem which contains the db, if the database and his backup file cannot be writen a new fresh database state is loaded. See getPath from electron. |
Beta Was this translation helpful? Give feedback.
-
The "disk full" scenario is difficult to handle predictably due to the complexity of filesystem I/O in Thorium: the application code (NodeJS Javascript) reads/writes from the storage medium at regular points in time (this includes the central configuration database and bookshelf information, now all in JSON files instead of database formats like SQLite) ... but there is also lots of disk activity outside of our direct control in the Electron and Chromium subsystems (data cache). Worst case scenario, if Thorium's own "database" is corrupted there is always the possibility of recovering all the publications from the
Technical reference (because Thorium is an Electron app): |
Beta Was this translation helpful? Give feedback.
-
I converted this to a "discussion" as this is currently not an actionable issue (i.e. we cannot effectively fix a bug for a non-reproducible problem). |
Beta Was this translation helpful? Give feedback.
-
A solution could be to stop accepting imports if the free volume on the disk that is used for Thorium storage is lower than an ad-hoc minimum (e.g. 200 Mb). |
Beta Was this translation helpful? Give feedback.
-
From a user:
I borrowed books from libraries which were in Thorium. I would like to know if it is normal that everything disappeared when the computer is overcharged which is my case. I am able to download new stuff from libraries on Thorium but I lost what was there before. Is there a way to have everything back? If I manage to not overcharge my computer would this solve the problem?
Beta Was this translation helpful? Give feedback.
All reactions