Raspotify crashes as soon as i start playing music from spotify with status=1/FAILURE #614
Unanswered
dereckchiu
asked this question in
Q&A
Replies: 1 comment 3 replies
-
It looks like you're trying to run Raspotify on a desktop system. That is not supported. Raspotify is designed to be run on headless systems as stated in the readme and basic setup guide. The reason being is that Raspotify is a system level service and pulseaudio and/or pipewire are user level services. They are not compatible with the Raspotify service. Your options are either to run pulseaudio as a system level service as described here or disable the Raspotify service and write your own systemd unit file to create your own user level service with the provided librespot binary. Both use cases are unsupported so you're on your own. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not sure what I did wrong, but here are the logs, I'm trying to play raspotify through pulseaudio, some help will be very much appreciated!
ubuntu@ubuntu:~$ journalctl -u raspotify -b
Mar 14 05:34:54 ubuntu systemd[1]: Started Raspotify (Spotify Connect Client).
Mar 14 05:35:05 ubuntu librespot[762]: [2023-03-14T05:35:05Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443
Mar 14 05:37:58 ubuntu librespot[762]: Failed to create secure directory (//.config/pulse): No such file or directory
Mar 14 05:37:58 ubuntu librespot[762]: Failed to load cookie file from cookie: No such file or directory
Mar 14 05:37:58 ubuntu librespot[762]: Failed to create secure directory (//.config/pulse): No such file or directory
Mar 14 05:37:58 ubuntu librespot[762]: Failed to load cookie file from cookie: No such file or directory
Mar 14 05:37:58 ubuntu librespot[762]: ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Access denied
Mar 14 05:37:58 ubuntu librespot[762]: [2023-03-14T05:37:58Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: Device def>
Mar 14 05:37:58 ubuntu systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Mar 14 05:37:58 ubuntu systemd[1]: raspotify.service: Failed with result 'exit-code'.
Mar 14 05:37:58 ubuntu systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Beta Was this translation helpful? Give feedback.
All reactions