Bug 323058

Summary: kmail fails on startup with message :could not create collection inbox"
Product: [Applications] kmail2 Reporter: Jon <jseidel>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: critical CC: Stephan
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jon 2013-07-31 18:15:30 UTC
Upgraded from Kubuntu 10.04 to 12.04. 
Initial run failed the migration; error message said to rerun kmail-migrate but refused to run because "already run". 
Now when I try to start kmail I get the error message "could not create collection inbox resourceid: 2" and it shuts down immediately. 
Muon shows all software up-to-date.
Searched; no apparent relevant bugs.
Comment 1 Jon 2013-08-01 13:06:03 UTC
Ran sudo kmail-migrate --interactive; got the following. I checked and the file 
     /home/jseidel/.local/share/akonadi/mysql.conf 
does exist and has content.
==============================================
Error: "/var/tmp/kdecache-jseidel" is owned by uid 1000 instead of uid 0.
kmail-migrator(19001)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name" 
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "/usr/bin/mysql_install_db" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/jseidel/.local/share/akonadi/mysql.conf", "--datadir=/home/jseidel/.local/share/akonadi/db_data/", "--socket=/home/jseidel/.local/share/akonadi/socket-EDP15/mysql.socket")
stdout: ""
stderr: "Could not open required defaults file: /home/jseidel/.local/share/akonadi/mysql.conf
Fatal error in defaults handling. Program aborted
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x419875]
1: akonadiserver() [0x419b3c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fa53859b4a0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fa53859b425]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fa53859eb8b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7fa53a06950b]
6: akonadiserver() [0x41bc82]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7fa53a105caf]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x119272) [0x7fa53a111272]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7fa53a11a109]
10: akonadiserver() [0x412e96]
11: akonadiserver() [0x4a0d33]
12: akonadiserver() [0x41ca21]
13: akonadiserver() [0x41e1e5]
14: akonadiserver() [0x41f8e7]
15: akonadiserver() [0x4123f2]
16: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fa53858676d]
17: akonadiserver() [0x412d21]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "/usr/bin/mysql_install_db" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/jseidel/.local/share/akonadi/mysql.conf", "--datadir=/home/jseidel/.local/share/akonadi/db_data/", "--socket=/home/jseidel/.local/share/akonadi/socket-EDP15/mysql.socket")
stdout: ""
stderr: "Could not open required defaults file: /home/jseidel/.local/share/akonadi/mysql.conf
Fatal error in defaults handling. Program aborted
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x419875]
1: akonadiserver() [0x419b3c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fd3cf52e4a0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fd3cf52e425]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fd3cf531b8b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7fd3d0ffc50b]
6: akonadiserver() [0x41bc82]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7fd3d1098caf]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x119272) [0x7fd3d10a4272]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7fd3d10ad109]
10: akonadiserver() [0x412e96]
11: akonadiserver() [0x4a0d33]
12: akonadiserver() [0x41ca21]
13: akonadiserver() [0x41e1e5]
14: akonadiserver() [0x41f8e7]
15: akonadiserver() [0x4123f2]
16: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fd3cf51976d]
17: akonadiserver() [0x412d21]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "/usr/bin/mysql_install_db" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/jseidel/.local/share/akonadi/mysql.conf", "--datadir=/home/jseidel/.local/share/akonadi/db_data/", "--socket=/home/jseidel/.local/share/akonadi/socket-EDP15/mysql.socket")
stdout: ""
stderr: "Could not open required defaults file: /home/jseidel/.local/share/akonadi/mysql.conf
Fatal error in defaults handling. Program aborted
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x419875]
1: akonadiserver() [0x419b3c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f69e186e4a0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f69e186e425]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f69e1871b8b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7f69e333c50b]
6: akonadiserver() [0x41bc82]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7f69e33d8caf]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x119272) [0x7f69e33e4272]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7f69e33ed109]
10: akonadiserver() [0x412e96]
11: akonadiserver() [0x4a0d33]
12: akonadiserver() [0x41ca21]
13: akonadiserver() [0x41e1e5]
14: akonadiserver() [0x41f8e7]
15: akonadiserver() [0x4123f2]
16: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f69e185976d]
17: akonadiserver() [0x412d21]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin") 
Found mysql_install_db:  "/usr/bin/mysql_install_db" 
Found mysqlcheck:  "/usr/bin/mysqlcheck" 
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld-akonadi"
arguments: ("--defaults-file=/home/jseidel/.local/share/akonadi/mysql.conf", "--datadir=/home/jseidel/.local/share/akonadi/db_data/", "--socket=/home/jseidel/.local/share/akonadi/socket-EDP15/mysql.socket")
stdout: ""
stderr: "Could not open required defaults file: /home/jseidel/.local/share/akonadi/mysql.conf
Fatal error in defaults handling. Program aborted
"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver() [0x419875]
1: akonadiserver() [0x419b3c]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fbe6fc814a0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fbe6fc81425]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fbe6fc84b8b]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x11b) [0x7fbe7174f50b]
6: akonadiserver() [0x41bc82]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xaf) [0x7fbe717ebcaf]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x119272) [0x7fbe717f7272]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x39) [0x7fbe71800109]
10: akonadiserver() [0x412e96]
11: akonadiserver() [0x4a0d33]
12: akonadiserver() [0x41ca21]
13: akonadiserver() [0x41e1e5]
14: akonadiserver() [0x41f8e7]
15: akonadiserver() [0x4123f2]
16: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fbe6fc6c76d]
17: akonadiserver() [0x412d21]
]
"
ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
"akonadiserver" crashed too often and will not be restarted! 
kmail-migrator(19001)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi! 
Error: "/tmp/kde-jseidel" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-jseidel" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-jseidel" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-jseidel" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-jseidel" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-jseidel" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-jseidel" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-jseidel" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-jseidel" is owned by uid 1000 instead of uid 0.
Comment 2 Denis Kurz 2016-09-24 18:10:34 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Denis Kurz 2017-01-07 22:49:31 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.