Bug 254009

Summary: akonadi server not loading, kde-pim crashes trying to configure
Product: [Applications] kontact Reporter: Will Blaylock <wblalok>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.4.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Will Blaylock 2010-10-12 22:23:44 UTC
Application: kontact (4.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-25-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
After working for a couple of minutes to get my randomly working external mysql database configured and the server started 

One time I load kontact it just works, the next time it can not start the akonadi server and errors out, once I finally get it to recognize the mysql server and start akonadi it will work for several times then will give me grief again.

The external server or using the internal one does not seem to make a difference, same behavior.

Akonadi Server Self-Test Report
===============================

Test 1:  SUCCESS
--------

Database driver found.
Details: The QtSQL driver 'QMYSQL' is required by your current Akonadi server configuration and was found on your system.

File content of '/home/will/.config/akonadi/akonadiserverrc':
[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[QMYSQL]
Name=akonadi
Host=shortwill.ourhouse
User=akonadi
Password=akonadi
Options="UNIX_SOCKET=/home/will/.local/share/akonadi/db_misc/mysql.socket"
ServerPath=/usr/sbin/mysqld-akonadi
StartServer=false

[Debug]
Tracer=null

[QPSQL]
Name=akonadi
Host=
User=
Password=
Port=5432


Test 2:  SKIP
--------

MySQL server executable not tested.
Details: The current configuration does not require an internal MySQL server.

Test 3:  SKIP
--------

MySQL server error log not tested.
Details: The current configuration does not require an internal MySQL server.

Test 4:  SKIP
--------

MySQL server configuration not tested.
Details: The current configuration does not require an internal MySQL server.

Test 5:  SUCCESS
--------

akonadictl found and usable
Details: The program '/usr/bin/akonadictl' to control the Akonadi server was found and could be executed successfully.
Result:
Akonadi 1.3.1


Test 6:  ERROR
--------

Akonadi control process not registered at D-Bus.
Details: The Akonadi control process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 7:  ERROR
--------

Akonadi server process not registered at D-Bus.
Details: The Akonadi server process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 8:  SUCCESS
--------

Nepomuk search service registered at D-Bus.
Details: The Nepomuk search service is registered at D-Bus which typically indicates it is operational.

Test 9:  SUCCESS
--------

Nepomuk search service uses an appropriate backend. 
Details: The Nepomuk search service uses one of the recommended backends.

Test 10:  SKIP
--------

Protocol version check not possible.
Details: Without a connection to the server it is not possible to check if the protocol version meets the requirements.

Test 11:  ERROR
--------

No resource agents found.
Details: No resource agents have been found, Akonadi is not usable without at least one. This usually means that no resource agents are installed or that there is a setup problem. The following paths have been searched: '/usr/share/akonadi/agents /usr/share/akonadi/agents'. The XDG_DATA_DIRS environment variable is set to '/usr/share:/usr/share:/usr/local/share', make sure this includes all paths where Akonadi agents are installed to.

Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop

Environment variable XDG_DATA_DIRS is set to '/usr/share:/usr/share:/usr/local/share'

Test 12:  ERROR
--------

Current Akonadi server error log found.
Details: The Akonadi server did report error during startup into <a href='/home/will/.local/share/akonadi/akonadiserver.error'>/home/will/.local/share/akonadi/akonadiserver.error</a>.

File '/home/will/.local/share/akonadi/akonadiserver.error' could not be opened

Test 13:  ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server did report error during its previous startup into <a href='/home/will/.local/share/akonadi/akonadiserver.error.old'>/home/will/.local/share/akonadi/akonadiserver.error.old</a>.

File '/home/will/.local/share/akonadi/akonadiserver.error.old' could not be opened

Test 14:  SUCCESS
--------

No current Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its current startup.

Test 15:  SUCCESS
--------

No previous Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its previous startup.



 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f543a5ef780 (LWP 15035))]

