Version: (using Devel) OS: Linux Installed from: Compiled sources Somehow I had another digikam process running (a zombie?). When starting digikam a message appeared that the database could not be converted to version 5. It was recommended to thorugh away the data base and start with a new one. Instead it sufficed to kill the zombie.
Do you have any of the messages printed on the console? Was the exact error message that popped up "The schema updating process from version 4 to 5 failed, caused by an error that we did not expect. You can try to discard your old database and start with an empty one..."?
Yes, this was the error message. Meanwhile I tried to reproduce the problem by starting a second instance of digikam, but without success. Btw. is it safe to have two instances running on the same database?
That's the point, there is no technical problem usually with opening the database files from different proccesses. You seem to have had a special situation. Accessing the file failed, which is interpreted as an empty/new file, so upgrade is attempted. I dont quite know how to tell the difference in our code.
SVN commit 900734 by mwiesweg: Check that creating a transaction succeeds before attempting to upgrade database. This might catch unclear errors where a file exists but is somehow locked. CCBUG: 178326 M +12 -1 schemaupdater.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=900734
I did some guesswork and came up with that commit. Do have any idea how to reproduce your problem? Otherwise I would close this file; I tried to have a digikam instance running, I tried to remove read rights from the db file, the first just works, the second is caught before.
No more actions to be expected here. Reopen in case of new findings.