Bug 324787 - Unknown error in akonadiserver() after failed migration
Summary: Unknown error in akonadiserver() after failed migration
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 1.9.2
Platform: Debian testing Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 12:36 UTC by Christian S.
Modified: 2014-02-27 20:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian S. 2013-09-11 12:36:22 UTC
I upgraded Debian Wheezy to Jessie (testing) and started KMail. I got the information that kmail data has to be migrated, but the migration failed. And now kmail crashes on every start.

I tried to start Akonadi with shell:

christian@christian:~$ akonadictl start
christian@christian:~$ Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/lib/i386-linux-gnu/qt4/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld"
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket")
stdout: ""
stderr: "130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb7709400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb7709424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6dd280f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6dd5cc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb7466b63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb750bae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb7519d5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb7523445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6dbd8c5]
18: akonadiserver() [0x80568d2]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/lib/i386-linux-gnu/qt4/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld"
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket")
stdout: ""
stderr: "130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb77bc400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb77bc424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6e8580f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6e88cc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb7519b63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb75beae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb75ccd5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb75d6445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6e708c5]
18: akonadiserver() [0x80568d2]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/lib/i386-linux-gnu/qt4/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld"
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket")
stdout: ""
stderr: "130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb77d6400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb77d6424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6e9f80f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6ea2cc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb7533b63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb75d8ae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb75e6d5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb75f0445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6e8a8c5]
18: akonadiserver() [0x80568d2]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/lib/i386-linux-gnu/qt4/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/local/games", "/usr/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld"
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket")
stdout: ""
stderr: "130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:19:27 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb76ef400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb76ef424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6db880f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6dbbcc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb744cb63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb74f1ae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb74ffd5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb7509445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6da38c5]
18: akonadiserver() [0x80568d2]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
"akonadiserver" crashed too often and will not be restarted! 

The Akonadi Test gives me this output:

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

[QMYSQL]
Name=akonadi
Host=
User=
Password=
Options="UNIX_SOCKET=/home/christian/.local/share/akonadi/socket-christian/mysql.socket"
ServerPath=/usr/sbin/mysqld
StartServer=true

[Debug]
Tracer=null


Test 2:  SUCCESS
--------

Akonadi is not running as root
Details: Akonadi is not running as a root/administrator user, which is the recommended setup for a secure system.

Test 3:  SUCCESS
--------

MySQL server found.
Details: You have currently configured Akonadi to use the MySQL server '/usr/sbin/mysqld'.
Make sure you have the MySQL server installed, set the correct path and ensure you have the necessary read and execution rights on the server executable. The server executable is typically called 'mysqld'; its location varies depending on the distribution.

Test 4:  SUCCESS
--------

MySQL server is executable.
Details: MySQL server found: /usr/sbin/mysqld  Ver 5.5.31-1 for debian-linux-gnu on i686 ((Debian))


Test 5:  ERROR
--------

MySQL server log contains errors.
Details: The MySQL server error log file &apos;<a href='/home/christian/.local/share/akonadi/db_data/mysql.err'>/home/christian/.local/share/akonadi/db_data/mysql.err</a>&apos; contains errors.

File content of '/home/christian/.local/share/akonadi/db_data/mysql.err':

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:09 [ERROR] Aborting

130911 11:50:09 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:09 [ERROR] Aborting

130911 11:50:09 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:09 [ERROR] Aborting

130911 11:50:09 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:09 [ERROR] Aborting

130911 11:50:09 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:23 [ERROR] Aborting

130911 11:50:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:23 [ERROR] Aborting

130911 11:50:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:23 [ERROR] Aborting

130911 11:50:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 11:50:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 11:50:23 [ERROR] Aborting

130911 11:50:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:11 [ERROR] Aborting

130911 13:19:11 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:11 [ERROR] Aborting

130911 13:19:11 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:11 [ERROR] Aborting

130911 13:19:11 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:11 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:11 [ERROR] Aborting

130911 13:19:11 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:22 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:22 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:22 [ERROR] Aborting

130911 13:19:22 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:23 [ERROR] Aborting

130911 13:19:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:23 [ERROR] Aborting

130911 13:19:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:23 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:23 [ERROR] Aborting

130911 13:19:23 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:52 [ERROR] Aborting

130911 13:19:52 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:52 [ERROR] Aborting

130911 13:19:52 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:52 [ERROR] Aborting

130911 13:19:52 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:19:52 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:19:52 [ERROR] Aborting

130911 13:19:52 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:22:46 [ERROR] Aborting

130911 13:22:46 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:22:46 [ERROR] Aborting

130911 13:22:46 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:22:46 [ERROR] Aborting

130911 13:22:46 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:22:46 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:22:46 [ERROR] Aborting

130911 13:22:46 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:36:06 [ERROR] Aborting

130911 13:36:06 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:36:06 [ERROR] Aborting

130911 13:36:06 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:36:06 [ERROR] Aborting

130911 13:36:06 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 13:36:06 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 13:36:06 [ERROR] Aborting

130911 13:36:06 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:19:27 [ERROR] Aborting

130911 14:19:27 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:19:27 [ERROR] Aborting

130911 14:19:27 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:19:27 [ERROR] Aborting

130911 14:19:27 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:19:27 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:19:27 [ERROR] Aborting

130911 14:19:27 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:29:01 [ERROR] Aborting

130911 14:29:01 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:29:01 [ERROR] Aborting

130911 14:29:01 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:29:01 [ERROR] Aborting

130911 14:29:01 [Note] /usr/sbin/mysqld: Shutdown complete

/usr/sbin/mysqld: File './mysql-bin.~rec~' not found (Errcode: 13)
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register  file.
130911 14:29:01 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file.
130911 14:29:01 [ERROR] Aborting

130911 14:29:01 [Note] /usr/sbin/mysqld: Shutdown complete



Test 6:  SUCCESS
--------

MySQL server default configuration found.
Details: The default configuration for the MySQL server was found and is readable at <a href='/etc/akonadi/mysql-global.conf'>/etc/akonadi/mysql-global.conf</a>.

File content of '/etc/akonadi/mysql-global.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris@mysql.com>
#
[mysqld]

# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
# sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
# sql_mode=strict_trans_tables

# DEBUGGING:
# log all queries, useful for debugging but generates an enormous amount of data
# log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for debugging only)
# log_slow_queries=mysql.slow
# long_query_time=1
# log queries not using indices, debug only, disable for production use
# log_queries_not_using_indexes=1
#
# mesure database size and adjust innodb_buffer_pool_size
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");

# NOTES:
# Keep Innob_log_waits and keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)

#expire_logs_days=3

#sync_bin_log=0

# Use UTF-8 encoding for tables
character_set_server=utf8
collation_server=utf8_general_ci

# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb

# memory pool InnoDB uses to store data dictionary information and other internal data structures (default:1M)
innodb_additional_mem_pool_size=1M

# memory buffer InnoDB uses to cache data and indexes of its tables (default:128M)
# Larger values means less I/O
innodb_buffer_pool_size=80M

# Create a .ibd file for each table (default:0)
innodb_file_per_table=1

# Write out the log buffer to the log file at each commit (default:1)
innodb_flush_log_at_trx_commit=2

# Buffer size used to write to the log files on disk (default:1M for builtin, 8M for plugin)
# larger values means less I/O
innodb_log_buffer_size=1M

# Size of each log file in a log group (default:5M) larger means less I/O but more time for recovery.
innodb_log_file_size=64M

# # error log file name, relative to datadir (default:hostname.err)
log_error=mysql.err

# print warnings and connection errors (default:1)
log_warnings=2

# Convert table named to lowercase
lower_case_table_names=1

# Maximum size of one packet or any generated/intermediate string. (default:1M)
max_allowed_packet=32M

# Maximum simultaneous connections allowed (default:100)
max_connections=256

# The two options below make no sense with prepared statements and/or transactions
# (make sense when having the same query multiple times)

# Memory allocated for caching query results (default:0 (disabled))
query_cache_size=0

# Do not cache results (default:1)
query_cache_type=0

# Do not use the privileges mechanisms
skip_grant_tables

# Do not listen for TCP/IP connections at all
skip_networking

# The number of open tables for all threads. (default:64)
table_cache=200

# How many threads the server should cache for reuse (default:0)
thread_cache_size=3

# wait 365d before dropping the DB connection (default:8h)
wait_timeout=31536000

[client]
default-character-set=utf8


Test 7:  SKIP
--------

MySQL server custom configuration not available.
Details: The custom configuration for the MySQL server was not found but is optional.

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

MySQL server configuration is usable.
Details: The MySQL server configuration was found at <a href='/home/christian/.local/share/akonadi/mysql.conf'>/home/christian/.local/share/akonadi/mysql.conf</a> and is readable.

File content of '/home/christian/.local/share/akonadi/mysql.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris@mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking

# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
#sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables

# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=latin1
collation_server=latin1_general_ci
table_cache=200
thread_cache_size=3
log_bin=mysql-bin
expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
binlog_format=ROW
# log all queries, useful for debugging but generates an enormous amount of data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0

innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2



Test 9:  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.9.2


Test 10:  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 11:  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
--------

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

Test 13:  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 14:  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'. 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.

Directory listing of '/usr/share/akonadi/agents':
akonadinepomukfeederagent.desktop
akonotesresource.desktop
archivemailagent.desktop
birthdaysresource.desktop
contactsresource.desktop
davgroupwareresource.desktop
icaldirresource.desktop
icalresource.desktop
imapresource.desktop
invitationsagent.desktop
kabcresource.desktop
kalarmdirresource.desktop
kalarmresource.desktop
kcalresource.desktop
kdeaccountsresource.desktop
knutresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mailfilteragent.desktop
mboxresource.desktop
microblog.desktop
mixedmaildirresource.desktop
mtdummyresource.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
openxchangeresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop

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

Test 15:  ERROR
--------

Current Akonadi server error log found.
Details: The Akonadi server reported errors during its current startup. The log can be found in <a href='/home/christian/.local/share/akonadi/akonadiserver.error'>/home/christian/.local/share/akonadi/akonadiserver.error</a>.

File content of '/home/christian/.local/share/akonadi/akonadiserver.error':
Database process exited unexpectedly during initial connection! 
executable: "/usr/sbin/mysqld" 
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket") 
stdout: "" 
stderr: "130911 14:29:01 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:29:01 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
" 
exit code: 1 
process error: "Unknown error" 
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb772e400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb772e424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6df780f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6dfacc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb748bb63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb7530ae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb753ed5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb7548445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6de28c5]
18: akonadiserver() [0x80568d2]
]
" 


Test 16:  ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server reported errors during its previous startup. The log can be found in <a href='/home/christian/.local/share/akonadi/akonadiserver.error.old'>/home/christian/.local/share/akonadi/akonadiserver.error.old</a>.

File content of '/home/christian/.local/share/akonadi/akonadiserver.error.old':
Database process exited unexpectedly during initial connection! 
executable: "/usr/sbin/mysqld" 
arguments: ("--defaults-file=/home/christian/.local/share/akonadi/mysql.conf", "--datadir=/home/christian/.local/share/akonadi/db_data/", "--socket=/home/christian/.local/share/akonadi/socket-christian/mysql.socket") 
stdout: "" 
stderr: "130911 14:29:01 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
130911 14:29:01 [Warning] Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test
" 
exit code: 1 
process error: "Unknown error" 
"[
0: akonadiserver() [0x805d115]
1: akonadiserver() [0x805d3d1]
2: linux-gate.so.1(__kernel_sigreturn+0) [0xb77d8400]
3: linux-gate.so.1(__kernel_vsyscall+0x10) [0xb77d8424]
4: /lib/i386-linux-gnu/i686/cmov/libc.so.6(gsignal+0x4f) [0xb6ea180f]
5: /lib/i386-linux-gnu/i686/cmov/libc.so.6(abort+0x143) [0xb6ea4cc3]
6: /usr/lib/i386-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x123) [0xb7535b63]
7: akonadiserver() [0x805f2d4]
8: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xc8) [0xb75daae8]
9: /usr/lib/i386-linux-gnu/libQtCore.so.4(+0x10ed5e) [0xb75e8d5e]
10: /usr/lib/i386-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x35) [0xb75f2445]
11: akonadiserver() [0x8056e3f]
12: akonadiserver() [0x80cdb96]
13: akonadiserver() [0x805ff77]
14: akonadiserver() [0x8061be0]
15: akonadiserver() [0x80632a3]
16: akonadiserver() [0x8055dcb]
17: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf5) [0xb6e8c8c5]
18: akonadiserver() [0x80568d2]
]
" 


Test 17:  SUCCESS
--------

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

Test 18:  SUCCESS
--------

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

I hope, someone could help me.

Reproducible: Always




$ cat /proc/version 
Linux version 3.10-2-686-pae (debian-kernel@lists.debian.org) (gcc version 4.7.3 (Debian 4.7.3-6) ) #1 SMP Debian 3.10.7-1 (2013-08-17)
Comment 1 Christian S. 2013-09-11 12:42:11 UTC
Maybe it is relevant that I had this problem before I upgradet my Debian installation: https://bugs.kde.org/show_bug.cgi?id=306805
Comment 2 Daniel Vrátil 2013-09-11 14:51:31 UTC
This appears to be the problem:
 Can't create test file /home/christian/.local/share/akonadi/db_data/christian.lower-test

 can you make sure the directory is writable and there's enough space on your disk?
Comment 3 Christian S. 2013-09-12 11:31:42 UTC
Thanks for your response, Daniel.
I have already searched for a solution for that issue, but read somewhere, that one could ignore that message...

But I am not sure, why it is not able to create that file. I am executing the script with the user which owns the directories... or is it the "mysql" user who must have write perms to that directory? space is no problem.

I'll look at this when I am back from holidays ;)
Comment 4 Daniel Vrátil 2013-12-06 18:14:02 UTC
Hi, can you still reproduce this issue?

I previously missed these MySQL errors from the log:
130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_purge_index_file failed to open register file. 130911 11:50:09 [ERROR] MYSQL_BIN_LOG::open_index_file failed to sync the index file. 130911 11:50:09 [ERROR] Aborting

According to Google, this indeed is ownership/access issue.
Comment 5 Christian S. 2013-12-07 13:33:04 UTC
Hi Daniel. Actually I am not able to test it, because since some time my xserver does not work because of missing fglrx driver...  I'll come back to this issue, when KDE runs again.
Comment 6 Christian S. 2014-02-27 20:34:29 UTC
I got Akonadi and Kmail running again.
I have changed Akonadi to use the sqlite backend and then I started the Kmail2 migration like it is described here: https://wiki.ubuntu.com/OneiricOcelot/Final/Kubuntu/Kmail2

Now it is working again :-)