Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't run spotifyd and avahi-daemon at the same time #1111

Closed
duncan-bayne opened this issue Sep 7, 2022 · 2 comments
Closed

I can't run spotifyd and avahi-daemon at the same time #1111

duncan-bayne opened this issue Sep 7, 2022 · 2 comments
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@duncan-bayne
Copy link

duncan-bayne commented Sep 7, 2022

Description
I can't run spotifyd and avahi-daemon at the same time.

To Reproduce

  1. Run spotifyd -u "$SPOTIFY_USERNAME" -p "$SPOTIFY_PASSWORD" --no-daemon --backend=portaudio.
  2. See the following error:
Loading config from "/usr/local/etc/spotifyd.conf"
No proxy specified
Using software volume controller.
PANIC: Shutting down spotifyd. Error message: called `Result::unwrap()` on an `Err` value: Os { code: 48, kind: AddrInUse, message: "Address already in use" }
  1. If I stop avahi-daemon first, spotifyd starts as expected:
$ sudo service avahi-daemon stop
Stopping avahi-daemon.

$ spotifyd -u "$SPOTIFY_USERNAME" -p "$SPOTIFY_PASSWORD" --no-daemon --backend=portaudio
Loading config from "/usr/local/etc/spotifyd.conf"
No proxy specified
Using software volume controller.
Connecting to AP "ap.spotify.com:443"
error sending packet Os { code: 51, kind: NetworkUnreachable, message: "Network is unreachable" }
Authenticated as "v4u9kaeuhr3mw0r2x695ewso2" !
Country: "AU"
Using PortAudio sink with format: S16
This backend is known to panic on several platforms.
Consider using some other backend, or better yet, contributing a fix.

Expected behavior
I'd expect spotifyd to start without first stopping avahi-daemon (thus disabling mDNS on my system).

Logs

Click to show logs
$ spotifyd -u "$SPOTIFY_USERNAME" -p "$SPOTIFY_PASSWORD" --no-daemon --backend=portaudio --verbose
Loading config from "/usr/local/etc/spotifyd.conf"
CliConfig { config_path: None, no_daemon: true, verbose: true, pid: None, shared_config: SharedConfigValues { username: Some("taken out for privacy"), username_cmd: None, password: Some("taken out for privacy"), password_cmd: None, use_keyring: false, use_mpris: None, on_song_change_hook: None, cache_path: None, no-audio-cache: false, backend: Some(PortAudio), volume_controller: None, device: None, control: None, mixer: None, device_name: None, bitrate: None, initial_volume: None, volume_normalisation: false, normalisation_pregain: None, zeroconf_port: None, proxy: None, device_type: None } }
Found user shell: Some("/usr/local/bin/bash")
No proxy specified
registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
Using software volume controller.
registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
Zeroconf server listening on 0.0.0.0:60510
Shutting down discovery server
deregistering event source from poller
PANIC: Shutting down spotifyd. Error message: called `Result::unwrap()` on an `Err` value: Os { code: 48, kind: AddrInUse, message: "Address already in use" }

Versions (please complete the following information):

  • OS: FreeBSD 13.1
  • Spotifyd: spotifyd 0.3.3
@duncan-bayne duncan-bayne added the bug A functionality or parts of a program that do not work as intended label Sep 7, 2022
@duncan-bayne
Copy link
Author

I'm pretty sure this happening because spotifyd contains its own mDNS implementation.

@duncan-bayne
Copy link
Author

Hmmm. This is a duplicate of #1101, I think. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A functionality or parts of a program that do not work as intended
Projects
None yet
Development

No branches or pull requests

1 participant