mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1120] I'm having troubles running Librespot to a FIFO pipe in a LXC container #520
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kilanmundera on GitHub (Feb 12, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1120
Describe the bug
Dear people,
Until now I was running LibreSpot and Scapcast (snapserver) on a raspberry 4.
Since I'm moving to proxmox (on a regular X86/AMD64 computer), I'm installing a Libresot + Snapcast dedicated Debain 11 LXC container.
What I did is that I copyed all the conf and services files from the raspberry to the Debian container.
But I'm facing an issue, here is what happens when I try to play a song to LibreSpot :
Here is how librespot is executed (as root, as you can see) :
root@snap:~# /usr/bin/librespot -v -H -n MultiRoom -N -b 320 --initial-volume 100 --backend pipe --device /tmp/snapfifoAnd here is the / my failure :
I'm pretty sure this looks like a container related issue, but since I'm a bit of a newbie in the proxmox AND fifo and sound on Linux in general, well I'm trying here first.
Thanks for your kind help.
@conejero commented on GitHub (Mar 21, 2023):
Hello kujac.
I run into a similiar issue. Just in case anyone ends up here looking for an answer. I solved my issue by ensuring fifo was not protected.
$> sysctl -a | grep -i protected
fs.protected_fifos = 0
fs.protected_hardlinks = 1
fs.protected_regular = 2
fs.protected_symlinks = 1
In my case, I had to change it in /usr/lib/sysctl.d/protect-links.conf on a rasbian
@kingosticks commented on GitHub (Mar 21, 2023):
Super, thanks for the update. Hopefully @kujac can confirm and close this issue. This isn't a bug in librespot, if still having problems we can create a new GitHub discussion for running on containers.