Version: unspecified (using KDE 4.4.5) OS: Linux Hi, I've been using KDE SC 4.4 from Debian unstable, without mocking with addressbook definitions and resources as far as I can remember. Today I suddenly discovered that my address book was empty. a little investigation shows this (I hope the lines are kept): ~$ ls -l .kde/share/apps/kabc/std.vcf* -rw-r--r-- 1 shai shai 0 Dec 7 01:56 .kde/share/apps/kabc/std.vcf -rw-r--r-- 1 shai shai 27541 Nov 8 09:28 .kde/share/apps/kabc/std.vcf_1 -rw-r--r-- 1 shai shai 0 Nov 23 02:02 .kde/share/apps/kabc/std.vcf_2 -rw-r--r-- 1 shai shai 27541 Nov 17 09:54 .kde/share/apps/kabc/std.vcf_3 -rw-r--r-- 1 shai shai 27541 Oct 21 02:39 .kde/share/apps/kabc/std.vcf_4 -rw-r--r-- 1 shai shai 27541 Nov 5 23:46 .kde/share/apps/kabc/std.vcf_5 -rw-r--r-- 1 shai shai 27541 Nov 13 09:56 .kde/share/apps/kabc/std.vcf_6 -rw-r--r-- 1 shai shai 0 Dec 5 01:09 .kde/share/apps/kabc/std.vcf_7 And this is a little odd, because I'm using kaddressbook, not kab or kabc as far as I understand. I probably got things very wrong here -- please help me investigate and specify things better. Since Akonadi, I'm no longer very clear on where I should be looking for stuff. I just don't want my address book gone. Thanks, Shai. Reproducible: Didn't try Actual Results: Address book appears empty Expected Results: There should be quite a lot of addresses
Hej, this might be a migration bug from the old kresource framework (used by KAddressBook in <= 4.3) to Akonadi (used since 4.4). Please make sure you don't use the compatibility address books but a native Akonadi address book resources. Ciao, Tobias
I don't think it's a migration issue -- I'm on Debian Sid, and I'm pretty sure the move from 4.3 to 4.4 was long before the last month. How can I tell if it's a native resource? It doesn't say "compatibility" or "kresource" anywhere in the Akonadi dialogs for it, doesn't that mean it's native? (I just tried, btw, and when I add a new contact, it is not added to the file. The file is touched, but not modified. The new contact is saved in the Akonadi database. Seems related, but probably a separate bug...)
Hej, start the application 'akonadiconsole' and check what the names of the items in the 'Agent' tab are. Ciao, Tobias
The relevant name is "std.vcf". In its details, it says Identifier: akonadi_vcard_resource_1 Type: VCard File Capabilities: Resource MimeTypes: text/directory Other names are "Local Folders" (maildir), "std.ics" (ical calendar file), "Mail Dispatcher Agent" and "Nepomuk Contact Feeder". I presume none of them is relevant. Thanks, Shai.
(In reply to comment #4) Hej, > The relevant name is "std.vcf". In its details, it says > > Identifier: akonadi_vcard_resource_1 Ok, then you are using the native resource, that's good :) I'd propose the following: copy one of the std.vcf_X files that contains all contacts to $HOME. Then remove the std.vcf resource from KAddressBook (right click on the folder -> Remove Address Book). Then add a new address book, this time of type 'Personal Contacts'. When this address book is available, import your $HOME/std.vcf_X into KAddressBook via the 'File -> Import -> vCard' option. The 'Personal Contacts' address book has multiple advantages, it is faster and can store contact groups. By the way, the Akonadi 'database' is just a cache, the real data are still saved in vCard files on the files system. The 'Personal Contacts' address book for examples saves each contact in its own file under ~/.local/share/contacts/ (or some other directory you let point it to). Ciao, Tobias
I copied a full std.vcf_X onto std.vcf, and all seems well (except for that little part where new contacts aren't saved). I'll check up on the different types of address books -- thanks for the tip. But still -- besides the great support you've given me here -- I suspect there's a problem with the vcard file Akonadi resource. Don't you want to investigate it? Thanks again, Shai.