GNU bug report logs - #41207
accountsservice daemon lacks dbus interfaces

Previous Next

Package: guix;

Reported by: L p R n d n <guix <at> lprndn.info>

Date: Tue, 12 May 2020 12:05:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41207 in the body.
You can then email your comments to 41207 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Tue, 12 May 2020 12:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to L p R n d n <guix <at> lprndn.info>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 12 May 2020 12:05:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: L  p R n  d n    <guix <at> lprndn.info>
To: bug-guix <at> gnu.org
Subject: accountsservice daemon lacks dbus interfaces
Date: Tue, 12 May 2020 14:04:20 +0200
[Message part 1 (text/plain, inline)]
Hello,

The accountsservice service hasn't access to dbus' interfaces throwing
an error when they're needed.The problem, at least, appears with LightDM.
The error looks like:

WARNING: Error updating user /org/freedesktop/Accounts/User1000:
GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface
"org.freedesktop.DisplayManager.AccountsService"

For information, it already occured[0] and was resolved[1][2] in NixOS.

After testing, simply wrapping the accountsservice package with relevant
XDG_DATA_DIRS directories as done in the attached patch resolves the
issue. However, there might be a proper solution I'm not aware of.
Also the patch used in [2] doesn't seem to be needed in Guix.

Have a nice day,

L  p R n  d n

[0]: https://github.com/NixOS/nixpkgs/issues/45059
[1]: https://github.com/NixOS/nixpkgs/pull/45107
[2]: https://github.com/NixOS/nixpkgs/pull/72400

[0001-gnu-accountsservice-Wrap-program.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Sun, 31 May 2020 22:02:01 GMT) Full text and rfc822 format available.

Message #8 received at 41207 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: L p R n d n <guix <at> lprndn.info>
Cc: 41207 <at> debbugs.gnu.org
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Mon, 01 Jun 2020 00:01:17 +0200
Hello,

L  p R n  d n    <guix <at> lprndn.info> skribis:

> The accountsservice service hasn't access to dbus' interfaces throwing
> an error when they're needed.The problem, at least, appears with LightDM.
> The error looks like:
>
> WARNING: Error updating user /org/freedesktop/Accounts/User1000:
> GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface
> "org.freedesktop.DisplayManager.AccountsService"

Apparently this error message comes from lightdm, so the issue is that
lightdm doesn’t find the ‘org.freedesktop.Accounts.service’, right?

How is lightdm started?  I wonder if there’s something to be done in the
service definition instead.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Tue, 02 Jun 2020 14:47:01 GMT) Full text and rfc822 format available.

Message #11 received at 41207 <at> debbugs.gnu.org (full text, mbox):

From: L  p R n  d n    <guix <at> lprndn.info>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 41207 <at> debbugs.gnu.org
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Tue, 02 Jun 2020 16:46:28 +0200
Hello,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hello,
>
> L  p R n  d n    <guix <at> lprndn.info> skribis:
>
>> The accountsservice service hasn't access to dbus' interfaces throwing
>> an error when they're needed.The problem, at least, appears with LightDM.
>> The error looks like:
>>
>> WARNING: Error updating user /org/freedesktop/Accounts/User1000:
>> GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface
>> "org.freedesktop.DisplayManager.AccountsService"
>
> Apparently this error message comes from lightdm, so the issue is that
> lightdm doesn’t find the ‘org.freedesktop.Accounts.service’, right?

Not exactly, my understanding is that *accountsservice* doesn't find
'org.freedesktop.Accounts.service' which is provided (and asked) by
lightdm. (I think the error comes from accountsservice)

> How is lightdm started?  I wonder if there’s something to be done in the
> service definition instead.
>
> Thanks,
> Ludo’.

Have a nice day,

L  p R n  d n




Information forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Wed, 03 Jun 2020 09:40:02 GMT) Full text and rfc822 format available.

Message #14 received at 41207 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: L p R n d n <guix <at> lprndn.info>
Cc: 41207 <at> debbugs.gnu.org
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Wed, 03 Jun 2020 11:39:17 +0200
Hi,

L  p R n  d n    <guix <at> lprndn.info> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hello,
>>
>> L  p R n  d n    <guix <at> lprndn.info> skribis:
>>
>>> The accountsservice service hasn't access to dbus' interfaces throwing
>>> an error when they're needed.The problem, at least, appears with LightDM.
>>> The error looks like:
>>>
>>> WARNING: Error updating user /org/freedesktop/Accounts/User1000:
>>> GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface
>>> "org.freedesktop.DisplayManager.AccountsService"
>>
>> Apparently this error message comes from lightdm, so the issue is that
>> lightdm doesn’t find the ‘org.freedesktop.Accounts.service’, right?
>
> Not exactly, my understanding is that *accountsservice* doesn't find
> 'org.freedesktop.Accounts.service' which is provided (and asked) by
> lightdm. (I think the error comes from accountsservice)

