We have moved to a new Sailfish OS Forum. Please start new discussions there.
3

Calendar completely broken (corrupted calendar files)

asked 2014-11-12 16:02:32 +0300

Shadow gravatar image

updated 2014-11-12 17:57:38 +0300

Recently (since I upgraded to Uitukka) I have lost all my calendar events. When I go to "Manage calendars", the list is empty.

I cannot even add any events. When I try to make an event, and try to choose a calendar, the calendar list is empty.

I tried re-installing the Calendar app, but it did not help.

My Calendar has always been completely local. No syncing anywhere.

Partial fix: Removing (or renaming) the ~/.local/share/system/privileged/Calendar/mkcal folder did give me the ability to make new calendar events. After a reboot, I also got the birthday calendar back. (I don’t know if removal of ~/.local/share/system/privileged/Contacts/calendar.stamp had something to do with it.)

edit retag flag offensive close delete

Comments

Is there any account that syncs with calendars? Or do you have local calendars only?

ossi1967 ( 2014-11-12 16:04:08 +0300 )edit

Yes. Removing (or renaming) ~/.local/share/system/privileged/Calendar/mkcal folder did help. I mean that I can now add events. But I still lost all my events. And I still don’t have the birthday calendar.

Shadow ( 2014-11-12 17:09:41 +0300 )edit

Could you make a calendar backup by copying this db file?

Juha. ( 2015-05-16 12:25:56 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-12-02 13:22:13 +0300

ljo gravatar image

I experienced the same after a low memory race condition and did, with developer mode enabled, this in Terminal :

devel-su
cd /home/nemo/.local/share/system/privileged/Calendar/mkcal
cp db db.orig
echo ".dump" | sqlite3 db.orig > db.sql
sqlite3 -init db.sql db-new
cp db-new db

A few seconds later the calendars were reread correctly and listed.

edit flag offensive delete publish link more

Comments

Excellent - Thank You! I had the same problem. Tried re-registering the accounts and was getting desperate. But now I've regained faith in Jolla - it really pays off to have a GNU/Linux which you can access on your phone!

A couple of comments on the procedure though, should someone else need this trick: - if copying the db file as above, remember to remove the db.orig and db-new when done. they can be rather large. (or use mv instead of cp) - would "sqlite3 db-new < db.sql" create the same db and return to the command prompt?

-JJ ( 2015-01-14 16:58:50 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-11-12 16:02:32 +0300

Seen: 708 times

Last updated: Dec 02 '14