Bug 255981 - Contacts not synced when file is updated on disk
Summary: Contacts not synced when file is updated on disk
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Contacts resource (show other bugs)
Version: 4.4
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 17:51 UTC by stefnn
Modified: 2012-04-22 17:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stefnn 2010-11-03 17:51:04 UTC
Version:           4.4 (using KDE 4.4.5) 
OS:                Linux

Scenario:

2 Computers both running akonadi sharing a local directory as a addressbook resource.
Now if you change a contact on one of the computers, the local file gets updated (good) but when akonadi is started on the other computer it does not notice the changes made.

So imagine you edit your contacts on one computer, the other does not see the changes. You change the contact there and all your previous changes are lost.

Reproducible: Always

Steps to Reproduce:
Add a clean vCard Directory to Akonadi.
Add one contact in KAddressBook to it.
Locate the corresponding file in the Directory and edit it with a texteditor or use another Addressbook client on that Directory.

Go to KAddressBook and you see no changes :/
Even restarting Akonadi, telling it to sync, ... all doesnt help.



Actual Results:  
Updates do not get propagated

Expected Results:  
Akonadi Cache is always in-sync with files on disk.
(At least after a restart or re-sync)

Or is there another way, how to "correctly" synchronize different addressbook directories, and my usecase is totally flawed?

Same goes for Akonadi Calenders, Maildirs, ...
Comment 1 Shai 2010-12-21 22:16:37 UTC
Hi,

I'm not one of the KDE-PIM developers, just trying to help figure things out, because I ran into this report and it looks a little weird.

How are the two computers "sharing a local directory"? Is it on a network storage? USB Storage?

Assuming your text-editor description is based on trying and not just extrapolating from your experiences with Akonadi clients: Was the text-editor used from the same computer as the misbehaving Akonadi?

Hope this helps,
Shai.
Comment 2 stefnn 2012-04-22 17:59:19 UTC
Just use file synchronization utils like rsync / unison / ... they all spawn a daemon running locally.

But since pretty much all that akonadi framework seems to be rewritten since then (and I, for my part, found a working combination of akonadi contacts / classical contacts in folder).
Marking this one as: resolved.