Bug 267683 - akonadi complains about duplicated agent identifiers
Summary: akonadi complains about duplicated agent identifiers
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 1.5.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-05 09:56 UTC by Andreas Roth
Modified: 2011-03-22 22:03 UTC (History)
17 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.5.2


Attachments
Output of akonadictl start (10.39 KB, text/plain)
2011-03-05 09:56 UTC, Andreas Roth
Details
akonadictl start (13.35 KB, text/plain)
2011-03-05 16:00 UTC, Jost Schönleben
Details
result from akondai self test (11.64 KB, text/plain)
2011-03-05 19:26 UTC, Andreas Roth
Details
akonadi selftest (17.67 KB, text/plain)
2011-03-05 22:48 UTC, Jost Schönleben
Details
Errorlog (1.61 KB, application/octet-stream)
2011-03-06 17:30 UTC, gce.galotta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Roth 2011-03-05 09:56:52 UTC
Created attachment 57688 [details]
Output of akonadictl start

Version:           1.5.0 (using KDE 4.6.1) 
OS:                Linux

During start up of akonadi it complains about duplicated agent identifiers. All agents are loaded twice. This causes the Akonadi Self-Test to pop up everytime i log on to my system.

Reproducible: Always

Steps to Reproduce:
- akonadictl stop
- akonadictl start


Actual Results:  
Agents are loaded from the directory "/usr/share/akonadi/agents" twice.

Expected Results:  
Should only happens once
Comment 1 Jost Schönleben 2011-03-05 10:38:47 UTC
I have exactely the same problem after upgrading from 4.6.0 to 4.6.1 yesterday.
I am using Kubuntu 10.10.
Comment 2 Christophe Marin 2011-03-05 14:39:29 UTC
I doubt the self-test complains about that. However, it complains because Nepomuk is not working on your machine.
Comment 3 Andreas Roth 2011-03-05 14:48:27 UTC
I've disabled Nepomuk on my PC and you're right the self-test is reporting this as error. But it also reports that an error log file was created by akonadi. And the log file contains the messages about duplicated agent identifiers.
Akonadi didn't complain about anything until i updated to KDE 4.6.1 yesterday.
Comment 4 Jost Schönleben 2011-03-05 16:00:20 UTC
Created attachment 57695 [details]
akonadictl start

Here is my console output.
Nepomuk is running and i get the same errors.
Comment 5 Christophe Marin 2011-03-05 19:12:32 UTC
Well, that's just some output. the self-test would be more useful to detect issues

try:

kcmshell4 kcm_akonadi and on the second tab, press the "test" button.
Comment 6 Andreas Roth 2011-03-05 19:26:55 UTC
Created attachment 57699 [details]
result from akondai self test

I've executed the self test and attached the result. I noticed that the environment variable XDG_DATA_DIRS is set to '/usr/share:/usr/share:/usr/local/share', which contains the directory /usr/share twice. I don't know where this came from.
Comment 7 Jost Schönleben 2011-03-05 22:48:12 UTC
Created attachment 57707 [details]
akonadi selftest

same here
Comment 8 Jost Schönleben 2011-03-05 23:05:17 UTC
I added the following line to ~/.profile and did a reboot. The error is gone.

export XDG_DATA_DIRS=/usr/share:/usr/local/share
Comment 9 Andy Goossens 2011-03-06 12:12:19 UTC
Relevant portion from "startkde" script:

# Make sure that D-Bus is running
if test -z "$XDG_DATA_DIRS"; then
    XDG_DATA_DIRS="`kde4-config --prefix`/share:/usr/share:/usr/local/share"
    export XDG_DATA_DIRS
fi

So you will see issues when KDE is installed in /usr.
Comment 10 jorchube 2011-03-06 12:38:34 UTC
But this portion is exactly the same in KDE 4.6.0 and there is no problem.

(In reply to comment #9)
> Relevant portion from "startkde" script:
> 
> # Make sure that D-Bus is running
> if test -z "$XDG_DATA_DIRS"; then
>     XDG_DATA_DIRS="`kde4-config --prefix`/share:/usr/share:/usr/local/share"
>     export XDG_DATA_DIRS
> fi
> 
> So you will see issues when KDE is installed in /usr.
Comment 11 Andy Goossens 2011-03-06 13:17:10 UTC
(In reply to comment #10)
> But this portion is exactly the same in KDE 4.6.0 and there is no problem.

The bug is elsewhere, but this code triggers it.
Comment 12 gce.galotta 2011-03-06 17:30:15 UTC
Created attachment 57726 [details]
Errorlog

I tried the export line in comment #9 but this error remains. Could it be that akonadi is getting started twice?
Comment 13 Jan 2011-03-07 14:24:25 UTC
*** This bug has been confirmed by popular vote. ***
Comment 14 Christophe Marin 2011-03-09 21:15:24 UTC
Short update: there are no changes in the Akonadi server, kdepimlibs 4.6.1 nor kdepim-runtime 4.4.10 that could explain why you suddenly see an issue.

Can you please clearly indicate:
- your distribution,
- your Qt, kdepim-runtime, kdepimlibs versions
Comment 15 Christophe Marin 2011-03-09 21:21:19 UTC
Also mention when this issue appeared. in KDE 4.6.0 or only after upgrading to 4.6.1
Comment 16 Jost Schönleben 2011-03-09 21:58:46 UTC
Hi Christophe,

for me this appeared directly after upgrading from 4.6.0 to 4.6.1.
- Kubuntu 10.10
- Qt 4.7.0
- kdepim 4.4.9
Comment 17 Divan Santana 2011-03-09 22:03:38 UTC
Hi Christophe,

for me this appeared directly after upgrading from 4.6.0 to 4.6.1 (already had qt 4.7.2).
- Arch Linux
- Qt 4.7.2
- kdepim 4.4.10
Comment 18 gce.galotta 2011-03-09 22:10:43 UTC
I got this after upgrade to 4.6.1.
- Kubuntu 10.10
- Qt 4.7.0
- kdepim 4.4.9
Comment 19 Alex Sidorenko 2011-03-09 22:31:33 UTC
Same here - I have upgraded two PCs from 4.6.0 to 4.6.1 (Ubuntu/Maverick) and they both started to have this problem immediately.

Cheers,
Alex
Comment 20 jorchube 2011-03-09 22:33:39 UTC
Happes since upgrading from KDE 4.6.0 to 4.6.1, never before. (and happens both with akonadi 1.5.0 and 1.5.1)

Archlinux

KDE 4.6.1
Qt 4.7.2
kdepimlibs 4.6.1
kdepim 4.4.10
akonadi 1.5.1
mysql 5.5.9
Comment 21 Bernhard Beschow 2011-03-10 11:49:05 UTC
I can confirm this happens under Archlinux. I could circumvent the error dialog by applying the autostart hack described in [1].

[1] http://kubuntuforums.net/forums/index.php?topic=3112175.msg231592
Comment 22 Michael Wiesner 2011-03-13 00:20:24 UTC
I've posed a very similar problem on this forum: http://forum.kde.org/viewtopic.php?f=20&t=94044&p=191610&view=lastpost#p191610
Comment 23 Troy Cotter 2011-03-13 03:52:43 UTC
I also have the same problem as everyone else, It is annoying but I'm just going to wait for a fix considering the problem only occurs on the first launch.

Arch Linux x64 2.6.37-2 kernel, KDE 4.6.1
Comment 24 Christophe Marin 2011-03-14 20:35:15 UTC
@All: please try this commit and check if that solves the issue:

https://projects.kde.org/projects/kdesupport/akonadi/repository/revisions/897933ccc6557441f215b8a511818284705dd02b

will be part of Akonadi 1.5.2
Comment 25 Christophe Marin 2011-03-16 11:38:58 UTC
So ? 244 votes and noone to test this patch ?
Comment 26 Hussam Al-Tayeb 2011-03-16 18:41:45 UTC
I tried the patch under ArchLinux. No more duplicated agent identifiers error.
Comment 27 Michael Wiesner 2011-03-16 20:27:37 UTC
I'm using Kubuntu 10.10 with KDE 4.6.1. Where is the file xdgbasedirs.cpp? I can't find it. Is it done when the code in this file is changed/replenished or must I compile something? Thanks...
Comment 28 ancow 2011-03-16 21:16:12 UTC
A .cpp file usually contains c++ code (see http://en.wikipedia.org/wiki/C++). Basically, if you have to ask, you likely don't (yet) have the skills to compile the whole KDE PIM suite or even parts of it by yourself and should let others who can handle it.
I know I will... ;-)
Comment 29 Michael Wiesner 2011-03-16 23:15:10 UTC
I'll wait for Akonadi 1.5.2...
Comment 30 Weng Xuetian 2011-03-22 04:39:17 UTC
I can confirm that this issue is solved with akonadi 1.5.1 + #24 commit.

I'm using Archlinux.
Comment 31 Christophe Marin 2011-03-22 21:48:28 UTC
Thanks for the feedback.

It's a bit surprising that only Arch and Kubuntu users see this error but it's now fixed according to comments #30 and #26.

For kubuntu users, you may open a bug report on launchpad to be sure this commit will be in their next release.
Comment 32 Jonathan Thomas 2011-03-22 22:03:57 UTC
We're tracking this issue in Kubuntu here: https://bugs.launchpad.net/ubuntu/+source/akonadi/+bug/740488