Bug 1774

Summary: Hard to get rid of Akonadi: Akonadi Configuration not in menus, MCC doesn't list the service
Product: Mageia Reporter: Radu Cristian Fotescu <beranger5ca>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, sfietkonstantin, tukozaki
Version: 1   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: akonadi-kde-4.4.11.1-0.mga1 CVE:
Status comment:
Attachments: ps aux
ps aux | grep akonadi
urpme akonadi
rpm -qa |grep kde

Description Radu Cristian Fotescu 2011-06-12 22:29:45 CEST
Description of problem:

I don't use anything related to Akonadi, and Nepomuk is disabled. However, at some point something started Akonadi, and I couldn't get rid of it easily:

-- The KDE Control Module for Akonadi Configuration is not listed in the menus, nor in Configure Your Desktop, I only found it with KRunner;
-- Madriva Control Center does not list akonadiserver in System -> Manage system services by enabling or disabling them.

Until I disabled Akonadi, I was constantly running unnecessarily:
11 processes akonadi_contacts_resource
and 1 of each of each of the following:
akonadi_control
akonadi_ical_resource
akonadi_maildir_resource
akonadi_maildispatcher_agent
akonadi_nepomuk_contact_feeder
akonadiserver
mysqld


Version-Release number of selected component (if applicable):


How reproducible:

I am not aware of what application enabled Akonadi. I have not used anything that would require it.


Steps to Reproduce:
1.
2.
3.
Comment 1 Radu Cristian Fotescu 2011-06-13 00:57:51 CEST
NOTE: akonadiserver (and the other 17 processes) keep(s) restarting with each KDE session, although I never use KMail/KOrganizer/etc., nor Nepomuk! I am exasperated for not being able to get rid of these unneeded 18 processes!
Comment 2 Lucien XU 2011-06-13 01:30:09 CEST
Note : Akonadi is not a system service. It is a KDE service that is started when KDE starts. Yes, Nepomuk and Akonadi can be greedy for resources, but they are really useful.

But if you don't use them, you might be able to disable them ...
For nepomuk : in systemsettings > Desktop search > Do not enable semantic desktop (but nepomukserver is still here, it does not takes much resource when shutdown)

For akonadi, it is impossible to permanently shut it down. You can write a script that kills it when KDE starts and use start / stop settings in systemsettings to disable it.

CC: (none) => sfietkonstantin

Comment 3 Radu Cristian Fotescu 2011-06-13 01:37:05 CEST
Nepomuk _is_ permanently disabled.

Are you telling me there is no way but to getting used with 18 useless processes?! (I have not checked with other KDE-distros, but this seems outrageous. I thought this is KDE, not Vista.)

Also, no matter this is about KDE services, are they not services too? Why can't MCC manage them? Or "service" has a different meaning in KDE4? (My head is going to explode. I switched to KDE4 just because GNOME3 is the most stupid thing I ever saw, and here's what I got...)
Comment 4 John Balcaen 2011-06-13 04:54:34 CEST
MCC is managing services as services launched by sysvinit or systemd.
Akonadi is a *local* database service used by KDE under a user account.
Actually akonadi is used by default by kadressbook (so every time you're using kadressbook you'll need to have akonadi running, this also means that if you're using kmail To: completion functionnality you'll get a running akonadi.
Akonadi is also used by default in korganizer , & in the clock plasma applet in available in kde.
You can stop akonadi by using akonadictl stop .
The akonadi_nepomuk_contact_feeder is in fact an akonadi agent used to provide info to nepomuk.
You can get ride of this agent (& most of kdepim) by simply removing akonadi package.

CC: (none) => balcaen.john

Comment 5 Radu Cristian Fotescu 2011-06-13 10:03:55 CEST
John, I'm afraid you're wrong.

akonadictl stop, as well as KRunner -> Akonadi Configuration, then stop the service are only _temporary_, hence useless. Akonadi will start with the next KDE session.

I am definitely *not* using any of KOrganizer/KMail/etc, applications!

Why is Akonadi need by the bloody clock?!?!

And no, I cannot remove akonadi -- this will remove half of the KDE packages!
Comment 6 John Balcaen 2011-06-13 12:48:43 CEST
could you past the result of urpme akonadi,because i doubt that it's going to remove half of the KDE package.
You'll get kdepim removed ,but no kdebase, kdebase4-workspace etc etc.
Comment 7 Radu Cristian Fotescu 2011-06-13 12:55:34 CEST
(In reply to comment #6)
> could you past the result of urpme akonadi,because i doubt that it's going to
> remove half of the KDE package.
> You'll get kdepim removed ,but no kdebase, kdebase4-workspace etc etc.

It would also remove akregator, which I badly need.

And this is *idiotic*. Probably akregator starts akonadi, I can't tell. Why the **** does akregator needs akonadi?

Also, suppose I want to have KMail and KOrganizer installed, but I don't want 18 unnecessary processes started _unless_ I run one of these apps.
Comment 8 John Balcaen 2011-06-13 13:23:27 CEST



(In reply to comment #5)
> Why is Akonadi need by the bloody clock?!?!

Because the clock is showing calendar information so it's using korganizer.


(In reply to comment #7)
> (In reply to comment #6)
> > could you past the result of urpme akonadi,because i doubt that it's going to
> > remove half of the KDE package.
> > You'll get kdepim removed ,but no kdebase, kdebase4-workspace etc etc.
> 
> It would also remove akregator, which I badly need.
> 
> And this is *idiotic*. Probably akregator starts akonadi, I can't tell. Why the
> **** does akregator needs akonadi?
Because kdepim4-core requires akonadi , & akregator is requering kdepim4-core.
Maybe we can (as packagers here) provide a more tuned requires adding them on the package which *really* need it currently.
I'll have a look.

 
> Also, suppose I want to have KMail and KOrganizer installed, but I don't want
> 18 unnecessary processes started _unless_ I run one of these apps.
You just said that you do not want kmail before :/ (but indeed for korganizer)
So you can simply go we a « rpm -e --nodeps akonadi akonadi-kde » to remove thoses rpm without dropping all kdepim on the same step.
Comment 9 Radu Cristian Fotescu 2011-06-13 13:35:13 CEST
At the same time, the clock in itself does not start 18 processes, one of which being akonadiserver.

So I'm confident that those 18 processes are not needed... until they're really needed.

(I keep KMail and KOrganizer installed in case I'll need them.)

(No, I won't be using rpm -e --nodeps, I don't like to break the rpm database.)

Right now, in a new KDE session and with akregator started, I do _not_ have those 18 processes! What is starting them?! (I'm overwhelmed by KDE4, it's too complex and full of concepts I don't need, such as semantic desktop, file indexing, etc.)

Thanks for having a look into it!
Comment 10 John Balcaen 2011-06-13 14:05:12 CEST
(In reply to comment #9)
> At the same time, the clock in itself does not start 18 processes, one of which
> being akonadiserver.

Well, the fact is that i don't understand when you switch from 11 processes to 18 processes.
We try to lower as much as possible the use of akonadi by default for mageia 1
for example on live cd we're using the mysql-global-mobile.conf instead of the default mysql conf,
we disable some default clock behaviour to not show akonadi events etc etc :)

> So I'm confident that those 18 processes are not needed... until they're really
> needed.
Well since the start i'm not able to reproduce your issue in fact i've only got 7 akonadi related process here
(& i'm *explicitly* using akonadi)

> (I keep KMail and KOrganizer installed in case I'll need them.)

I can't use kde without thoses apps personnaly.
> 
> (No, I won't be using rpm -e --nodeps, I don't like to break the rpm database.)

> Right now, in a new KDE session and with akregator started, I do _not_ have
> those 18 processes! What is starting them?! (I'm overwhelmed by KDE4, it's too
> complex and full of concepts I don't need, such as semantic desktop, file
> indexing, etc.)

Semantic desktop is disable by default on mageia.

> Thanks for having a look into it!
Np
Comment 11 Radu Cristian Fotescu 2011-06-13 14:14:29 CEST
(In reply to comment #10)
> Well, the fact is that i don't understand when you switch 
> from 11 processes to 18 processes.

I do not switch from anything to anything. 

«11 processes akonadi_contacts_resource
and 1 of each of each of the following:
akonadi_control
akonadi_ical_resource
akonadi_maildir_resource
akonadi_maildispatcher_agent
akonadi_nepomuk_contact_feeder
akonadiserver
mysqld»

This makes 18.

> We try to lower as much as possible the use of akonadi by default 
> for mageia 1 

Good.

> Well since the start i'm not able to reproduce your issue in fact 
> i've only got> 7 akonadi related process here
> (& i'm *explicitly* using akonadi)

Bad news. If no one encounters the same problem I suppose the bug with end as invalid...

> Semantic desktop is disable by default on mageia.

Indeed.

Should I find out what starts akonadi, I'll add a new comment.
Comment 12 John Balcaen 2011-06-13 14:20:23 CEST
(In reply to comment #11)
> (In reply to comment #10)
> > Well, the fact is that i don't understand when you switch 
> > from 11 processes to 18 processes.
> 
> I do not switch from anything to anything. 
> 
> «11 processes akonadi_contacts_resource
> and 1 of each of each of the following:
> akonadi_control
> akonadi_ical_resource
> akonadi_maildir_resource
> akonadi_maildispatcher_agent
> akonadi_nepomuk_contact_feeder
> akonadiserver
> mysqld»
> 
> This makes 18.

Oups i guess i misread, sorry.

> > Well since the start i'm not able to reproduce your issue in fact 
> > i've only got> 7 akonadi related process here
> > (& i'm *explicitly* using akonadi)
> 
> Bad news. If no one encounters the same problem I suppose the bug with end as
> invalid...

Well there's a lot of bugs i'm not able to reproduce but others users can so it's not invalid because *i* can't reproduce it :)

> Should I find out what starts akonadi, I'll add a new comment.

~/.xsession-errors can eventually be useful.
Comment 13 Radu Cristian Fotescu 2011-06-13 14:26:28 CEST
> ~/.xsession-errors can eventually be useful.

Oh, all I can see as possibly relevant is a bunch of identical errors that _might_ explain why I do _not_ have those 18 processes:


ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
search paths:  ("/usr/bin", "/bin", "/usr/local/bin", "/usr/X11R6/bin/", "/usr/games", "/usr/lib/qt4/bin", "/home/radu/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" 
Failed to use database "akonadi" 
Database error: "Can't connect to local MySQL server through socket '/home/radu/.local/share/akonadi/socket-odie/mysql.socket' (2) QMYSQL: Unable to connect" 
Trying to create database now... 
QSqlDatabasePrivate::removeDatabase: connection 'initConnection' is still in use, all queries will cease to work.
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/radu/.local/share/akonadi/socket-odie/mysql.socket' (2)"
Unable to open database "Can't connect to local MySQL server through socket '/home/radu/.local/share/akonadi/socket-odie/mysql.socket' (2) QMYSQL: Unable to connect"
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x80864f5]
1: akonadiserver() [0x8086a8c]
2: [0xffffe400]
3: [0xffffe424]
4: /lib/i686/libc.so.6(gsignal+0x51) [0xb6fee181]
5: /lib/i686/libc.so.6(abort+0x17e) [0xb6fefcae]
6: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x8a) [0xb76259aa]
7: [(nil)]
]
"

It looks like akonadiserver is unable to start.
Comment 14 John Balcaen 2011-06-14 19:28:32 CEST
Hum the crash is quite strange.
Since akonadi is supposed to start the mysql server & create the database without problem.
It's under a i586 arch ?
Which process are running ?
Comment 15 Radu Cristian Fotescu 2011-06-14 19:43:26 CEST
Created attachment 566 [details]
ps aux
Comment 16 Radu Cristian Fotescu 2011-06-14 19:43:50 CEST
Yes, i586. Processes attached.
Comment 17 John Balcaen 2011-06-16 22:28:06 CEST
Hum strange.
Anyway now on cauldron only apps which really need akonadi are requiring for now akonadi-kde (aka kadressbook & korganizer).
Comment 18 tu kozaki 2011-09-05 21:55:23 CEST
Created attachment 759 [details]
ps aux | grep akonadi
Comment 19 tu kozaki 2011-09-05 21:56:03 CEST
Hi, joining Radu Cristian Fotescu's observation and efforts to understand/get rid of some of akonadi processes: Although I use no Kmail nor Korganizer, and start Kopete or Knotes once a week, got 39 akonadi processes runnin!
Wich might explain at least partly why my KDE4 session takes ages to start (about the same time that the full Mageia system takes from GRUB to login, which is fast btw).
This is totaly KDE4's behaviour, correct? So we might share informations on a forum's dedicated post, as I couldn't find one atm.

Attaching  3 files:
- ps aux|grep akonadi
- urpme akonadi
- rpm -qa | grep kde

CC: (none) => tukozaki

Comment 20 tu kozaki 2011-09-05 21:56:52 CEST
Created attachment 760 [details]
urpme akonadi
Comment 21 tu kozaki 2011-09-05 21:57:31 CEST
Created attachment 761 [details]
rpm -qa |grep kde
Comment 22 John Balcaen 2011-09-05 23:03:59 CEST
I'm sorry but attachement 760 is not useful (see comment #8) and i still don't get why you're posting the list of rpm with kde in their name.
Comment 23 John Balcaen 2011-11-14 02:32:52 CET
Closing as wontfix for Mageia 1 :
-> mcc is not in charge of akonadi at all
-> the requires for akonadi is changed only in cauldron
-> akonadi is going to be more & more present in KDE in all case (like nepomuk)

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX