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.21k stars 44 forks source link

Every MA docker update requires reconfiguring HA integration #2310

Open jds11111 opened 1 month ago

jds11111 commented 1 month ago

What version of Music Assistant has the issue?

2024.5.1

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

2024.5.3

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

The problem

Every time MA is updated the HA integration says 'failed to load'. It is trivial to work around because when I reconfigure, everything but the port number is retained. Adding the port again fixes every thing. It just seems that the integration needs to retain that in the right place.

How to reproduce

Set up MA in a docker container on another machine. Configure the integration in HA (also running on docker). Then update the MA version.

Music Providers

Probably doesn't matter here, but SMB share, Jellyfin. These work.

Player Providers

Kodi and squeeze players using DLNA or UPnP or something. These work.

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.5.3

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Linux

OzGav commented 1 month ago

What is changing that is causing the failure?

P.S. The MA and integration versions you have reported are incorrect. Please fix that.

jds11111 commented 1 month ago

What is changing that is causing the failure?

P.S. The MA and integration versions you have reported are incorrect. Please fix that.

It is just an update to the docker container to whatever the latest version of MA is. This has been going on for at least the 10 last updates.

The integration page shows that version (2024.5.1) under the name. Should it be different somewhere else? The server version is 2.1.0b0. Is that what I should put?

OzGav commented 1 month ago

Correct on the versions.

Yes but what actually changes that you have to fix. Is it the IP address or something else or is is it nothing and you just have to “reload” the integration?

jds11111 commented 1 month ago

I see. I hit configure and the IP address is still there (http://192.168.1.4), bit shows no port number. I add the port number (http://192.168.1.4:8095) and it no longer shows failed to load.

OzGav commented 1 month ago

Ok this will get looked at further in due course.

jds11111 commented 1 month ago

OK, thanks. Please let me know if I can help with testing, of more info.

marcelveldt commented 2 weeks ago

Within the MA interface go to settings --> Core --> Webserver Check if the base URL is correct - that base url is reported in the discovery info so if that is wrong, HA just receives that info

jds11111 commented 2 weeks ago

That makes sense. But, the IP and port look OK in the settings.

OzGav commented 2 weeks ago

I think Marcel might have meant streamserver so check what you have here image

jds11111 commented 2 weeks ago

It lists a different port (8099) and the correct IP.

OzGav commented 2 weeks ago

You can disregard my comment. I didn't know you were running in docker. You should have the settings Marcel mentioned for the webserver so check there.

jds11111 commented 2 weeks ago

It is still correct, then.