Hi !
I tried to open my project on tropy but it won’t open and I get this message :
{“msg”:“SQLITE_CORRUPT: database disk image is malformed”,“stack”:“Error: SQLITE_CORRUPT: database disk image is malformed”,“system”:“Windows_NT 10.0.19045 (x64)”,“time”:1715096397268,“version”:“1.16.2”}
Does this happen every time you start Tropy or only for a specific project? In the latter case it means that your project database file has been damaged. In our experience this is related to an issue with backup/synced folders like OneDrive or similar services. Usually, it’s possible to restore the project file, but I can’t make any promises. If you share the tpy file with us (you can send a link here as a direct message), we’ll try to restore the database for you.
Yes, that’s it. Unfortunately the file is very badly damaged. We can restore it but there is a lot of data in there that would need to be re-associated by hand. For reference, I see around 573 items and 650 photos in the restored data. There are around 1,300 metadata values but around 1,000 of them are not associated correctly. I believe we could restore most of those I believe but it will take some effort. Do you have a backup of the file or is there a backup that OneDrive could restore? If there is a backup copy, this would certainly be the better alternative.
Oh I see. Thank you for looking into it. I’m not sure what you mean by a backup. Where would I be able to find it and is this something I was supposed to have done ? I’m not sure I did that … Also, what could have caused it ?
It’s difficult to say what exactly happened, but I’m assuming that OneDrive altered the file at the same time as Tropy was saving changes to it or something along those lines. Tropy uses SQLite to access the project file, which is known to be extremely robust, but it is not safe for other processes to alter the file at the same time.
OneDrive and similar backup solutions often keep a file history or a record of conflicted version if they detect sync conflicts. If you have enabled version history for your files, you might be able to restore a previous version by selecting the project file and consulting its history.
This file should open fine. It contains 650 photos in 573 items. Many of the metadata strings could not be re-associated automatically and are missing in this file. I checked the list of strings and it looks like all of them are dates and titles based on the file names (that is no data that was entered manually).
How can we make sure things like this don’t occur? I can’t seem to get OneDrive to sync between two windows devices without some issue like this occurring. I keep the whole folder backed up so I’ve been able to restore, but I keep losing my most recent changes. What is the proper way to use Tropy with OneDrive?
Thank you for the restored version. I was able to open it. It doesnt contain everything like before but it is something. I don’t have a previous version in Google drive though. When it happened, all versions everywhere cant be opened.
Just to make sure, is there no way to access the previous full version again ? I’m finishing up my master’s thesis (I was using tropy for it) and I would just like to know if I should just give up on that or still wait for it. If not, I’ll try to find another solution to sort my pictures out.
I’m suddenly having a similar error, on a file saved to Dropbox:
{“msg”:“SQLITE_CORRUPT: database disk image is malformed”,“stack”:“Error: SQLITE_CORRUPT: database disk image is malformed”,“system”:“Darwin 23.6.0 (x64)”,“time”:1727377839122,“version”:“1.16.2”}
This was a new project, started about two weeks ago, which ran without issues until today, when I attempted to open it from a different computer–since then, I’ve gotten this error on this project on both computers.
Is there anything I can do to restore this project? It was new enough that I hadn’t backed it up yet!
Thank you.
When Dropbox creates sync conflicts it should make extra copies of the conflicting files, so you should be able to restore the working version of the file. I’d check on the computer where you worked on the file originally, to see if Dropbox saved the original version there.
If you can’t restore the file you can also send us the damaged file and we can try to restore the database contents. Even when restoring the database works, there’s always potential for data loss so if you can locate one of the conflicted versions saved by Dropbox that’s definitely to be preferred.