This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Akonadi server: "unknown resource" messages

Tags: None
(comma "," separated)
allanmills
Registered Member
Posts
6
Karma
0
OS
First of all, since this is my initial post here: hello.

Bottom line problem: after upgrading Kubuntu Linux from 10.04 to 10.10 (new install then copying my /home folder back from a backup I'd made), I'm getting errors that none of the resources that are used by Kontact programs are recognized.

More detail: when I first installed version 10.10 and then restored my /home partition, Akonadi wouldn't even start and was preventing any component of Kontact from starting as well. It was spitting out errors when I ran the test.

I found an old thread on these forums searching for anything similar, and that thread had suggesting deleting the /home/.local/share/akonadi folder, which I did, even though the cause of the problem in that thread had nothing to do with upgrading an OS. That let Akonadi start and let my Kontact start, and it's working.

However, now, even though the test doesn't indicate the same errors, and the server is running with all components ("resources") showing green icons, the programs in Kontact, like KOrganizer (for the calendar, which used to pull from my Google calendar) can't use those resources.

When I double-click one of them (this is from the Akonadi tray resource), it spits out a message about "unknown error (unknown resource)".

I believe this is directly related to something in my /home directory, probably another directory that should be deleted so the server can recreate it and generate whatever it needs to access the resources, but I haven't a clue where to start looking. I have searched here and on the Ubuntu and Kubuntu forums for similar issues, but haven't found anything yet.

My apologies if too detailed (or wrong details). If a particular log file would help explore this, I will gladly provide.

Thanks . . .

Allan
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
According to Akonadi developers, this occurs when your configuration and Akonadi database get out of sync, which occurs when files are removed manually. To fix this, the Akonadi configuration must be completely reset unfortunately.

Please run the following outside of KDE (ie. at a virtual terminal) as your regular user.
Code: Select all
rm -rf ~/.local/share/akonadi ~/.config/akonadi ~/.kde/share/config/akonadi* ~/.kde/share/apps/akonadi*


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
allanmills
Registered Member
Posts
6
Karma
0
OS
:) Thank you bcooksley for your helpful response. Did as you suggested and it worked. I configured the Akonadi resources again and it seems to be working well.

I would mark this solved if I could find where to do so -- will keep looking. Aha! Right down there where the icon indicates "solved". Done.

Thanks again!
Chain
Registered Member
Posts
10
Karma
0
OS
Hello,

I did as said, but now the resources are gone in Akonadi and Korganizer.

As those were ~10 remote calendars, I would really like to know which file I would need to restore to get them back. I had the problem that kdepim-resources did not work, and all my remote calendars were wiped. Once it was repaired, the calendars remained gone. How can I get them back? I have a backup of my whole /home, and tried restoring different files under .kde4/share/apps and .kde4/share/config, to no avail.. :(

(of course they are still on the DAV server out there, but I cannot reach them anymore)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You need to look for ~/.kde4/share/config/akonadi* files in particular.
DO NOT restore them, simply examine the files to obtain the needed urls, credentials, etc. to add the calendars back to Akonadi. Your previous configuration was damaged.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Chain
Registered Member
Posts
10
Karma
0
OS
So there's no real possibility to somehow restore them?

Which folders should I back up, so such a thing does not happen anymore? Where are those resources saved? I thought it would be .kde4/share/config/kresources...
Chain
Registered Member
Posts
10
Karma
0
OS
Never mind, I did it =)

So for all those who have this problem:

Code: Select all
akonadictl stop
rm -rf ~/.local/share/akonadi ~/.config/akonadi ~/.kde/share/config/akonadi* ~/.kde/share/apps/akonadi*
akonadictl start
kres-migrator


Then everything popped up as expected - even the colors stayed the same =)


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]