Nixpkgs: WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

Created on 19 Jun 2016  ยท  15Comments  ยท  Source: NixOS/nixpkgs

Error output by Gtk applications.

 $ echo $XDG_CONFIG_DIRS

/home/netsu/.nix-profile/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg

 $ tree /run/current-system/sw/etc/xdg/                                                  

/run/current-system/sw/etc/xdg/
โ”œโ”€โ”€ autostart
โ”‚ย ย  โ”œโ”€โ”€ pulseaudio.desktop -> /nix/store/b8f56ikl1bvgg5va62p6cj7hgshjp6c9-pulseaudio-8.0/etc/xdg/autostart/pulseaudio.desktop
โ”‚ย ย  โ””โ”€โ”€ wicd-tray.desktop -> /nix/store/2ijqyvnms7j9h1fmn798g27igicm5p54-wicd-1.7.2.4/etc/xdg/autostart/wicd-tray.desktop
โ””โ”€โ”€ systemd -> /nix/store/d1w81dnv8wr55hwhwxdawwwx40f75ykx-systemd-230/etc/xdg/systemd

2 directories, 2 files

 $ tree /nix/store/0kq005z0cc5bfjais88ma92ycwrfwwxq-at-spi2-core-2.20.1/etc/xdg          

/nix/store/0kq005z0cc5bfjais88ma92ycwrfwwxq-at-spi2-core-2.20.1/etc/xdg
โ””โ”€โ”€ autostart
    โ””โ”€โ”€ at-spi-dbus-bus.desktop

1 directory, 1 file

Most helpful comment

I solve this in ubuntu by installing 'at-spi2-core' package

All 15 comments

Could be solved by NO_AT_BRIDGE=1, but this's temporary hack.

Also error fixed if launch directly /nix/store/0kq005z0cc5bfjais88ma92ycwrfwwxq-at-spi2-core-2.20.1/libexec/at-spi-bus-launcher

FYI: I don't use any DE, maybe this cause an issue.

I've seen similar problems running XMonad and no DE; would be interested in seeing what people suggest.

Maybe I should enable services.gnome3.at-spi2-core.enable?

I can reproduce with gnome 3.18:

$ journalctl -b  | grep a11
juin 18 10:58:19 luz3 org.a11y.Bus[950]: GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
juin 18 10:58:19 luz3 org.a11y.Bus[950]: Activating service name='org.a11y.atspi.Registry'
juin 18 10:58:19 luz3 org.a11y.Bus[950]: ** (process:953): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
juin 18 10:58:19 luz3 org.a11y.Bus[950]: Successfully activated service 'org.a11y.atspi.Registry'
juin 18 10:58:19 luz3 org.a11y.atspi.Registry[957]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
juin 18 10:59:02 luz3 org.a11y.Bus[1201]: Activating service name='org.a11y.atspi.Registry'
juin 18 10:59:02 luz3 org.a11y.Bus[1201]: ** (process:1239): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
juin 18 10:59:02 luz3 org.a11y.Bus[1201]: Successfully activated service 'org.a11y.atspi.Registry'
juin 18 10:59:02 luz3 org.a11y.atspi.Registry[1244]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry

Yes, it solved issue.


So, in case of this error, here at least two options:

  • to disable
variables = {
  NO_AT_BRIDGE = "1";
  • to enable
services.gnome3.at-spi2-core.enable = true;

I solve this in ubuntu by installing 'at-spi2-core' package

I solve this in ubuntu by installing 'at-spi2-core' package

This solved the issue for me as well running on Lubuntu 16.04

Solved this issue for me as well, by installing 'at-spi2-core' package in Siduction 17.10 patience (based on Debian testing/unstable)..

Thanks...

Would it be a good idea to set NO_AT_BRIDGE=1 in at-spi2-core.nix when the service is not enabled? Something like this:

  config = mkMerge [
    mkIf config.services.gnome3.at-spi2-core.enable {
      environment.systemPackages = [ pkgs.at_spi2_core ];

      services.dbus.packages = [ pkgs.at_spi2_core ];
    }

    mkIf !config.services.gnome3.at-spi2-core.enable {
      environment.variables.NO_AT_BRIDGE = "1";
    }
  ]

It seems like a good idea to me; do you want to make a PR?

It still produces the warning for me, even with the service enabled.

Sorry for hijacking this issue, the missing systemd unit is a different issue and it will be fixed in #28856

Error retrieving accessibility bus address: org.freedesktop.systemd1.NoSuchUnit: Unit at-spi-dbus-bus.service not found.

Me too. No, no, not that, I mean the warning message. As of March 2018 that was still popping up for me a lot in a plain Ubuntu 16.04 made from the mini.iso with x, lightdm, and openbox & no DE per se every time I used zenity for example. Installing at-spi2-core eliminated it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

retrry picture retrry  ยท  3Comments

sid-kap picture sid-kap  ยท  3Comments

spacekitteh picture spacekitteh  ยท  3Comments

domenkozar picture domenkozar  ยท  3Comments

chris-martin picture chris-martin  ยท  3Comments