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

Error found when starting Akonadi on KDE 4.3

Tags: None
(comma "," separated)
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
Dear all,
I just upgraded KDE from 4.2 to 4.3 on my Slackware (4.3 is stable on my Slackware version), but I got the same error that I got in Akonadi KDE 4.2. Here are the errors from the Akonadi log"
Code: Select all
Test 9:  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 10:  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 12:  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
distlistresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
microblog.desktop
nepomukcontactfeeder.desktop
nepomukemailfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
strigifeeder.desktop
vcarddirresource.desktop
vcardresource.desktop
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
distlistresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
microblog.desktop
nepomukcontactfeeder.desktop
nepomukemailfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
strigifeeder.desktop
vcarddirresource.desktop
vcardresource.desktop

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

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

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

File content of '/root/.local/share/akonadi/akonadiserver.error':
Database process exited unexpectedly during initial connection!
executable: "/usr/libexec/mysqld"
arguments: ("--defaults-file=/root/.local/share/akonadi//mysql.conf", "--datadir=/root/.local/share/akonadi/db_data/", "--socket=/root/.local/share/akonadi/db_misc/mysql.socket")
stdout: ""
stderr: "100401 14:54:27 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

100401 14:54:27 [ERROR] Aborting

100401 14:54:27 [Note] /usr/libexec/mysqld: Shutdown complete

"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver(_Z11akBacktracev+0x38) [0x40b5b8]
1: akonadiserver [0x40bb32]
2: /lib64/libc.so.6 [0x7f143dce8f30]
3: /lib64/libc.so.6(gsignal+0x35) [0x7f143dce8ea5]
4: /lib64/libc.so.6(abort+0x183) [0x7f143dceaab3]
5: /usr/lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x85) [0x7f143f2053f5]
6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40cfd8]
7: /usr/lib64/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x81) [0x7f143f2914e1]
8: /usr/lib64/libQtCore.so.4 [0x7f143f29d90c]
9: /usr/lib64/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x68) [0x7f143f29dbb8]
10: akonadiserver(_ZN6QDebugD1Ev+0x4b) [0x40674b]
11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x187e) [0x7f14400031be]
12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x6b) [0x7f144000561b]
13: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x47) [0x7f14400068b7]
14: akonadiserver(main+0x300) [0x405dd0]
15: /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f143dcd4526]
16: akonadiserver [0x4059d9]
]
"


Test 14:  ERROR
--------

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

File content of '/root/.local/share/akonadi/akonadiserver.error.old':
Database process exited unexpectedly during initial connection!
executable: "/usr/libexec/mysqld"
arguments: ("--defaults-file=/root/.local/share/akonadi//mysql.conf", "--datadir=/root/.local/share/akonadi/db_data/", "--socket=/root/.local/share/akonadi/db_misc/mysql.socket")
stdout: ""
stderr: "100401 14:54:27 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

100401 14:54:27 [ERROR] Aborting

100401 14:54:27 [Note] /usr/libexec/mysqld: Shutdown complete

"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver(_Z11akBacktracev+0x38) [0x40b5b8]
1: akonadiserver [0x40bb32]
2: /lib64/libc.so.6 [0x7fb0480d6f30]
3: /lib64/libc.so.6(gsignal+0x35) [0x7fb0480d6ea5]
4: /lib64/libc.so.6(abort+0x183) [0x7fb0480d8ab3]
5: /usr/lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x85) [0x7fb0495f33f5]
6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40cfd8]
7: /usr/lib64/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x81) [0x7fb04967f4e1]
8: /usr/lib64/libQtCore.so.4 [0x7fb04968b90c]
9: /usr/lib64/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x68) [0x7fb04968bbb8]
10: akonadiserver(_ZN6QDebugD1Ev+0x4b) [0x40674b]
11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x187e) [0x7fb04a3f11be]
12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x6b) [0x7fb04a3f361b]
13: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x47) [0x7fb04a3f48b7]
14: akonadiserver(main+0x300) [0x405dd0]
15: /lib64/libc.so.6(__libc_start_main+0xe6) [0x7fb0480c2526]
16: akonadiserver [0x4059d9]
]
"


How can I fix this?
Regards,
ethereal1m
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
MySQL does not support running as root in the manner Akonadi uses it. I would recommend configuring a system wide instance of MySQL, and configuring Akonadi to use that.

Note that running a Desktop Environment as root is not recommended for security issues.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
How bout these errors, do they to do with MySQL as well?
Code: Select all
Test 9:  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 10:  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 12:  ERROR
--------

No resource agents found.
Details: No resource agents have been found, Akonadi is not usable without at least one.
User avatar
annew
Manager
Posts
1155
Karma
11
OS
You need MySQL sorted first. Then you need to be sure that Nepomuk is running and that Akonadi can start up. In 4.3 most people found that they had to start Akonadi manually. In 4.4 Akonadi correctly starts up when Kontact requests it.

Most of the issues you may need to know about are covered on the following pages:

http://userbase.kde.org/Akonadi
http://userbase.kde.org/Akonadi_4.4/Troubleshooting
http://userbase.kde.org/KAddressBook
http://userbase.kde.org/Akonadi_and_AddressBook

The 'Missing Pre-Requisites' section on the troubleshooting page may be helpful - in fact anything and everything below that might be pertinent.


annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org
User avatar
ethereal1m
Registered Member
Posts
81
Karma
0
OS
ok, looks like this problem occurs when I log to KDE using root account; since this is a bad practice and the problem doesn't occur on user account, I set this issue as resolved.


Bookmarks



Who is online

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