[GH-ISSUE #847] Failed to enable unit: File spotify.service: Invalid argument #425

Closed
opened 2026-02-27 19:30:32 +03:00 by kerem · 2 comments
Owner

Originally created by @razserv2010 on GitHub (Sep 17, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/847

I installed openhabian OS on Raspberry Pi 4B
I added a user named ledfx and on it I installed liberspot and I can not install service
when I do:
sudo systemctl enable spotify.service
I get an error:
Failed to enable unit: File spotify.service: Invalid argument
this is the location of the service:
sudo nano /etc/systemd/system/spotify.service
and this is the service:

[Unit]
 
Description=Spotify Server Service 
After=network.target sound.target 
StartLimitIntervalSec=0
 
[Service]
 
Type=simple 
Restart=always 
RestartSec=3 
User=ledfx
Group=audio 
Environment=XDG_RUNTIME_DIR=/run/user/1000 
ExecStart=/home/ledfx/.cargo/bin/librespot \ 
        -n ledfx \ 
        -b 320 \ 
        --volume-ctrl=linear \ 
        --device-type=avr \ 
        --initial-volume=90 
        --mixer-card=hw:0,0 
 #     --mixer=softvol \ 
 #     --mixer-name=HDMI 

[Install] 
WantedBy=multi-user.target 

Would appreciate help

Originally created by @razserv2010 on GitHub (Sep 17, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/847 I installed openhabian OS on Raspberry Pi 4B I added a user named ledfx and on it I installed liberspot and I can not install service when I do: `sudo systemctl enable spotify.service ` I get an error: `Failed to enable unit: File spotify.service: Invalid argument ` this is the location of the service: `sudo nano /etc/systemd/system/spotify.service ` and this is the service: ``` [Unit] Description=Spotify Server Service After=network.target sound.target StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=3 User=ledfx Group=audio Environment=XDG_RUNTIME_DIR=/run/user/1000 ExecStart=/home/ledfx/.cargo/bin/librespot \ -n ledfx \ -b 320 \ --volume-ctrl=linear \ --device-type=avr \ --initial-volume=90 --mixer-card=hw:0,0 # --mixer=softvol \ # --mixer-name=HDMI [Install] WantedBy=multi-user.target ``` Would appreciate help
kerem closed this issue 2026-02-27 19:30:32 +03:00
Author
Owner

@kingosticks commented on GitHub (Sep 17, 2021):

Use https://github.com/dtcooper/raspotify

<!-- gh-comment-id:922105990 --> @kingosticks commented on GitHub (Sep 17, 2021): Use https://github.com/dtcooper/raspotify
Author
Owner

@roderickvd commented on GitHub (Sep 20, 2021):

Yeah, please try that. I think there's something up with your spotify.service permissions, but we don't provide Linux system support here. Feel free to try on Gitter though.

<!-- gh-comment-id:923118497 --> @roderickvd commented on GitHub (Sep 20, 2021): Yeah, please try that. I think there's something up with your `spotify.service` permissions, but we don't provide Linux system support here. Feel free to try on [Gitter](https://gitter.im/librespot-org/spotify-connect-resources) though.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#425
No description provided.