[Kde-pim] a timing problem akonadiserver <--> client

Kevin Krammer krammer at kde.org
Mon Aug 5 14:02:37 BST 2013


On Monday, 2013-08-05, Guy Maurel wrote:
> Hello!
> 
> I began a mail-thread on 2013-06-14 19:53 with the subject: "Once a month"
> 
> I can now show: it is not a filter problem.
> It is a timing problem akonadiserver <--> client:
> 
> I reduce my configuration to start manually akonadi_mailfilter_agent.
> I modify the sources a little bit to get more informations (using kDebug
> and akError). I show here some extract from the files kdebug.dbg and
> akonadiserver.error.
> 
> Starting akonadi_mailfilter_agent:
> Mon Aug  5 14:17:01 CEST 2013
> 14:17:07.500 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::SessionPrivate::init: "akonadi_mailfilter_agent"
> 
> As there is no akonadiserver running, it will be startet:
> 14:17:07.502 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::SessionPrivate::init: before ServerManager::start()
> 14:17:07.503 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::ServerManager::start: executing akonadi_control
> 14:17:07.509 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::SessionPrivate::init: after ServerManager::start()
> 
> The system needs some time to reached the code where a new watcher is
> present: 14:17:09.445 before new QDBusServiceWatcher(
> AkDBus::serviceName(AkDBus::Control)
> 14:17:09.445 after new QDBusServiceWatcher(
> AkDBus::serviceName(AkDBus::Control)
> 
> 
> BUT before this time, there where already some request:
> 14:17:07.517 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::AgentManagerPrivate::createDBusInterface: gM+++++ mManager=
> OrgFreedesktopAkonadiAgentManagerInterface(0x25da280)
> 14:17:07.517 akonadi_mailfilter_agent(3434)/libakonadi
> Akonadi::AgentManagerPrivate::createDBusInterface: gM+++++ AgentManager
> failed to get a valid AgentManager DBus interface.
> 14:17:07.518 akonadi_mailfilter_agent(3434)/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"
> 
> Using a standard configuration, I can see that more clients (about the
> first 4) get the error message. After the time is OK, the last clients are
> OK.

Great analysis, thanks!

> Should it be a fix to wait at
>   Akonadi::AgentManagerPrivate::createDBusInterface
> until the akonadiserver is really ready?, with a loop?

Since both server and agents are started by akonadi_control, it should 
probably wait with agent startup until it has confirmed server start.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130805/4eda0327/attachment.sig>
-------------- next part --------------
_______________________________________________
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