General Category => Forum => Topic started by: exoticmeiz on 11 February 2021, 08:55:23
Title: Spotifyd | Failed to initialize Dbus connection
Post by: exoticmeiz on 11 February 2021, 08:55:23
This error occurs when I use spotifyd:
Caught panic with message: Failed to initialize DBus connection: D-Bus error: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
I don't understand why this has happened.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 11 February 2021, 12:41:12
Caught panic with message: Failed to initialize DBus connection: D-Bus error: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
I don't understand why this has happened.
Hi,
Which packages are you using and how do you start it?
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: exoticmeiz on 13 February 2021, 17:12:29
I have syslog-ng, syslog-ng-runit, spotifyd-runit, spotifyd, and spotify-tui.
I've managed to change the error somehow, it now says:
Feb 14 03:04:01 zachens login[1064]: pam_elogind(login:session): Failed to connect to system bus: No such file or directory Feb 14 03:06:43 zachens spotifyd[1688]: Caught panic with message: attempted to zero-initialize type `librespot_tremor::tremor_sys::ov_callbacks`, which is invalid Feb 14 03:06:45 zachens spotifyd[1688]: Caught panic with message: called `Result::unwrap()` on an `Err` value: "SendError(..)" Feb 14 03:06:45 zachens spotifyd[1688]: Player thread panicked!
I am not sure what I did to change it, I was fiddling around and forget to check.
I have it set with rsm.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 13 February 2021, 18:18:33
Check inspect and compare your insallation, with the results below:
-> sudo rsm status dbus > filtering out 'acpid' because match 'dbus' > filtering out 'agetty-tty1' because match 'dbus' > filtering out 'agetty-tty2' because match 'dbus' > filtering out 'agetty-tty3' because match 'dbus' > filtering out 'agetty-tty4' because match 'dbus' > filtering out 'agetty-tty5' because match 'dbus' > filtering out 'agetty-tty6' because match 'dbus' > filtering out 'ananicy' because match 'dbus' > filtering out 'apcupsd' because match 'dbus' > filtering out 'avahi-daemon' because match 'dbus' > filtering out 'bluetoothd' because match 'dbus' > filtering out 'clamd' because match 'dbus' > filtering out 'colord' because match 'dbus' > filtering out 'cronie' because match 'dbus' > filtering out 'cupsd' because match 'dbus' > filtering out 'docker' because match 'dbus' > filtering out 'elogind' because match 'dbus' > filtering out 'jackett' because match 'dbus' > filtering out 'lightdm' because match 'dbus' > filtering out 'lm_sensors' because match 'dbus' > filtering out 'NetworkManager' because match 'dbus' > filtering out 'nmbd' because match 'dbus' > filtering out 'openntpd' because match 'dbus' > filtering out 'smbd' because match 'dbus' > filtering out 'spotifyd' because match 'dbus' > filtering out 'syslog-ng' because match 'dbus' > filtering out 'teamviewer' because match 'dbus' > filtering out 'udevd' because match 'dbus' > filtering out 'ufw' because match 'dbus' > filtering out 'webmin' because match 'dbus' > filtering out 'zramen' because match 'dbus' > [rsm] - linuxer-pc (/run/runit/service) - 1 service
SERVICE STATE ENABLED PID COMMAND TIME ✔ dbus run true 1220 dbus-daemon 2 hours
-> sudo pacman -Qs dbus local/dbus 1.12.20-1 Freedesktop.org message bus system local/dbus-c++ 0.9.0-9 A C++ API for D-BUS local/dbus-glib 0.110-2 GLib bindings for DBUS local/dbus-runit 20191020-2 runit service scripts for dbus local/dleyna-connector-dbus 0.3.0-3 Provides a D-Bus API for the dLeyna services local/gambas3-gb-dbus 3.15.2-7 (gambas3) DBUS component local/kdbusaddons 5.78.0-1 (kf5) Addons to QtDBus local/lib32-dbus 1.12.20-1.1 Freedesktop.org message bus system (32-bit) local/lib32-dbus-glib 0.110-2 GLib bindings for DBUS local/lib32-libdbusmenu-glib 16.04.0-4 Library for passing menus over DBus (32-bit) local/lib32-libdbusmenu-gtk2 16.04.0-4 Library for passing menus over DBus (32-bit) (GTK+ 2 library) local/lib32-libdbusmenu-gtk3 16.04.0-4 Library for passing menus over DBus (32-bit) (GTK+ 3 library) local/libcloudproviders 0.3.1-2 DBus API that allows cloud storage sync clients to expose their services local/libdbusmenu-glib 16.04.0-4 Library for passing menus over DBus local/libdbusmenu-gtk2 16.04.0-4 Library for passing menus over DBus (GTK+ 2 library) local/libdbusmenu-gtk3 16.04.0-4 Library for passing menus over DBus (GTK+ 3 library) local/libdbusmenu-qt5 0.9.3+16.04.20160218-5 A library that provides a Qt implementation of the DBusMenu spec local/python-dbus 1.2.16-3 Python bindings for DBUS local/python-dbus-common 1.2.16-3 Common dbus-python files shared between python-dbus and python2-dbus local/python-pydbus 0.6.0-7 Pythonic D-Bus library local/python2-dbus 1.2.16-3 Python2 bindings for DBUS local/python2-pydbus 0.6.0-4 pythonic D-Bus library local/ruby-dbus 0.15.0-3 Ruby module for interaction with D-Bus local/xdg-dbus-proxy 0.1.2-2 D-Bus proxy
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: exoticmeiz on 14 February 2021, 05:58:47
It's looking very similar on my end, besides all the things you have setup.
Apparently the librespot_tremor has a few temporary fixes, but they all involve using rust cargo.
I can't really do that, as I got it via the universe repo?
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 14 February 2021, 08:02:59
So, it is a problem of librespot_tremor, which is probably a part of librespot rust AUR package (https://aur.archlinux.org/packages/librespot-git), or so.
This package seems unupdated for quite some time, while it's code seems to have been updated (https://github.com/librespot-org/librespot-tremor), recently
(https://imgur.com/7MYXVRr.png)
We do not support AUR packages, because it is not our responsibility to do so.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: conky60 on 14 February 2021, 20:00:52
You could try spotifyd-full-git and rust-nightly-bin from aur here: https://aur.archlinux.org/packages/spotifyd-full-git/ and here respectively: https://aur.archlinux.org/packages/rust-nightly-bin/ Although, as previously mentioned, these are unsupported packages.
Best regards.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 14 February 2021, 20:28:25
You could try spotifyd-full-git and rust-nightly-bin from aur here: https://aur.archlinux.org/packages/spotifyd-full-git/ and here respectively: https://aur.archlinux.org/packages/rust-nightly-bin/ Although, as previously mentioned, these are unsupported packages.
Best regards.
The spotifyd on AUR is systemd depended, versus spotifyd (https://gitea.artixlinux.org/linuxer/PKGBUILDS/src/branch/master/spotifyd/PKGBUILD#L34) on Universe
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: exoticmeiz on 14 February 2021, 22:17:02
Appreciate it fellas.
I've just compiled it from source, and changed the cargo.toml to not include librespot_tremor.
For now, I've just been using scripts to start it.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 15 February 2021, 02:08:28
So, case solved...
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: conky60 on 15 February 2021, 15:49:29
The spotifyd on AUR is systemd depended, versus spotifyd (https://gitea.artixlinux.org/linuxer/PKGBUILDS/src/branch/master/spotifyd/PKGBUILD#L34) on Universe
I didn't notice any systemd dependencies in the pkgbuild, and I was able to build the package w/o issues, so there are no build-time systemd dependencies. Perhaps there could be run-time issues? I didn't try using the software.
Best regards.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 15 February 2021, 15:58:21
I didn't notice any systemd dependencies in the pkgbuild, and I was able to build the package w/o issues, so there are no build-time systemd dependencies. Perhaps there could be run-time issues? I didn't try using the software.
Best regards.
Hi,
Check the commented line #34 (https://gitea.artixlinux.org/linuxer/PKGBUILDS/src/branch/master/spotifyd/PKGBUILD#L34), of our build
Regards
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: conky60 on 15 February 2021, 17:55:57
Check the commented line #34 (https://gitea.artixlinux.org/linuxer/PKGBUILDS/src/branch/master/spotifyd/PKGBUILD#L34), of our build
Regards
Yes, I didn't notice that. However, it isn't the only thing to install a systemd .service. I have nine such .service files on my Artix Plasma system in /usr/lib/systemd/user; "app-org.kde.spectacle.service, at-spi-dbus-bus.service, glib-pacrunner.service, plasma-kglobalaccel.service, plasma-kwin_wayland.service, plasma-kwin_x11.service, xdg-desktop-portal.service, xdg-document-portal.service, xdg-permission-store.service." They are annoying to see, but do not seem to cause any issues beyond that. ;)
Best regards.
Title: Re: Spotifyd | Failed to initialize Dbus connection
Post by: linuxer on 15 February 2021, 18:57:51
Yes, I didn't notice that. However, it isn't the only thing to install a systemd .service. I have nine such .service files on my Artix Plasma system in /usr/lib/systemd/user; "app-org.kde.spectacle.service, at-spi-dbus-bus.service, glib-pacrunner.service, plasma-kglobalaccel.service, plasma-kwin_wayland.service, plasma-kwin_x11.service, xdg-desktop-portal.service, xdg-document-portal.service, xdg-permission-store.service." They are annoying to see, but do not seem to cause any issues beyond that. ;)
Best regards.
yeah, at least on this case, there are not any leftovers, from spotifyd (Universe). :-D