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

brew service remains in stopped state #1195

Open
1 of 6 tasks
antani opened this issue Mar 22, 2023 · 3 comments
Open
1 of 6 tasks

brew service remains in stopped state #1195

antani opened this issue Mar 22, 2023 · 3 comments
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@antani
Copy link

antani commented Mar 22, 2023

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
<!-- PLEASE PASTE YOUR LOGS BELOW THIS LINE WHEN REPORTING BUGS. Make sure to run spotifyd using the `--verbose` flag -->
<!-- They have to be betwenn the `/summary` and the `/details` HTML tags, and inside the backticks '`' -->  

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

Versions (please complete the following information):

  • OS:
  • Spotifyd:
  • cargo:

➜ ~ brew services start spotifyd --verbose
==> Generated service file for spotifyd:

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

@antani antani added the bug A functionality or parts of a program that do not work as intended label Mar 22, 2023
@eladyn
Copy link
Member

eladyn commented Mar 23, 2023

Several things you can try to gather more info:

  • See if there are any logs from the homebrew service that indicate possible problems.
  • Start spotifyd with spotifyd --no-daemon (and possibly --verbose) directly and see if that works / what fails.

@antani
Copy link
Author

antani commented Mar 23, 2023

➜  ~ 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
Copy link
Member

eladyn commented Mar 26, 2023

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?

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

2 participants