Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED! KDE 4.4.0 Upgrade: KMail, & Akonadi Won't Start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 152
Location: West Grove, PA

PostPosted: Sun Feb 14, 2010 6:37 pm    Post subject: SOLVED! KDE 4.4.0 Upgrade: KMail, & Akonadi Won't Start Reply with quote

I updated to KDE 4.4.0 and now KMail won't start because Akonadi won't start. (KMail actually runs behind the akonadi error message, but then closes once I close the Akonadi error message).


BTW, I am running as root on an ~AMD64 system


Anybody have any suggestions on what to try?



Here is some data:


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 '/root/.config/akonadi/akonadiserverrc':
[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

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

[Debug]
Tracer=null


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/local/share:/usr/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/local/share:/usr/share'

Test 12: 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 error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
1: akonadiserver() [0x40c162]
2: /lib/libc.so.6(+0x32210) [0x7f73daeed210]
3: /lib/libc.so.6(gsignal+0x35) [0x7f73daeed195]
4: /lib/libc.so.6(abort+0x180) [0x7f73daeee5c0]
5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f73dcdc4434]
6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7f73dce52207]
8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7f73dce634f9]
9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f73dce646f9]
10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7f73dd2341da]
12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f73dd23501a]
13: akonadiserver(main+0x3ac) [0x406d0c]
14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f73daed9bbd]
15: akonadiserver() [0x406869]
]
"


Test 13: 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 error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
1: akonadiserver() [0x40c162]
2: /lib/libc.so.6(+0x32210) [0x7f4e3c647210]
3: /lib/libc.so.6(gsignal+0x35) [0x7f4e3c647195]
4: /lib/libc.so.6(abort+0x180) [0x7f4e3c6485c0]
5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f4e3e51e434]
6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7f4e3e5ac207]
8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7f4e3e5bd4f9]
9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f4e3e5be6f9]
10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7f4e3e98e1da]
12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f4e3e98f01a]
13: akonadiserver(main+0x3ac) [0x406d0c]
14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f4e3c633bbd]
15: akonadiserver() [0x406869]
]
"


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.





akonadictl start produces:

