[kdepim-users] How to restart akonadi from cron?

ITSEF Admin itsef-admin at brightsight.com
Mon Nov 18 07:57:58 GMT 2013

On Friday 15 November 2013 12:26:34 Diederik de Haas wrote:
> On Friday 15 November 2013 11:34:23 Kevin Krammer wrote:
> > Btw, if you only need to toggle imap resources to "online" again, then you
> > can  probably do that without restarting Akonadi.
> You can do that through the Akonadi Console, although it's not usuable from
> cron, but you can use that to see whether toggling online is sufficient.

I wish it was... The *only* way to prevent this situation is to disable 
akonadi completely (akonadictl stop) *before* the server goes offline and to 
wait with "akonadictl start" until the server is back. Once the server has 
gone offline with akonadi still running, there is an estimated >70% chance 
that one of the inboxes of the involved accounts will no longer sync even 
after going back online. The *only* way to get it to sync again in that 
situation is to delete the akonadi cache for that inbox, and even that I 
sometimes have to do multiple times before it will work again - see the bug 
report I mentioned in my first mail 
(https://bugs.kde.org/show_bug.cgi?id=327513). Of course, cache deletion is 
*highly* undesirable, as the users looses all flags, tags, etc. :-(

Hence my interest in getting this crude workaround to work - though that will 
still leave me open to "accidental"/unscheduled connection losses.

For what it's worth: It looks like this workaround really does work - if I 
shut down akonadi before the server goes offline and enable it again after the 
server comes up again, everything seems to stay working so far (left it 
running over the weekend, with the server going offline briefly every night).


	Thomas Ribbrock, IT-Team brightsight
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users

More information about the kdepim-users mailing list