Flatpak error: The name org.freedesktop.Accounts was not provided by any .service file

I am unable to reproduce it.

Flatpak just uses AccountsService via D-Bus which should be enabled by services.accounts-daemon.enable = true;.

Thanks for the hint, I did add services.accounts-daemon.enable = true; but it didn’t do the trick alas: https://github.com/shazow/nixfiles/blob/d53793b6c88ef5cd929128f16949bd313241a4c1/common/desktop.nix#L81

Hmm. @jtojnar What desktop manager configuration are you using? (Is the config you attempted to reproduce with up on Github?)

I talked to two users on IRC who could reproduce the issue:

But at a glance, does it make sense this prevents things from running?
Like, from reading the code you’ve linked it doesn’t need AccountsService exclusively

How funny that the same question happens again #nixos on 2020-02-25 — irc logs.

1 Like

I suspect in my case it could be related to the way I launch the dbus session with the X11 process, will play around with it more this weekend.

There’s some issues with flatpak and the p11-kit on unstable/20.03 (apps are unable to connect to the internet etc), though your issue sounds a bit different. A p11-kit update is on its way to master: Sign in to GitHub · GitHub

I did run into the connectivity issue as well, in a separate generation which didn’t include flatpak 1.6.x, but I rolled that back too for now. :slight_smile:

There was this also flatpak: use correct p11-kit output by worldofpeace · Pull Request #80453 · NixOS/nixpkgs · GitHub, but I’ve backported that.
p11-kit: 0.23.19 -> 0.23.20 by hedning · Pull Request #80698 · NixOS/nixpkgs · GitHub looks like a bugfix, I will purpose a backport.

Is there a github issue for this? I also have this problem.

I’ve opened one on github Flatpaks can't be run/installed without org.freedesktop.Accounts interface · Issue #81284 · NixOS/nixpkgs · GitHub

1 Like

Thanks for opening the issue, @worldofpeace!

@piotr-szegda Can you confirm whether services.accounts-daemon.enable = true; works for you?

@shazow: Yes and I don’t see any side effect.

services.accounts-daemon.enable = true; fixed the original org.freedesktop.Accounts error for me, but I now get an error from the Spotify Flatpak that mentions session, so I think it’s related to dbus. I tried flipping that permission, but it didn’t fix the error. I was also getting connection errors with Discord, which led me to the Manjaro forum, which led me to this issue with p11-kit. Maybe the Spotify issue is the same; it just might report it differently.

Until p11-kit is upgraded to 0.23.20 in nixpkgs, Discord and presumably other Flatpaks will not work, just to put it on the radar. Hope that gets fixed. Thanks!

The issue states we already have p11-kit update on it’s way to 20.03. It’s just in a staging branch.

1 Like

Oof, my bad. I started composing the message before actually finding the p11-kit issue, and then I guess I just finished it without ever reading the thread. Thanks!

Quick update: Looks like it’s all good now as long as services.accounts-daemon is enabled. Except for the recent Flatpak SSL cert issues.

Yeah, nix-store -q --tree /run/current-system | grep p11-kit returns all versions 0.23.20, and I’m still getting a certificate error with Discord. I thought that was the fix, but maybe not?

Related issue is here: Flatpak SSL Certificate problem · Issue #82422 · NixOS/nixpkgs · GitHub

1 Like

I’ve closed the topic since it should now be fixed.

1 Like