[akonadiserver] search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.2", "/usr/qt/3/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin")
[akonadiserver] Failed to use database "akonadi"
[akonadiserver] Database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] Trying to create database now...
[akonadiserver] QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
[akonadiserver] Database error: Cannot open database.
[akonadiserver] Last driver error: "QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
[akonadiserver] Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] "[
[akonadiserver] 0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
[akonadiserver] 1: akonadiserver() [0x40c162]
[akonadiserver] 2: /lib/libc.so.6(+0x32210) [0x7fdff0215210]
[akonadiserver] 3: /lib/libc.so.6(gsignal+0x35) [0x7fdff0215195]
[akonadiserver] 4: /lib/libc.so.6(abort+0x180) [0x7fdff02165c0]
[akonadiserver] 5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7fdff20ec434]
[akonadiserver] 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
[akonadiserver] 7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7fdff217a207]
[akonadiserver] 8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7fdff218b4f9]
[akonadiserver] 9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7fdff218c6f9]
[akonadiserver] 10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
[akonadiserver] 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7fdff255c1da]
[akonadiserver] 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7fdff255d01a]
[akonadiserver] 13: akonadiserver(main+0x3ac) [0x406d0c]
[akonadiserver] 14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7fdff0201bbd]
[akonadiserver] 15: akonadiserver() [0x406869]
[akonadiserver] ]
[akonadiserver] "
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
[akonadiserver] search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.2", "/usr/qt/3/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin")
[akonadiserver] Failed to use database "akonadi"
[akonadiserver] Database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] Trying to create database now...
[akonadiserver] QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
[akonadiserver] Database error: Cannot open database.
[akonadiserver] Last driver error: "QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
[akonadiserver] Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] "[
[akonadiserver] 0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
[akonadiserver] 1: akonadiserver() [0x40c162]
[akonadiserver] 2: /lib/libc.so.6(+0x32210) [0x7f6a3e33d210]
[akonadiserver] 3: /lib/libc.so.6(gsignal+0x35) [0x7f6a3e33d195]
[akonadiserver] 4: /lib/libc.so.6(abort+0x180) [0x7f6a3e33e5c0]
[akonadiserver] 5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f6a40214434]
[akonadiserver] 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
[akonadiserver] 7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7f6a402a2207]
[akonadiserver] 8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7f6a402b34f9]
[akonadiserver] 9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f6a402b46f9]
[akonadiserver] 10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
[akonadiserver] 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7f6a406841da]
[akonadiserver] 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f6a4068501a]
[akonadiserver] 13: akonadiserver(main+0x3ac) [0x406d0c]
[akonadiserver] 14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f6a3e329bbd]
[akonadiserver] 15: akonadiserver() [0x406869]
[akonadiserver] ]
[akonadiserver] "
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
[akonadiserver] search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.2", "/usr/qt/3/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin")
[akonadiserver] Failed to use database "akonadi"
[akonadiserver] Database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] Trying to create database now...
[akonadiserver] QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
[akonadiserver] Database error: Cannot open database.
[akonadiserver] Last driver error: "QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
[akonadiserver] Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] "[
[akonadiserver] 0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
[akonadiserver] 1: akonadiserver() [0x40c162]
[akonadiserver] 2: /lib/libc.so.6(+0x32210) [0x7f7dbe5e3210]
[akonadiserver] 3: /lib/libc.so.6(gsignal+0x35) [0x7f7dbe5e3195]
[akonadiserver] 4: /lib/libc.so.6(abort+0x180) [0x7f7dbe5e45c0]
[akonadiserver] 5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f7dc04ba434]
[akonadiserver] 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
[akonadiserver] 7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7f7dc0548207]
[akonadiserver] 8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7f7dc05594f9]
[akonadiserver] 9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f7dc055a6f9]
[akonadiserver] 10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
[akonadiserver] 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7f7dc092a1da]
[akonadiserver] 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f7dc092b01a]
[akonadiserver] 13: akonadiserver(main+0x3ac) [0x406d0c]
[akonadiserver] 14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7f7dbe5cfbbd]
[akonadiserver] 15: akonadiserver() [0x406869]
[akonadiserver] ]
[akonadiserver] "
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
[akonadiserver] search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/opt/bin", "/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.2", "/usr/qt/3/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin")
[akonadiserver] Failed to use database "akonadi"
[akonadiserver] Database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] Trying to create database now...
[akonadiserver] QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
[akonadiserver] Database error: Cannot open database.
[akonadiserver] Last driver error: "QMYSQL: Unable to connect"
[akonadiserver] Last database error: "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2)"
[akonadiserver] Unable to open database "Can't connect to local MySQL server through socket '/root/.local/share/akonadi/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
[akonadiserver] "[
[akonadiserver] 0: akonadiserver(_Z11akBacktracev+0x39) [0x40bc19]
[akonadiserver] 1: akonadiserver() [0x40c162]
[akonadiserver] 2: /lib/libc.so.6(+0x32210) [0x7ff760fda210]
[akonadiserver] 3: /lib/libc.so.6(gsignal+0x35) [0x7ff760fda195]
[akonadiserver] 4: /lib/libc.so.6(abort+0x180) [0x7ff760fdb5c0]
[akonadiserver] 5: /usr/lib64/qt4/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7ff762eb1434]
[akonadiserver] 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40d268]
[akonadiserver] 7: /usr/lib64/qt4/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x77) [0x7ff762f3f207]
[akonadiserver] 8: /usr/lib64/qt4/libQtCore.so.4(+0x1104f9) [0x7ff762f504f9]
[akonadiserver] 9: /usr/lib64/qt4/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7ff762f516f9]
[akonadiserver] 10: akonadiserver(_ZN6QDebugD1Ev+0x4e) [0x4076ee]
[akonadiserver] 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x55a) [0x7ff7633211da]
[akonadiserver] 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7ff76332201a]
[akonadiserver] 13: akonadiserver(main+0x3ac) [0x406d0c]
[akonadiserver] 14: /lib/libc.so.6(__libc_start_main+0xfd) [0x7ff760fc6bbd]
[akonadiserver] 15: akonadiserver() [0x406869]
[akonadiserver] ]
[akonadiserver] "
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
"akonadiserver" crashed too often and will not be restarted!
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation


Last edited by Vorlon on Sat Feb 20, 2010 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Sun Feb 14, 2010 8:20 pm    Post subject: Reply with quote

Are you using external MySQL server?

In Akonadi server configuration there are extra options for external server. By default there is UNIX_SOCKET that is set to point to a socket somewhere in the home directory. You might need to change that. I have it set to /var/run/mysqld/mysqld.sock.
_________________
We are all in the gutter, but some of us are looking at the stars.
Join Einstein@Home GLUE-team
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 152
Location: West Grove, PA

PostPosted: Sat Feb 20, 2010 3:29 am    Post subject: Solved! KDE 4.4.0 Upgrade: KMail, & Akonadi Won't Start Reply with quote

I was able to fix this problem. Here's how I did it:

1. Exit KDE to command prompt
2. Rename the directory /root/.config/akonadi to something else (actually, it can be deleted, but I was being careful)
3. Rename the directory /root/.local/share/akonadi to something else
4. Restart KDE
5. Edit /root/.local/akonadi/mysql.conf and add "user=root" to the end of the file
6. Start KDE. Akonadi started just fine!
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 435
Location: Vienna, Austria

PostPosted: Sat Feb 27, 2010 7:14 pm    Post subject: Reply with quote

Why would you need to edit anything in root's home directory? Akonadi is not running as root, unless I missed something.
Anyway, I don't even have the /root/.local/share/akonadi directory, at least it's not created after akonadi starts.
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 152
Location: West Grove, PA

PostPosted: Sun Feb 28, 2010 2:19 am    Post subject: Reply with quote

I was running kde as root, so all my files were under the root directory. (In previous versions of KDE, running as root caused all manner of trouble for akonadi.)

In your case, I would look at /home/yourname/.config/akonadi & /home/yourname/.local/share/akonadi
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2637
Location: Gainesville, Florida

PostPosted: Wed Mar 03, 2010 9:45 am    Post subject: Reply with quote

This happened to me after going to kde-4.4.1 from 4.4.0- didn't happen on 4.4.0, or maybe I just didn't notice it at first as I didn't check email right away after the 4.4.0 update on another installation.

I'll try your fix for kmail (which is my main email app on all installs and distros for years, so it's very important for me), but isn't this actually caused by something else going on with an akonadi/mysql update configurations that should be addressed?

I think that because removing/renaming those directories which are then recreated on reboot seems to fix things- or is that mistaken?

I assume if you're running kde as user you would use "USER=YOUR_USERNAME" at the end of home/yourname/.local/share/akonadi- correct?
_________________
Main box- ASRock 880GM-LE AM3
Phenom II x6 1090T, 3.2 GHz, 8GB GSkill DDR3 1333mhz
Samsung SATA 500GB, Radeon HD 4670 1GB DDR3
Gentoo ~x86, ~amd64, glibc-2.15-r1, gcc-4.7.0, kernels 3.3.7, 3.4.0 w/auto-cgroups
Back to top
View user's profile Send private message
Vorlon
Apprentice
Apprentice


Joined: 16 May 2003
Posts: 152
Location: West Grove, PA

PostPosted: Wed Mar 03, 2010 10:31 am    Post subject: Reply with quote

Yes, the problem really is not Kmail, but the mysql interface in akonadi. As far as I know, the **only** issue is if you run as root, which tends to make mysql uncomfortable.

I don't think you should need to enter USER=YOUR_USERNAME, but am not sure.
_________________
Casey Bralla
Chief Nerd in Residence
The NerdWorld Organisation
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2637
Location: Gainesville, Florida

PostPosted: Wed Mar 03, 2010 3:10 pm    Post subject: Reply with quote

Verion,
I meant user=wrc instead of user-root as you mentioned above. BTW, my mysql.conf is in /home/wrc/.local/share/akonadi/, NOT /home/wrc/.local/akonadi/. Was yours a typo?

Anyway, I followed your steps 1-6 exactly, and it didn't work. Kmail launches, but no menus/buttons work at all.

Just ran a revdep-rebuild -p and got this seemingly related output- maybe that's the problem- will try and fix.
Code:
 * Checking dynamic linking consistency
[ 81% ]  *   broken /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/DBD/mysql/mysql.so (requires libmysqlclient.so.15)
[ 87% ]  *   broken /usr/lib/qt4/plugins/sqldrivers/libqsqlmysql.so (requires libmysqlclient_r.so.15)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/DBD/mysql/mysql.so -> dev-perl/DBD-mysql
 *   /usr/lib/qt4/plugins/sqldrivers/libqsqlmysql.so -> x11-libs/qt-sql
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot --pretend  dev-perl/DBD-mysql:0
x11-libs/qt-sql:4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-perl/DBD-mysql-4.01.3
[ebuild   R   ] x11-libs/qt-sql-4.6.2  USE="exceptions%*"


EDIT: revdep-rebuild fails:
Code:
 >>> Emerging (1 of 2) dev-perl/DBD-mysql-4.01.3
 * DBD-mysql-4.013.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                            [ ok ]
 * CPV:  dev-perl/DBD-mysql-4.01.3
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
sandbox:main  signal SIGQUIT already had a handler ...

>>> Unpacking source...
>>> Unpacking DBD-mysql-4.013.tar.gz to /var/tmp/portage/dev-perl/DBD-mysql-4.01.3/work
>>> Source unpacked in /var/tmp/portage/dev-perl/DBD-mysql-4.01.3/work
sandbox:main  signal SIGQUIT already had a handler ...

>>> Compiling source in /var/tmp/portage/dev-perl/DBD-mysql-4.01.3/work/DBD-mysql-4.013 ...
 * Using ExtUtils::MakeMaker
Can't locate DBI/DBD.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1/i686-linux /usr/lib/perl5/site_perl/5.10.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.1/i686-linux /usr/lib/perl5/vendor_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.1/i686-linux /usr/lib/perl5/5.10.1 .) at Makefile.PL line 24.
 * ERROR: dev-perl/DBD-mysql-4.01.3 failed:
 *   Unable to build! (are you using USE="build"?)

Trying the perl-cleaner --reallyall I found here http://forums.gentoo.org/viewtopic-p-6180396-highlight-dbdmysql.html#6180396
_________________
Main box- ASRock 880GM-LE AM3
Phenom II x6 1090T, 3.2 GHz, 8GB GSkill DDR3 1333mhz
Samsung SATA 500GB, Radeon HD 4670 1GB DDR3
Gentoo ~x86, ~amd64, glibc-2.15-r1, gcc-4.7.0, kernels 3.3.7, 3.4.0 w/auto-cgroups
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2637
Location: Gainesville, Florida

PostPosted: Wed Mar 03, 2010 4:18 pm    Post subject: Reply with quote

OK- "perl-cleaner --reallyall" rebuild 80 packages, almost all perl stuff. Then, revdep-rebuild could rebuild DBD-mysql-4.01.3 once again, and continued on with rebuilding qt-sql-4.6.2.

Then restarted kde-4.4.1, akonadi didn't hang up, and kmail now works again. WHEW! :D

So apparently, in my case I needed all this perl stuff done, as well as qt-sql.
BTW, just read my eselect news, and if I had done so before this happened, I would have realized what was going on. Lesson learned- read eselect news more often. :oops:
Code:
gentoo wrc # eselect news read 1
2010-02-21-mysql-upgrade
  Title                     MySQL 5.1 unmasking and upgrade procedures
  Author                    Robin H. Johnson <robbat2@gentoo.org>
  Posted                    2010-02-21
  Revision                  4