But see:

--8<---------------cut here---------------start------------->8---
$ (cd /tmp; tar xf $(guix build -S lightdm))
$ grep -r "Error updating user" /tmp/lightdm-1.30.0/
/tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
/tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
$ (cd /tmp; tar xf $(guix build -S accountsservice))
$ find /tmp/accountsservice-0.6.50/ -name org.freedesktop\*.service.in
/tmp/accountsservice-0.6.50/data/org.freedesktop.Accounts.service.in
$ find $(guix build accountsservice) -name org.freedesktop\*.service
/gnu/store/l9qyf0brhhq7mwcsyhjsh7k0d3ri3ay2-accountsservice-0.6.50/share/dbus-1/system-services/org.freedesktop.Accounts.service
--8<---------------cut here---------------end--------------->8---

That’s why I think it’s lightdm (or dbus-daemon?) that fails to find the
.service file.

‘accountsservice-service-type’ extends dbus, such that we have
/etc/dbus-1/system-services/org.freedesktop.Accounts.service.  Do you
see this as well?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Wed, 03 Jun 2020 12:39:01 GMT) Full text and rfc822 format available.

Message #17 received at 41207 <at> debbugs.gnu.org (full text, mbox):

From: L  p R n  d n    <guix <at> lprndn.info>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 41207 <at> debbugs.gnu.org
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Wed, 03 Jun 2020 14:37:50 +0200
Hello,

Ludovic Courtès <ludo <at> gnu.org> writes:

>>> L  p R n  d n    <guix <at> lprndn.info> skribis:
[...]
>> Not exactly, my understanding is that *accountsservice* doesn't find
>> 'org.freedesktop.Accounts.service' which is provided (and asked) by
>> lightdm. (I think the error comes from accountsservice)
>
> But see:
>
> $ (cd /tmp; tar xf $(guix build -S lightdm))
> $ grep -r "Error updating user" /tmp/lightdm-1.30.0/
> /tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
> /tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
> $ (cd /tmp; tar xf $(guix build -S accountsservice))
> $ find /tmp/accountsservice-0.6.50/ -name org.freedesktop\*.service.in
> /tmp/accountsservice-0.6.50/data/org.freedesktop.Accounts.service.in
> $ find $(guix build accountsservice) -name org.freedesktop\*.service
> /gnu/store/l9qyf0brhhq7mwcsyhjsh7k0d3ri3ay2-accountsservice-0.6.50/share/dbus-1/system-services/org.freedesktop.Accounts.service
>
> That’s why I think it’s lightdm (or dbus-daemon?) that fails to find the
> .service file.
>
> ‘accountsservice-service-type’ extends dbus, such that we have
> /etc/dbus-1/system-services/org.freedesktop.Accounts.service.  Do you
> see this as well?

You're right! ;) And probably a dbus-daemon problem from what I
understand. But I really don't know what I'm talking about here...
However, just to clarify, I think it's not that it's not finding
dbus-1/system-services/org.freedesktop.Accounts.service but
dbus-1/interfaces/org.freedesktop.Accounts(.Users?).xml. In that case,
using #:env-variable for the dbus service might be a possibility.
Really, I have quite a lot of files in
/run/current-system/profile/share/dbus-1/interfaces but I don't know what are
their purpose... :/

> Thanks,
> Ludo’.

Have a nice day,

L  p R n  d n




Information forwarded to bug-guix <at> gnu.org:
bug#41207; Package guix. (Thu, 11 Jun 2020 10:28:02 GMT) Full text and rfc822 format available.

Message #20 received at 41207 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: L p R n d n <guix <at> lprndn.info>
Cc: 41207 <at> debbugs.gnu.org
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Thu, 11 Jun 2020 12:27:17 +0200
Hi,

L  p R n  d n    <guix <at> lprndn.info> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>>>> L  p R n  d n    <guix <at> lprndn.info> skribis:
> [...]
>>> Not exactly, my understanding is that *accountsservice* doesn't find
>>> 'org.freedesktop.Accounts.service' which is provided (and asked) by
>>> lightdm. (I think the error comes from accountsservice)
>>
>> But see:
>>
>> $ (cd /tmp; tar xf $(guix build -S lightdm))
>> $ grep -r "Error updating user" /tmp/lightdm-1.30.0/
>> /tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
>> /tmp/lightdm-1.30.0/common/user-list.c:        g_warning ("Error updating user %s: %s", priv->path, error->message);
>> $ (cd /tmp; tar xf $(guix build -S accountsservice))
>> $ find /tmp/accountsservice-0.6.50/ -name org.freedesktop\*.service.in
>> /tmp/accountsservice-0.6.50/data/org.freedesktop.Accounts.service.in
>> $ find $(guix build accountsservice) -name org.freedesktop\*.service
>> /gnu/store/l9qyf0brhhq7mwcsyhjsh7k0d3ri3ay2-accountsservice-0.6.50/share/dbus-1/system-services/org.freedesktop.Accounts.service
>>
>> That’s why I think it’s lightdm (or dbus-daemon?) that fails to find the
>> .service file.
>>
>> ‘accountsservice-service-type’ extends dbus, such that we have
>> /etc/dbus-1/system-services/org.freedesktop.Accounts.service.  Do you
>> see this as well?
>
> You're right! ;) And probably a dbus-daemon problem from what I
> understand. But I really don't know what I'm talking about here...
> However, just to clarify, I think it's not that it's not finding
> dbus-1/system-services/org.freedesktop.Accounts.service but
> dbus-1/interfaces/org.freedesktop.Accounts(.Users?).xml. In that case,
> using #:env-variable for the dbus service might be a possibility.
> Really, I have quite a lot of files in
> /run/current-system/profile/share/dbus-1/interfaces but I don't know what are
> their purpose... :/

I think we’d need to look at the lightdm service to further debug this.

It’s not upstream yet, right?

Thanks,
Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sun, 30 Jul 2023 13:23:01 GMT) Full text and rfc822 format available.

Notification sent to L p R n d n <guix <at> lprndn.info>:
bug acknowledged by developer. (Sun, 30 Jul 2023 13:23:01 GMT) Full text and rfc822 format available.

Message #25 received at 41207-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 41207-done <at> debbugs.gnu.org, L p R n d n <guix <at> lprndn.info>
Subject: Re: bug#41207: accountsservice daemon lacks dbus interfaces
Date: Sun, 30 Jul 2023 09:21:58 -0400
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi,
>
> L  p R n  d n    <guix <at> lprndn.info> skribis:
>
>> Ludovic Courtès <ludo <at> gnu.org> writes:
>>
>>>>> L  p R n  d n    <guix <at> lprndn.info> skribis:
>> [...]
>>>> Not exactly, my understanding is that *accountsservice* doesn't find
>>>> 'org.freedesktop.Accounts.service' which is provided (and asked) by
>>>> lightdm. (I think the error comes from accountsservice)
>>>
>>> But see:
>>>
>>> $ (cd /tmp; tar xf $(guix build -S lightdm))
>>> $ grep -r "Error updating user" /tmp/lightdm-1.30.0/
>>> /tmp/lightdm-1.30.0/common/user-list.c: g_warning ("Error updating
>>> user %s: %s", priv->path, error->message);
>>> /tmp/lightdm-1.30.0/common/user-list.c: g_warning ("Error updating
>>> user %s: %s", priv->path, error->message);
>>> $ (cd /tmp; tar xf $(guix build -S accountsservice))
>>> $ find /tmp/accountsservice-0.6.50/ -name org.freedesktop\*.service.in
>>> /tmp/accountsservice-0.6.50/data/org.freedesktop.Accounts.service.in
>>> $ find $(guix build accountsservice) -name org.freedesktop\*.service
>>> /gnu/store/l9qyf0brhhq7mwcsyhjsh7k0d3ri3ay2-accountsservice-0.6.50/share/dbus-1/system-services/org.freedesktop.Accounts.service
>>>
>>> That’s why I think it’s lightdm (or dbus-daemon?) that fails to find the
>>> .service file.
>>>
>>> ‘accountsservice-service-type’ extends dbus, such that we have
>>> /etc/dbus-1/system-services/org.freedesktop.Accounts.service.  Do you
>>> see this as well?
>>
>> You're right! ;) And probably a dbus-daemon problem from what I
>> understand. But I really don't know what I'm talking about here...
>> However, just to clarify, I think it's not that it's not finding
>> dbus-1/system-services/org.freedesktop.Accounts.service but
>> dbus-1/interfaces/org.freedesktop.Accounts(.Users?).xml. In that case,
>> using #:env-variable for the dbus service might be a possibility.
>> Really, I have quite a lot of files in
>> /run/current-system/profile/share/dbus-1/interfaces but I don't know what are
>> their purpose... :/
>
> I think we’d need to look at the lightdm service to further debug this.
>
> It’s not upstream yet, right?

We now ship a working lightdm service.  I believe this bug report was
fixed in 6aeabba2baa11b4a0a778fc353e62d0fe2f6b5ec ("gnu: lightdm: Build
AccountsService files.").

Closing.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Aug 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.