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

Calendar app lost access to calendars

asked 2015-05-14 11:53:41 +0200

Andy Branson gravatar image

updated 2016-01-15 01:26:43 +0200

My Calendar app had lost access to my calendars. I have Google and CalDAV calendars synced. I could see them in the .local/share/system/privileged directory, but when I started the Jolla Calendar application from a terminal I see the following output:

[W] mKCal::ExtendedCalendar::defaultStorage:2057 - Unable to create calendar database directory: "/home/nemo/.local/share/system/privileged/Calendar/mkcal"
[C] mKCal::SqliteStorage::open:174 - sqlitestorage.cpp: 174 - sqlite3_open error: 14 on database "/home/nemo/.local/share/system/privileged/Calendar/mkcal/db"
[C] mKCal::SqliteStorage::open:175 - sqlitestorage.cpp: 175 - unable to open database file

Even though this looked like a permission problem, if I chowned the privileged directory to nemo I got a data corruption from sqlite instead. I found that deleting the directory /home/nemo/.local/share/system/privileged/Calendar/mkcal completely, and rebooting, solved the problem. My suspicion is that this was caused by some filesystem corruption, but if anyone has any better ideas, please let me know.

edit retag flag offensive close delete

Comments

I don't know a solution, but you are not the only one. I have the same issue, may have been around the time of the second to last update

[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBu
fferIntegration:62 - Using Wayland-EGL
[W] mKCal::ExtendedCalendar::defaultStorage:2057 - Unable t o create calendar database directory: "/home/nemo/.local/sh are/system/privileged/Calendar/mkcal"
[C] mKCal::SqliteStorage::open:174 - sqlitestorage.cpp: 174
- sqlite3_open error: 14 on database "/home/nemo/.local/sh are/system/privileged/Calendar/mkcal/db"
[C] mKCal::SqliteStorage::open:175 - sqlitestorage.cpp: 175
- unable to open database file
coley ( 2015-05-14 14:19:01 +0200 )edit

I copied (unfortunatelly without preserving privileges) /home/nemo/.local/share to the sdcard then created a link. Calendar's manage calendar does not list anything and save event does not work. After ssh to device and running devel-su and journalctrl -f I opened up calendar :
Jun 11 01:40:30 Jolla [4516]: [W] mKCal::ExtendedCalendar::defaultStorage:2057 - Unable to create calendar database directory: "/home/nemo/.local/share/system/privileged/Calendar/mkcal"
nemo user cannot list content of privileged folder:
[nemo@Jolla ~]$ ls -l /home/nemo/.local/share/system/privileged/
ls: cannot open directory /home/nemo/.local/share/system/privileged/: Permission denied

[nemo@Jolla ~]$ ls -l /home/nemo/.local/share/system | grep priv
d---rwx--- 9 nemo nemo 4096 Feb 21 19:36 privileged

[root@Jolla system]# chmod u+rwx privileged/
After that nemo could access the folder and I got back my local calendar's events... but not my call history and can't send sms...

llg179 ( 2015-06-11 02:58:44 +0200 )edit

Thanks, your suggestion (deleting the mkcal folder) also solved my problem of suddenly disappeared calendars which I sync with memotoo. :D

jobe-m ( 2015-12-13 16:50:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-05-20 16:45:41 +0200

Andy Branson gravatar image

updated 2015-05-21 12:53:36 +0200

I deleted the mkcal directory and jolla-calendar started working again. No idea what it changed. I still have a similar problem with not being able to add repos through Warehouse, which started at the same time. I reckon it's some filesystem corruption.

Edit: Yes it was, /etc/ssu/ssu.ini was truncated, and I'd lost half of my repo definitions. They were still referenced in the 'disabledrepos' line, which was breaking it. I seem to have lost the honeybadger though :(

Total factory resets since Dec 2013: 0 :)

edit flag offensive delete publish link more

Comments

I lost that a long time ago, 3 Factory Resets on Dec 18 2013 just to get it to update^^ anyway did you find a way to get it working without reset?

chemist ( 2015-05-21 15:00:57 +0200 )edit

Yes everything's working now. I'll update the question for future poor saps.

Andy Branson ( 2015-05-21 15:10:31 +0200 )edit

Thanks. Would be nice if you update it and retag then as howto and faq, as people run into this a lot lately.

chemist ( 2015-05-21 15:47:30 +0200 )edit
Login/Signup to Answer

Question tools

Follow
7 followers

Stats

Asked: 2015-05-14 11:53:41 +0200

Seen: 655 times

Last updated: Jan 15 '16