music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.39k stars 51 forks source link

Slimproto integrations fails (Start with 2024.1 to 2024.3 Error) #2641

Closed ghost closed 4 months ago

ghost commented 4 months ago

What version of Music Assistant has the issue?

2024.3

What version of the Home Assistant Integration have you got installed?

2024.7

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

ERROR (MainThread) [music_assistant] Error loading provider(instance) Slimproto (Squeezebox players): Unable to start the Slimproto server - is one of the required TCP ports already taken ?

No matter which ports I use, I always get the error


Music Assistant BETA 2024-07-17 20:18:40.182 INFO (MainThread) [music_assistant] Starting Music Assistant Server (19b1ace734824cf19d656d042f4d8abd) version 2.1.0rc2 - HA add-on: True - Safe mode: True 2024-07-17 20:18:40.185 INFO (MainThread) [music_assistant.cache] Initializing cache controller... 2024-07-17 20:18:40.514 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes. 2024-07-17 20:18:40.597 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support 2024-07-17 20:18:40.597 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.184.155:8097 2024-07-17 20:18:40.600 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095 2024-07-17 20:19:26.191 ERROR (MainThread) [music_assistant] Error loading provider(instance) Slimproto (Squeezebox players): Unable to start the Slimproto server - is one of the required TCP ports already taken ? 2024-07-17 20:19:26.191 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: Unable to start the Slimproto server - is one of the required TCP ports already taken ? 2024-07-17 20:19:36.742 ERROR (MainThread) [music_assistant] Error loading provider(instance) Slimproto (Squeezebox players): Unable to start the Slimproto server - is one of the required TCP ports already taken ? 2024-07-17 20:19:36.743 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: Unable to start the Slimproto server - is one of the required TCP ports already taken ? 2024-07-17 20:19:55.541 WARNING (MainThread) [aiorun] Stopping the loop 2024-07-17 20:19:55.541 INFO (MainThread) [aiorun] Entering shutdown phase. 2024-07-17 20:19:55.541 INFO (MainThread) [aiorun] Executing provided shutdown_callback. 2024-07-17 20:19:55.541 INFO (MainThread) [root] shutdown requested! 2024-07-17 20:19:55.541 INFO (MainThread) [music_assistant] Stop called, cleaning up... 2024-07-17 20:19:55.547 INFO (MainThread) [aiorun] Waiting for executor shutdown. 2024-07-17 20:19:55.548 INFO (MainThread) [aiorun] Shutting down async generators 2024-07-17 20:19:55.549 INFO (MainThread) [aiorun] Closing the loop. 2024-07-17 20:19:55.549 INFO (MainThread) [aiorun] Leaving. Bye! 2024-07-17 20:19:56.061 INFO (MainThread) [music_assistant] Starting Music Assistant Server (19b1ace734824cf19d656d042f4d8abd) version 2.1.0rc2 - HA add-on: True - Safe mode: False 2024-07-17 20:19:56.066 INFO (MainThread) [music_assistant.cache] Initializing cache controller... 2024-07-17 20:19:56.085 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes. 2024-07-17 20:19:56.159 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support 2024-07-17 20:19:56.159 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.184.155:8097 2024-07-17 20:19:56.162 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095 2024-07-17 20:19:56.204 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider 2024-07-17 20:19:56.204 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider 2024-07-17 20:19:56.204 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider 2024-07-17 20:19:56.204 INFO (MainThread) [music_assistant] Loaded music provider Music Assistant 2024-07-17 20:19:56.307 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed

How to reproduce

Add provider(instance) Slimproto

Music Providers

Slimproto

Player Providers

Slimproto

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.7.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

cociweb commented 4 months ago

It appears there is some misconfiguration, which is why the proper endpoint cannot be found.

2024-07-17 20:18:40.597 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8097 - base url: http://192.168.184.155:8097/
2024-07-17 20:18:40.600 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095/

Please be aware that LMS or any other slimproto server (eg Squeezebox, etc) should not be operating on your network simultaneously.

ghost commented 4 months ago

No other ports are open. I checked it.

After reinstalling “Music Assistant” the problem was not solved.

@cociweb Does it work for you? Have you been able to test it?


image
cociweb commented 4 months ago

Yes, the slimproto provider is OK if the configuration is correct. Unfortunately, I don't have much experience with HAOS as you've described your setup. I use it with Docker, and it works well. Could you please correct the versions in the issue description to clarify your environment?

ghost commented 4 months ago

2024-07-17 22:41:08.524 INFO (MainThread) [music_assistant.streams] Starting server on 192.168.184.155:8098 - base url: http://192.168.184.155:8098

FYI:

2024-07-17 22:41:08.524 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 6.0.1 with libsoxr support 2024-07-17 22:41:08.524 INFO (MainThread) [music_assistant.streams] Starting server on 192.168.184.155:8098 - base url: http://192.168.184.155:8098 2024-07-17 22:41:42.383 ERROR (MainThread) [music_assistant.providers.dlna] Error during call play_media: 'Error during async_call(), action: Play, status: 500, upnp error: 701 (Transition not available)' 2024-07-17 22:41:49.855 ERROR (MainThread) [music_assistant] Error loading provider(instance) Slimproto (Squeezebox players): Unable to start the Slimproto server - is one of the required TCP ports already taken ? 2024-07-17 22:41:49.855 ERROR (MainThread) [music_assistant.webserver] Error handling message: config/providers/save: Unable to start the Slimproto server - is one of the required TCP ports already taken ?


Core 2024.7.2

Supervisor 2024.06.2

Operating System 12.4

Frontend 20240710.0

image
OzGav commented 4 months ago

You need to look at your network as this works fine for everyone else. Are you using the slimproto integration in HA?

ghost commented 4 months ago

It was on port 9000 --> This was occupied. Thank you very much for the information. Greeting