Skip to content

Spotifyd sometimes crashes due to unset DBUS_SESSION_BUS_ADDRESS #47

@TobleMiner

Description

@TobleMiner

Under some circumstances DBUS_SESSION_BUS_ADDRESS seems to become unset or maybe invalid.
Investigate running spotifyd as dbus unit maybe?

Jan 21 00:12:50 OtterCastAudio systemd[1]: Started spotifyd.
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No config file specified. Running with default values
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No username specified. Checking username_cmd
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No username_cmd specified
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No password specified. Checking password_cmd
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No password_cmd specified
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: No proxy specified
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: Using software volume controller.
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: no usable credentials found, enabling discovery
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** The program 'spotifyd' uses the Apple Bonjour compatibility layer of Avahi.
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** The program 'spotifyd' uses the Apple Bonjour compatibility layer of Avahi.
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** Please fix your application to use the native API of Avahi!
Jan 21 00:12:50 OtterCastAudio spotifyd[517]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Jan 21 00:13:11 OtterCastAudio spotifyd[517]: Ignoring blacklisted access point ap-gew4.spotify.com:4070
Jan 21 00:13:11 OtterCastAudio spotifyd[517]: Ignoring blacklisted access point ap-gew4.spotify.com:443
Jan 21 00:13:11 OtterCastAudio spotifyd[517]: Ignoring blacklisted access point ap-gew4.spotify.com:80
Jan 21 00:13:11 OtterCastAudio spotifyd[517]: Ignoring blacklisted access point ap-gue1.spotify.com:4070
Jan 21 00:13:11 OtterCastAudio spotifyd[517]: Connecting to AP "ap-gew1.spotify.com:443"
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Authenticated as "*redacted*" !
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Mixing with softvol and volume control: Log(60.0)
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Country: "DE"
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Converting with ditherer: tpdf
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Using PulseAudioSink with format: S16
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: The application panicked (crashed).
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Message:  Failed to initialize DBus connection: D-Bus error: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead (org.freedesktop.DBus.Error.NotSupported)
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Location: src/dbus_mpris.rs:169
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Jan 21 00:13:12 OtterCastAudio spotifyd[517]: Run with RUST_BACKTRACE=full to include source snippets.
Jan 21 00:13:12 OtterCastAudio systemd[1]: spotifyd.service: Main process exited, code=exited, status=101/n/a
Jan 21 00:13:12 OtterCastAudio systemd[1]: spotifyd.service: Failed with result 'exit-code'.
Jan 21 00:13:17 OtterCastAudio systemd[1]: spotifyd.service: Scheduled restart job, restart counter is at 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions