mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1161] Address in use (os error 98) only on dev #537
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#537
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 @dejanzelic on GitHub (May 5, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1161
Describe the bug
When starting a build from the dev branch I get the following error:
The error makes it sound like the port is in use and zeroconf can't start. I found this: https://github.com/librespot-org/librespot/issues/1111 issue which complained about a similar problem. If this is the issue, I should be able to change the port with the
--zeroconf-portargument. However, if I add this with any open port, I still get the same error.The reason I believe this might be a bug is because v0.4.2 works without a problem (and so does v0.3.1). I only get this error on the dev branch.
To reproduce
I get this error only when running the service in my kubernetes cluster. The container has host level network access and I do see avahi-daemon is running in another service. But what I don't understand is v0.4.2 doesn't have this issue in the same environment. While I know my problem is localized, I'll do my best to provide as much information as I can to reproduce.
Here is the deployment:
The Kubernetes environment is fairly default install of k3s with metallb (however, metallb isn't in use for this container)
Log
I can confirm that nothing else is running on port 33135
Host (what you are running
librespoton):Additional context
I'm running librespot with remote pulseaudio.
I know this is the dev branch and I shouldn't expect it to work. However, I really need the
session_connectedevents which is only available on dev. Any chance I can get an eta on when that will be released?Any help is appreciated!
@dejanzelic commented on GitHub (May 5, 2023):
This might be related but the
--zeroconf-interfaceoption doesn't do anything:@eladyn commented on GitHub (May 5, 2023):
The discovery feature of
librespotis using two different ports:So your problem is presumably that - as your
ssoutput suggests - you have a different service running on 5353 and handling mdns communication. So you'll need to find out what this other service is and stop it in order to use the discovery feature (or use thedns-sdfeature instead, if the other service is avahi).Hope this helps!
Edit: The
0.0.0.0in your second comment is hardcoded and only applies to the HTTP server listening for the connection requests, while thezeroconf-interfaceapplies only tomdnstraffic.@dejanzelic commented on GitHub (May 5, 2023):
Thanks for the response @eladyn!
I'm compiling now with-dns-sd to try that. But I stopped the avahi-daemon and am still getting the same issues:
@dejanzelic commented on GitHub (May 5, 2023):
I was able to get this to work by using your suggestion @eladyn and compiling using the feature
with-dns-sd. I had to make a couple more changes to my set up. For starters, I had to add theavahipackage to my container and start theavahi-daemonbefore I start librespot.I then added this to my Docker build:
I also had to mount
/var/run/dbusfrom the host to the container.With these changes in place, librespot starts, I'm able to connect, and I get the new events!
I'm going to close this issue since my problem is resolved.