When trying to import a directory with vcard files, nothing happens, zero contacts are imported. STEPS TO REPRODUCE 1. press "Add Addressbook" 2. Select "vCard directory" (i used the directory created by kdeconnect) OBSERVED RESULT Empty addressbook w/o any contacts EXPECTED RESULT Addressbook with my phone contacts SOFTWARE/OS VERSIONS Manjaro Linux, kernel 5.17.0-1-MANJARO, kde plasma 5.24.3, kde frameworks 5.91.0, qt 5.15.3, x11, ADDITIONAL INFORMATION Any other folders with .vcf contacts doesn't works, not only kdeconnect.
I confirm this. Some recent update broke it. I'm using pgsql backend, but most likely it's not the cause, but VCARD type resource which is Directory of VCARD files. While running akonadi daemon at console and looking at those vcard entries in akonadiconsole GUI-tool, tab "Item Search", I get this error into daemon stdout/err: org.kde.pim.akonadiserver: Handler exception when handling command FetchItems on connection akonadiconsole-2719277638 (0x55fd557d1fc0) : Item query returned empty result set and GUI says: "Error on fetching item". GUI however has those lower Results (Documents) set full of six digit numbers. Maybe they are from cache, can't say.
My system is Fedora: # cat /etc/system-release Fedora release 35 (Thirty Five) # rpm -qa|grep akonadi kf5-akonadi-notes-21.12.2-1.fc35.x86_64 kf5-akonadi-server-mysql-21.12.2-1.fc35.x86_64 kf5-akonadi-server-21.12.2-1.fc35.x86_64 kf5-akonadi-mime-21.12.2-1.fc35.x86_64 kf5-akonadi-contacts-21.12.2-1.fc35.x86_64 kf5-akonadi-search-21.12.2-1.fc35.x86_64 kf5-pimcommon-akonadi-21.12.2-1.fc35.x86_64 kf5-mailimporter-akonadi-21.12.2-1.fc35.x86_64 kf5-kmailtransport-akonadi-21.12.2-1.fc35.x86_64 kf5-akonadi-calendar-21.12.2-1.fc35.x86_64 akonadi-import-wizard-21.12.2-1.fc35.x86_64 akonadi-calendar-tools-21.12.2-1.fc35.x86_64 akonadiconsole-21.12.2-1.fc35.x86_64 Hmm.... should I have kf5-akonadi-server-pgsql-21.12.2-1.fc35.x86_64 installed - which is not available? My system is configured to Postgresql more or less like this https://jpmrblood.github.io/notes/akonadi-postgresql/
Ha, now it works. So, I run this console (/usr/bin/akonadiconsole) GUI and there are - Agents - Browser tab and others. In Agents, choose the right Contacts resource, RMB-click it -> Configure Remotely. There is Path setting. I had it empty, even it was set if I open the Configure Natively. I put the same directory there. In Browser tab, Contacts numbers are still 0. I RMB-click the Contacts, choose Synchronize and in shell where I'm running Akonadi, stuff starts to happen. I takes a bit since I've over 1k contacts. Then the kaddressbook is still empty. I tickled it a bit but no luck. Chose File -> Quit, started it again and yes, all my contacts where there again. Happy days. When the problem was still on, in empty addressbook I created a new entry. It appeared into list, I could even see it in console. One single vcard. But it was not in my vcard directory. It even survived if I restarted everything. No idea where it saved it but it was/is somewhere. That lead me to think that path is incorrect and even it was in "native" interface and setting, it was not in "remote" - whatever those are, go figure. Anyway. I don't know what broke it. It sure was not me. I hope I wont waste hours with this again.
Today it did it again. I opened Configure Remotely in akonadiconsole, saved it, restarted Akonadi, F5 (refresh), then the numbers appeared in akonadiconsole, but kaddressbook was still empty. Restarting it certainly helps, every time. Not sure why, since it should always display the Akonadi's contect as it is.