Thread 2 (Thread 0x7f541c6dc710 (LWP 15069)):
#0  pthread_mutex_lock (mutex=0x139db38) at forward.c:182
#1  0x00007f54301ff5d1 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f54301ff8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f5438ab6566 in QEventDispatcherGlib::processEvents (this=0x1349a60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f5438a8b992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f5438a8bd6c in QEventLoop::exec (this=0x7f541c6dbd90, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f5438995d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f5438a6c178 in QInotifyFileSystemWatcherEngine::run (this=0x133c610) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f5438998775 in QThreadPrivate::start (arg=0x133c610) at thread/qthread_unix.cpp:248
#9  0x00007f54327769ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f54376d770d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f543a5ef780 (LWP 15035)):
[KCrash Handler]
#5  0x00007f5419b6022d in KMMainWidget::actionCollections() const () from /usr/lib/libkmailprivate.so.4
#6  0x00007f5419c73e9d in ?? () from /usr/lib/libkmailprivate.so.4
#7  0x00007f54198d0e5d in ?? () from /usr/lib/libkmailprivate.so.4
#8  0x00007f54198f2260 in ComposerPage::ComposerPage(KComponentData const&, QWidget*) () from /usr/lib/libkmailprivate.so.4
#9  0x00007f541a13b627 in create_kmail_config_composer () from /usr/lib/kde4/kcm_kmail.so
#10 0x00007f543716a664 in KCModuleLoader::loadModule (mod=..., report=KCModuleLoader::Inline, parent=0x19d8c10, args=<value optimized out>) at ../../kutils/kcmoduleloader.cpp:111
#11 0x00007f543716e8e9 in KCModuleProxyPrivate::loadModule (this=0x1978e40) at ../../kutils/kcmoduleproxy.cpp:106
#12 0x00007f543716f415 in KCModuleProxy::realModule (this=<value optimized out>) at ../../kutils/kcmoduleproxy.cpp:83
#13 0x00007f543716f489 in KCModuleProxy::useRootOnlyMessage (this=0x7fffedbb3d70) at ../../kutils/kcmoduleproxy.cpp:315
#14 0x00007f543716bd0e in KCMultiDialog::addModule (this=0xf44a70, moduleInfo=..., parentItem=<value optimized out>, args=<value optimized out>) at ../../kutils/kcmultidialog.cpp:340
#15 0x00007f54371837b4 in KSettings::DialogPrivate::createDialogFromServices (this=0x1941c90) at ../../kutils/ksettings/dialog.cpp:359
#16 0x00007f54371847c0 in KSettings::Dialog::showEvent (this=<value optimized out>) at ../../kutils/ksettings/dialog.cpp:127
#17 0x00007f5437e9c1ad in QWidget::event (this=0xf44a70, event=0x7fffedbb5940) at kernel/qwidget.cpp:8205
#18 0x00007f5437e4622c in QApplicationPrivate::notify_helper (this=0xbc96e0, receiver=0xf44a70, e=0x7fffedbb5940) at kernel/qapplication.cpp:4300
#19 0x00007f5437e4c6fb in QApplication::notify (this=0x7fffedbb75c0, receiver=0xf44a70, e=0x7fffedbb5940) at kernel/qapplication.cpp:4183
#20 0x00007f5439475526 in KApplication::notify (this=0x7fffedbb75c0, receiver=0xf44a70, event=0x7fffedbb5940) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x00007f5438a8d06c in QCoreApplication::notifyInternal (this=0x7fffedbb75c0, receiver=0xf44a70, event=0x7fffedbb5940) at kernel/qcoreapplication.cpp:704
#22 0x00007f5437ea168a in QCoreApplication::sendEvent (this=0x1942c80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QWidgetPrivate::show_helper (this=0x1942c80) at kernel/qwidget.cpp:7196
#24 0x00007f5437ea380a in QWidget::setVisible (this=0xf44a70, visible=<value optimized out>) at kernel/qwidget.cpp:7418
#25 0x00007f5438310afc in QDialog::setVisible (this=0xf44a70, visible=<value optimized out>) at dialogs/qdialog.cpp:739
#26 0x00007f543a20fcc8 in Kontact::MainWindow::slotPreferences() () from /usr/lib/libkontactprivate.so.4
#27 0x00007f543a21429e in Kontact::MainWindow::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkontactprivate.so.4
#28 0x00007f5438a9fe3f in QMetaObject::activate (sender=0xf05b30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xbd80) at kernel/qobject.cpp:3293
#29 0x00007f5437e40032 in QAction::triggered (this=0x7fffedbb3d70, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#30 0x00007f5437e420ab in QAction::activate (this=0xf05b30, event=<value optimized out>) at kernel/qaction.cpp:1255
#31 0x00007f543828139d in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0xf05b30, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#32 0x00007f5438286dda in QMenuPrivate::activateAction (this=0xf3b700, action=0xf05b30, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#33 0x00007f5439551cee in KMenu::mouseReleaseEvent (this=0x10768f0, e=0x0) at ../../kdeui/widgets/kmenu.cpp:471
#34 0x00007f5437e9c582 in QWidget::event (this=0x10768f0, event=0x7fffedbb68b0) at kernel/qwidget.cpp:7998
#35 0x00007f5438288f9b in QMenu::event (this=0x10768f0, e=0x7fffedbb68b0) at widgets/qmenu.cpp:2414
#36 0x00007f5437e4622c in QApplicationPrivate::notify_helper (this=0xbc96e0, receiver=0x10768f0, e=0x7fffedbb68b0) at kernel/qapplication.cpp:4300
#37 0x00007f5437e4cecb in QApplication::notify (this=0x7fffedbb75c0, receiver=0x10768f0, e=0x7fffedbb68b0) at kernel/qapplication.cpp:3865
#38 0x00007f5439475526 in KApplication::notify (this=0x7fffedbb75c0, receiver=0x10768f0, event=0x7fffedbb68b0) at ../../kdeui/kernel/kapplication.cpp:302
#39 0x00007f5438a8d06c in QCoreApplication::notifyInternal (this=0x7fffedbb75c0, receiver=0x10768f0, event=0x7fffedbb68b0) at kernel/qcoreapplication.cpp:704
#40 0x00007f5437e4c0ae in QCoreApplication::sendEvent (receiver=0x10768f0, event=0x7fffedbb68b0, alienWidget=0x0, nativeWidget=0x10768f0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#41 QApplicationPrivate::sendMouseEvent (receiver=0x10768f0, event=0x7fffedbb68b0, alienWidget=0x0, nativeWidget=0x10768f0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#42 0x00007f5437ecc3dd in QETWidget::translateMouseEvent (this=0x10768f0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#43 0x00007f5437eca8ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffedbb71d0) at kernel/qapplication_x11.cpp:3501
#44 0x00007f5437ef6882 in x11EventSourceDispatch (s=0xbcfee0, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x00007f54301fb8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0x00007f54301ff748 in ?? () from /lib/libglib-2.0.so.0
#47 0x00007f54301ff8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0x00007f5438ab6513 in QEventDispatcherGlib::processEvents (this=0xb9dd70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#49 0x00007f5437ef646e in QGuiEventDispatcherGlib::processEvents (this=0x7fffedbb3d70, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f5438a8b992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#51 0x00007f5438a8bd6c in QEventLoop::exec (this=0x7fffedbb7500, flags=) at kernel/qeventloop.cpp:201
#52 0x00007f5438a8faab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#53 0x0000000000403e8e in _start ()

This bug may be a duplicate of or related to bug 174707.

Possible duplicates by query: bug 178676.

Reported using DrKonqi
Comment 1 Christophe Marin 2010-10-13 14:29:25 UTC

*** This bug has been marked as a duplicate of bug 184863 ***