Spotifyd / spotifyd

A spotify daemon
https://spotifyd.rs
GNU General Public License v3.0
9.83k stars 450 forks source link

brew service remains in stopped state #1195

Open antani opened 1 year ago

antani commented 1 year ago

Description Installed spotifyd via brew on Macbook Air M1, BigSur Installation goes fine, but when starting the service, the service remains in stopped status

To Reproduce

Expected behavior

Logs

Click to show logs ``` ```

Compilation flags

Versions (please complete the following information):

➜ ~ brew services start spotifyd --verbose ==> Generated service file for spotifyd: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

KeepAlive Label homebrew.mxcl.spotifyd LimitLoadToSessionType Aqua Background LoginWindow StandardIO System ProgramArguments /opt/homebrew/opt/spotifyd/bin/spotifyd --no-daemon --backend portaudio RunAtLoad

/bin/launchctl enable gui/445842717/homebrew.mxcl.spotifyd /bin/launchctl bootstrap gui/445842717 /Users/veda/Library/LaunchAgents/homebrew.mxcl.spotifyd.plist ==> Successfully started spotifyd (label: homebrew.mxcl.spotifyd) ➜ ~ brew services Name Status User File dbus none spotifyd stopped veda ~/Library/LaunchAgents/homebrew.mxcl.spotifyd.plist unbound none

eladyn commented 1 year ago

Several things you can try to gather more info:

antani commented 1 year ago
➜  ~ spotifyd --no-daemon --verbose
Loading config from "/Users/veda/.config/spotifyd/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, dbus_type: None, on_song_change_hook: None, cache_path: Some("/Users/veda/.config/spotifyd/cache_directory"), no-audio-cache: false, backend: Some(PortAudio), volume_controller: Some(SoftVolume), device: None, control: None, mixer: None, device_name: Some("terminal"), bitrate: Some(Bitrate320), initial_volume: None, volume_normalisation: true, normalisation_pregain: Some(-10.0), zeroconf_port: Some(1234), proxy: None, device_type: Some(Computer), autoplay: false, max_cache_size: None } }
Found user shell: Some("/bin/zsh")
No proxy specified
registering event source with poller: token=Token(0), interests=READABLE
Using software volume controller.
Connecting to AP "ap.spotify.com:443"
registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
deregistering event source from poller
failed to connect to spotify: Cannot create session: early eof
deregistering event source from poller
eladyn commented 1 year ago

Seems like you are running into this issue (at least the first part of the log). Can you try to build from the current master branch and see if the issue persists?