[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

akonadi failing to connect to database



I was trying to get kmail working since my upgrade to 4.10. I never got it working in 4.8.4 either, with similar errors. I looked online, but akonadi troubleshooting tips are all over the board. I found some for 4.3, and on the KDE wiki has one troubleshooting tip for "Can't read any details of some messages or big delays to read it" so I thought I would ask here.

When I opened kmail, it tried to transition to 4.10, and the first step was to start akonadi. It failed after a few minutes. Tests 1, 2, and 6 passed, tests 3, 4, and 5 (the mysql stuff) were untested.

Test 7:  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 8:  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 9:  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 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'. 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 12:  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="">
File '/home/storm/.local/share/akonadi/akonadiserver.error' could not be opened

Test 13:  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="">
File '/home/storm/.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.


Now in the error log, I see lines like

Database error: Cannot open database.
  Last driver error: "QMYSQL: Unable to connect"
  Last database error: "Can't connect to local MySQL server through socket '/home/storm/.local/share/akonadi/socket-defiant/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/home/storm/.local/share/akonadi/socket-defiant/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver() [0x418114]
1: akonadiserver() [0x418541]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x35260) [0x7f8236c4f260]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f8236c4f1e5]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f8236c52398]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x102) [0x7f82386f8912]
6: akonadiserver() [0x41a3eb]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0) [0x7f8238793190]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11858d) [0x7f82387a058d]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x33) [0x7f82387a9173]
10: akonadiserver() [0x41d2cd]
11: akonadiserver() [0x41e487]
12: akonadiserver() [0x411f43]
13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f8236c3b995]
14: akonadiserver() [0x4128d1]
]

Is there a config file that I should get rid of and just let it configure from defaults? I tried dpkg-reconfigure akonadi-backend-sqlite akonadi-server akonadiconsole but it had the same behavior after doing so.

Thanks,
--b

Reply to: