[Kde-pim] configuring Akonadi server

Patrick Ohly patrick.ohly at gmx.de
Wed Mar 12 13:41:46 GMT 2014


On Wed, 2014-03-12 at 14:26 +0100, Patrick Ohly wrote:
> On Tue, 2014-03-11 at 16:36 +0100, Daniel Vrátil wrote:
> > On Tuesday 11 of March 2014 16:08:36 Kevin Krammer wrote:
> > > Hi,
> > > 
> > > On Tuesday, 2014-03-11, 15:44:52, Patrick Ohly wrote:
> > > > Hello!
> > > > 
> > > > I am running "akonadictl start" in a D-Bus session without X. This
> > > > causes several of the agents to fail, for example:
> > > > 
> > > > akonadi_agent_launcher: cannot connect to X server
> > > > 
> > > > The relevant ones for my purposes (local calendar and address book) seem
> > > > to work fine, but the error messages get annoying.
> > > > 
> > > > How can I disable all attempts to start agents that I don't need? I
> > > > looked for documentation of akonadiserverrc but did not find anything at
> > > > first glance.
> > > 
> > > I think agent start is controlled by agentsrc.
> > > And possibly by the "Autostart" capability in the agent's .desktop file
> > 
> > All "Autostart" agents are automatically started on every Akonadi start, 
> > regardless agentsrc. However you can set AKONADI_DISABLE_AGENT_AUTOSTART=1 env 
> > variable, then only agents listed in agentsrc will be started. So you first 
> > need to remove ~/.config/akonadi/agentsrc (to not have all agents from 
> > previous Akonadi runs started), then start Akonadi with the env variable set 
> > and there should be no agents running. 
> 
> That helps to get "akonadictl start" working without error messages.
> However, later creating a Akonadi::CollectionFetchJob still causes some
> of the same error messages - less of them, but still some:
> 
> akonadi_agent_launcher: cannot connect to X server 
> ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned
> with exit code 1 (Unknown error)
> akonadi_agent_launcher: cannot connect to X server 
> ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned
> with exit code 1 (Unknown error)
> akonadi_agent_launcher: cannot connect to X server 
> ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned
> with exit code 1 (Unknown error)
> akonadi_agent_launcher: cannot connect to X server 
> ProcessControl: Application '/usr/bin/akonadi_agent_launcher' returned
> with exit code 1 (Unknown error)
> "/usr/bin/akonadi_agent_launcher" crashed too often and will not be
> restarted! 
> 
> It is /usr/bin/akonadi_control which
> forks/execs /usr/bin/akonadi_agent_launcher (verified with strace) and
> it has AKONADI_DISABLE_AGENT_AUTOSTART set.
> 
> Any idea how to suppress that?

In addition, my own process
launches /usr/share/kde4/apps/akonadi/firstrun/defaultcalendar, /usr/share/kde4/apps/akonadi/firstrun/defaultnotebook and /usr/bin/kres-migrator.

This all fails.

Bye, Patrick

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list