The 5.1 series of MySQL is going to be unmasked at the same time as the release
of this news item. When upgrading from an older major version (including 5.0),
you will be required to rebuild everything linked to the libmysqlclient.so.15
and libmysqlclient_r.so.15.

You can do this by installing app-portage/gentoolkit and running:
# revdep-rebuild --library libmysqlclient.so.15
# revdep-rebuild --library libmysqlclient_r.so.15

If you use the Portage 2.2 series, you may also use:
# emerge @preserved-rebuild

The official upgrade documentation is available here:
http://dev.mysql.com/doc/refman/5.1/en/upgrade.html

Note that existing databases may need converting as well, again including those
upgrading from 5.0 to 5.1. Details are in the update documentation.

_________________
Main box- ASRock 880GM-LE AM3
Phenom II x6 1090T, 3.2 GHz, 8GB GSkill DDR3 1333mhz
Samsung SATA 500GB, Radeon HD 4670 1GB DDR3
Gentoo ~x86, ~amd64, glibc-2.15-r1, gcc-4.7.0, kernels 3.3.7, 3.4.0 w/auto-cgroups
Back to top
View user's profile Send private message
Benson
Apprentice
Apprentice


Joined: 23 Feb 2004
Posts: 156
Location: Switzerland

PostPosted: Thu Mar 04, 2010 4:27 pm    Post subject: Reply with quote

Code:
# revdep-rebuild --library libmysqlclient.so.15
# revdep-rebuild --library libmysqlclient_r.so.15

This only wanted to rebuild gimp, so i used "perl-cleaner --reallyall". No revdep-rebuild needed after that, kmail is running fine after that. Thanks for the hint!

cheers
Benson
_________________
If it compiles, commit to CVS.
If it links, ship to customer.
If it runs without bugs, ..., nah, never had that case.
Back to top
View user's profile Send private message
93nt00r0ck5
n00b
n00b


Joined: 17 Jul 2004
Posts: 35

PostPosted: Fri Mar 26, 2010 9:55 pm    Post subject: Reply with quote

FWIW, I was still having problems accessing my address book in Kontact. Akonadi was appearing to run, but in reality, it was still failing to access mysql.

/home/$USER/.local/share/akonadi/akonadiserver.error
Quote:
Database error: Cannot open database.
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"
Database error: Cannot open database.
Last driver error: "QMYSQL: Unable to connect"
Last database error: "Can't initialize character set utf8 (path: /usr/share/mysql/charsets/)"

I ended up having to hard mask =dev-db/mysql-5.1.45-r1 and =dev-db/mysql-5.1.45. The newest version of mysql that worked for me was 5.1.44-r3. There is a post here: http://bugs.kde.org/226960 that talks about Gentoo users and problems with akonadi and mysql. Apparently it was fixed in mysql version 5.1.43, but then broken again in 5.1.45?! I have not quite determined why this is. BTW, the error about "Can't initialize character set utf8" is irrelevant since I also rebuilt mysql-5.1.45 with the latin1 use flag and it then complained about not being able to initialize latin1..... :roll:
Back to top
View user's profile Send private message
g.e.n.t.u.x.
Guru
Guru


Joined: 21 Aug 2006
Posts: 410
Location: Berlin

PostPosted: Mon Jun 28, 2010 6:16 pm    Post subject: Reply with quote

hello and thx

i need both ways and i am fine now ;)
_________________
Human being isnt a default setted feature.
Back to top
View user's profile Send private message
swann25
n00b
n00b


Joined: 04 Dec 2006
Posts: 50
Location: Bucharest, Romania

PostPosted: Wed Sep 08, 2010 9:24 am    Post subject: Reply with quote

Hi all,

I had a similar problem; here's my fix:
1. closed kmail
2.
Code:
rm -fr ~/.config/akonadi/

3.
Code:
rm -fr ~/.local/share/akonadi

4. stopped all mysqld processes
5. ran "revdep-rebuild" (x11-libs/qt-sql was rebuilded)
6. started kmail, everything works
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum