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

Cannot add home assistant as provider #2551

Closed Kdubs937 closed 3 days ago

Kdubs937 commented 3 days ago

What version of Music Assistant has the issue?

2.0.7

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

2024.6.2

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

The problem

When I try to setup home assistant as a provider it connects to home assistant and stops at getting a long lived access token and just hangs.

Background: Music Assistant has been working fine. I have it installed via docker on a separate host from home assistant. Today I wanted to add my picoreplayer to music assistant. I enabled the provider SlimProto and changed the ports to meet my needs. (only changed port 9000 to 9010) It connected but said just had an error that said domain in red on the screen. Logitech media server and music assistant are both installed via docker compose (Portainer stack) and on the same host. Music assistant would no longer work so i deleted the container and storage. Started the container back up and now it will not connect to HA. In HA the server is auto-discovered and connects right away with no errors.

For troubleshooting I have stopped LMS and picoreplayers, deleted and reinstalled music assistant from HACS, restored HA from an older backup. Deleted all of the the long lived access tokens. Restarted all computers and my router. Tried installing music assistant via docker on another computer. Tried to setup the provider using my domain and the local IP of home assistant. Nothing has helped and I'm feeling a bit dumb right now because I'm sure its something simple.

Screenshot 2024-06-29 225944

How to reproduce

Start container using the docker compose provided. Try to add Home Assistant as plugin provider.

Music Providers

none

Player Providers

none

Full log output

_music-assistant-server_logs (1).txt

Additional information

Working fine prior to trying to enable SlimProto in Music Assistant.

What version of Home Assistant Core are your running

2024.6.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

Kdubs937 commented 3 days ago

Right after I posted this the screen that was sitting for a few hours connected. Everything is fine now. Not sure what the issue was. Apologies.