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

KMail does not work - SOMETIMES

Tags: None
(comma "," separated)
django013
Registered Member
Posts
2
Karma
0

KMail does not work - SOMETIMES

Mon Mar 03, 2014 5:46 am
Hello,

I'm running kde on debian stable and daily updates and one of the last updates caused some misbehaviour of kmail.
As I use kmail for many years without major issues, I did not care much about configuration/updates ...

Now it happens, that 3 out of 4 reboots kmail is blocked by a shaded rectangle telling me, that akonadi does not work.
I really don't know much about kde, kmail and its internals - I'm just a kde user.
So I tried a fresh installation of the whole system, but after mounting my (existing) home directory, its behaviour is as before.
If kmail would fail on every reboot, I would state, that my system is broken. But if it fails only 3 out of 4 reboots ...
... there may be some timing issues, I don't know, how to get rid of.

Looking at the log of kmail, test 10 is the first that fails:
Code: Select all
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 14 may be interesting too (don't know, whether they are related):
Code: Select all
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.


Checking akonadi as a root user results in these outputs:
Code: Select all
akonadictl status
D-Bus session bus is not available!
"[
0: akonadictl() [0x412bc4]
1: akonadictl() [0x412f01]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7fa21a0d94f0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fa21a0d9475]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7fa21a0dc6f0]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x122) [0x7fa21ae5b722]
6: akonadictl() [0x41203b]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb4) [0x7fa21aef5944]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11c5ef) [0x7fa21af005ef]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3b) [0x7fa21af08beb]
10: akonadictl() [0x40b5ef]
11: akonadictl() [0x406d38]
12: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fa21a0c5ead]
13: akonadictl() [0x4088f1]


Doing the same as desktop user:
Code: Select all
akonadictl status
Akonadi Control: stopped
Akonadi Server: stopped
Akonadi Server Search Support: not available


It says - akonadi server is stopped.
... so I tried to start it:
Code: Select all
akonadictl start
Starting Akonadi Server...
Unable to register service as "org.freedesktop.Akonadi.Control.lock" Maybe it's already running?
"[
0: /usr/bin/akonadi_control() [0x42f654]
1: /usr/bin/akonadi_control() [0x42f991]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7fab2ee6b4f0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fab2ee6b475]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7fab2ee6e6f0]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x122) [0x7fab2fbed722]
6: /usr/bin/akonadi_control() [0x43183b]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb4) [0x7fab2fc87944]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11c5ef) [0x7fab2fc925ef]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3b) [0x7fab2fc9abeb]
10: /usr/bin/akonadi_control() [0x40d35f]
11: /usr/bin/akonadi_control() [0x40998b]
12: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7fab2ee57ead]
13: /usr/bin/akonadi_control() [0x409c61]
]
"
Error: akonadi_control was started but didn't register at D-Bus session bus.
Make sure your system is set up correctly!


Running qdbus as root fails like akonadictl:
Code: Select all
qdbus                                                                                                                                     
Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


... but running qdbus as desktop user shows these lines:
Code: Select all
qdbus
:1.1
 org.kde.klauncher
:1.12
 org.kde.ksmserver
 org.kde.ksmserver-4586
:1.13
 org.kde.kwin
 org.kde.kwin-4713
:1.14
 org.kde.knotify
:1.16
 org.freedesktop.Notifications
 org.kde.DeviceNotifications
 org.kde.StatusNotifierHost-4731
 org.kde.plasma-desktop
:1.18
 org.kde.JobViewServer
 org.kde.kuiserver
:1.2
 org.freedesktop.PowerManagement
 org.freedesktop.PowerManagement.Inhibit
 org.kde.Solid.PowerManagement
 org.kde.Solid.PowerManagement.PolicyAgent
 org.kde.StatusNotifierWatcher
 org.kde.kded
 org.kde.keyboard
 org.kde.networkmanagement
:1.20
 org.freedesktop.Akonadi.Control.lock
:1.21
:1.22
 org.kde.kaccess
:1.25
 org.kde.nepomukcontroller
:1.27
 org.PulseAudio1
 org.pulseaudio.Server
:1.28
 org.kde.StatusNotifierItem-4782-1
:1.29
 org.freedesktop.ScreenSaver
 org.kde.KResourcesManager
 org.kde.krunner
 org.kde.screensaver
:1.31
 org.kde.kmix
:1.33
 org.kde.konsole
:1.35
 org.krusader
 org.krusader.krusader-4797
:1.36
 org.kde.kaddressbook
 org.kde.kmail
 org.kde.kmail.groupware
 org.kde.kontact
 org.kde.korganizer
 org.kde.pim.TransportManager
:1.38
 org.kde.StatusNotifierItem-4793-1
:1.39
:1.40
 org.gnome.GConf
:1.41
 org.kde.kwalletmanager
:1.43
 org.kde.StatusNotifierItem-5567-1
:1.44
 org.kde.Polkit1AuthAgent
:1.45
 org.kde.klipper
:1.48
 org.kde.korgac
:1.5
 org.kde.kglobalaccel
:1.50
:1.53
:1.54
 org.gtk.vfs.Daemon
:1.55
 org.kde.StatusNotifierItem-5589-1
:1.56
 org.kde.StatusNotifierItem-5595-1
:1.59
:1.60
:1.63
:1.66
:1.67
:1.7
 org.kde.kwalletd
:1.9
 org.kde.kactivitymanagerd
org.freedesktop.DBus


My kde desktop is configured to restore a saved session, which consists of 4 virtual screens and kmail is an opened app on one of these screens. Furthermore the saved session starts krusader and about 15 konsoles

I don't know, how to get rid of the problem.
So if anybody could shine me a light ...

best regards

Reinhard
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KMail does not work - SOMETIMES

Mon Mar 03, 2014 6:48 am
You can't use akonadictl as root because it needs a local DBus session, which is initiated by your user. When you see these errors in KMail, try, as regular user, to issue "akonadictl restart" in the terminal and report here any output (if too long, use a pastebin service).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
django013
Registered Member
Posts
2
Karma
0

Re: KMail does not work - SOMETIMES

Mon Mar 03, 2014 6:43 pm
Hello einar,

thanks for your attention!

When I powered on my box, it came up with kmail locked.
So I followed your advice ...

Code: Select all
$ akonadictl restart
Akonadi is not running.

followed by a
Code: Select all
$ akonadictl start
Starting Akonadi Server...
Unable to register service as "org.freedesktop.Akonadi.Control.lock" Maybe it's already running?
"[
0: /usr/bin/akonadi_control() [0x42f654]
1: /usr/bin/akonadi_control() [0x42f991]
2: /lib/x86_64-linux-gnu/libc.so.6(+0x324f0) [0x7f45fd0134f0]
3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f45fd013475]
4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7f45fd0166f0]
5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x122) [0x7f45fdd95722]
6: /usr/bin/akonadi_control() [0x43183b]
7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb4) [0x7f45fde2f944]
8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11c5ef) [0x7f45fde3a5ef]
9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3b) [0x7f45fde42beb]
10: /usr/bin/akonadi_control() [0x40d35f]
11: /usr/bin/akonadi_control() [0x40998b]
12: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f45fcfffead]
13: /usr/bin/akonadi_control() [0x409c61]
]
"
Error: akonadi_control was started but didn't register at D-Bus session bus.
Make sure your system is set up correctly!


So I did, what seems to work - sometimes:
Code: Select all
sudo /etc/init.d/kdm stop

and then login on console as root and issue a
Code: Select all
/etc/init.d/kdm start

After login to kdm, kmail works fine :)

best regards

Reinhard


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]