Bug 236539 - dbus session bus not available on first start of Kontact - race condition?
Summary: dbus session bus not available on first start of Kontact - race condition?
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 11:25 UTC by Martin Steigerwald
Modified: 2010-08-02 16:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
complete akonadi error protocol (10.34 KB, text/plain)
2010-05-06 11:27 UTC, Martin Steigerwald
Details
Akonadi Server Self-Test report (10.54 KB, text/plain)
2010-05-12 00:27 UTC, didi.debian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2010-05-06 11:25:20 UTC
Version:           akonadi 1.3.1-3 debian packages (using KDE 4.4.3)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Often, possibly always Akanodi complains about dbus session bus not having been shut down on first start of Kontact after starting a new KDE session:

martin@shambhala:~/.local/share/akonadi> cat akonadi_control.error.old 
D-Bus session bus went down - quitting 
martin@shambhala:~/.local/share/akonadi> cat akonadiserver.error.old 
D-Bus session bus went down - quitting 

Since these are previous error logs, could this point at a race condition when shutting down the previous KDE session? Obviously the DBUS session bus should be closed after Akonadi has been quit.

Expected results:

No error messages for regular starting of Akonadi that confuse the user.

I am using:

martin@shambhala:~> apt-show-versions | egrep "(akonadi|virtuoso|libqt4-gui/|kdelibs5/|kontact|kaddressbook|mysql)"
akonadi-server/sid uptodate 1.3.1-3
akonadiconsole/sid uptodate 4:4.4.3-1
kaddressbook/sid uptodate 4:4.4.3-1
kdelibs5/sid uptodate 4:4.4.3-1
kontact/sid uptodate 4:4.4.3-1
libakonadi-contact4/sid uptodate 4:4.4.3-1
libakonadi-kabc4/sid uptodate 4:4.4.3-1
libakonadi-kcal4/sid uptodate 4:4.4.3-1
libakonadi-kde4/sid uptodate 4:4.4.3-1
libakonadi-kmime4/sid uptodate 4:4.4.3-1
libakonadiprivate1/sid uptodate 1.3.1-3
libaprutil1-dbd-mysql/squeeze uptodate 1.3.9+dfsg-3
libdbd-mysql-perl/squeeze uptodate 4.014-1
libkontactinterface4/sid uptodate 4:4.4.3-1
libmysqlclient16/sid uptodate 5.1.45-3
libqt4-gui/squeeze uptodate 4:4.6.2-4
libqt4-sql-mysql/squeeze uptodate 4:4.6.2-4
mysql-client-5.1/sid uptodate 5.1.45-3
mysql-common/sid uptodate 5.1.45-3
mysql-server-5.1/sid uptodate 5.1.45-3
mysql-server-core-5.1/sid uptodate 5.1.45-3
php5-mysql/squeeze uptodate 5.3.2-1
virtuoso-minimal/sid uptodate 6.1.1+dfsg1-1
virtuoso-opensource-6.1-bin/sid uptodate 6.1.1+dfsg1-1
virtuoso-opensource-6.1-common/sid uptodate 6.1.1+dfsg1-1

(I think virtuoso is used by Nepomuk only, but I am leaving it in until I now for sure.)
Comment 1 Martin Steigerwald 2010-05-06 11:27:59 UTC
Created attachment 43303 [details]
complete akonadi error protocol

Bug #236535 and bug #236538 happen at the same first start of Akonadi.
Comment 2 didi.debian 2010-05-06 12:20:30 UTC
I can confirm this bug too (just as #236538). I'm also using Debian (sid).

My version list:
apt-show-versions | egrep "(akonadi|virtuoso|libqt4-gui/|kdelibs5/|kontact|kaddressbook|mysql)"
akonadi-server/sid uptodate 1.3.1-3
kaddressbook/sid uptodate 4:4.4.3-1
kdelibs5/sid uptodate 4:4.4.3-1
kontact/sid uptodate 4:4.4.3-1
libakonadi-contact4/sid uptodate 4:4.4.3-1
libakonadi-kabc4/sid uptodate 4:4.4.3-1
libakonadi-kcal4/sid uptodate 4:4.4.3-1
libakonadi-kde4/sid uptodate 4:4.4.3-1
libakonadi-kmime4/sid uptodate 4:4.4.3-1
libakonadiprivate1/sid uptodate 1.3.1-3
libdbd-mysql-perl/testing uptodate 4.014-1
libkontactinterface4/sid uptodate 4:4.4.3-1
libmysql-java/testing uptodate 5.1.10+dfsg-2
libmysqlclient16/sid uptodate 5.1.45-3
libqt4-sql-mysql/testing uptodate 4:4.6.2-4
mysql-client-5.1/sid uptodate 5.1.45-3
mysql-common/sid uptodate 5.1.45-3
mysql-server-5.1/sid uptodate 5.1.45-3
mysql-server-core-5.1/sid uptodate 5.1.45-3
virtuoso-minimal/sid uptodate 6.1.1+dfsg1-1
virtuoso-opensource-6.1-bin/sid uptodate 6.1.1+dfsg1-1
virtuoso-opensource-6.1-common/sid uptodate 6.1.1+dfsg1-1
Comment 3 Nicolas L. 2010-05-06 14:42:13 UTC
File content of '/home/martin/.local/share/akonadi/db_data/mysql.err':
100506 10:44:38 [Note] Plugin 'FEDERATED' is disabled.
100506 10:44:39  InnoDB: Started; log sequence number 0 2895515
100506 10:44:40 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
100506 10:44:40 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
100506 10:44:40 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.45-3-log'  socket: '/home/martin/.local/share/akonadi/db_misc/mysql.socket'  port: 0  (Debian)



This part should be fixed with akonadi from branch
Comment 4 didi.debian 2010-05-12 00:27:24 UTC
Created attachment 43496 [details]
Akonadi Server Self-Test report
Comment 5 Martin Steigerwald 2010-06-07 14:14:44 UTC
Hmmm, I think thats not an error message at all. When I quit the KDE session the dbus session related to it wents down for sure.

If its just an informational message it might better be removed, since thats an error log.
Comment 6 Volker Krause 2010-08-02 16:02:10 UTC
The D-Bus startup race has been fixed in Akonadi server >= 1.4.0 and KDE >= 4.5.0.