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.37k stars 52 forks source link

No players and no group players are visible under the Player tab in the MASS Settings #1846

Closed Mustreg closed 9 months ago

Mustreg commented 9 months ago

What version of Music Assistant has the issue?

2024.1.0 (2.0.0b90)

The problem

  1. No players are visible under the "Players" tab in MASS (Current version: 2.0.0b90)
  2. Unable to add players to Universal Group Player/Sonos groups as players are not available for selection.
  3. Howerver, the players are visible on the "blue" icon selection list and under the devices list in HA.
  4. I can play music from Tidal to those individual players in MASS without any problems
  5. I have tried to reinstall/restart/reconfigure MASS many times to no avail

How to reproduce

  1. Check the content (empty) displayed under the player tab in the Mass settings
  2. Try to create new Universal or Sonos player group

Relevant log output

2024-01-29 19:43:54.356 INFO (MainThread) [music_assistant] Starting Music Assistant Server (***) version 2.0.0b90 - uvloop: False 2024-01-29 19:43:54.365 INFO (MainThread) [music_assistant.cache] Initializing cache controller... 2024-01-29 19:43:54.373 INFO (MainThread) [music_assistant.cache] Running automatic cleanup... 2024-01-29 19:43:54.380 INFO (MainThread) [music_assistant.webserver] Starting server on 172.30.32.1:8095 - base url: http://172.30.32.1:8095 2024-01-29 19:43:54.440 INFO (MainThread) [music_assistant.cache] Automatic cleanup finished (cleaned up 0 records) 2024-01-29 19:43:54.592 INFO (MainThread) [music_assistant.music] Using a sync interval of 180 minutes. 2024-01-29 19:43:54.784 INFO (MainThread) [music_assistant.streams] Detected ffmpeg version 5.1.4 with libsoxr support 2024-01-29 19:43:54.784 INFO (MainThread) [music_assistant.streams] Starting server on 0.0.0.0:8096 - base url: http://192.168.178.62:8096 2024-01-29 19:43:55.262 INFO (MainThread) [music_assistant] Loaded player provider UPnP/DLNA Player provider 2024-01-29 19:43:55.262 INFO (MainThread) [music_assistant] Loaded metadata provider fanart.tv Metadata provider 2024-01-29 19:43:55.262 INFO (MainThread) [music_assistant] Loaded music provider URL 2024-01-29 19:43:55.264 INFO (MainThread) [music_assistant] Loaded metadata provider MusicBrainz Metadata provider 2024-01-29 19:43:55.264 INFO (MainThread) [music_assistant] Loaded metadata provider TheAudioDB Metadata provider 2024-01-29 19:43:55.266 INFO (MainThread) [music_assistant] Loaded player provider Universal Group Player 2024-01-29 19:43:55.272 INFO (MainThread) [music_assistant] Loaded player provider SONOS 2024-01-29 19:43:55.273 INFO (MainThread) [music_assistant.music] Sync task for URL completed 2024-01-29 19:43:55.336 INFO (MainThread) [music_assistant] Loaded player provider Chromecast 2024-01-29 19:43:55.338 INFO (MainThread) [music_assistant.providers.slimproto--VHwwRtZB] Started SLIMProto server on port 3483 2024-01-29 19:43:55.339 INFO (MainThread) [music_assistant.providers.slimproto--VHwwRtZB.cli] Registering jsonrpc endpoints on the webserver 2024-01-29 19:43:55.348 INFO (MainThread) [music_assistant] Loaded music provider Filesystem (local disk) 2024-01-29 19:43:55.351 INFO (MainThread) [music_assistant.providers.slimproto--VHwwRtZB.cli] Starting (telnet) CLI on port 9090 2024-01-29 19:43:55.356 INFO (MainThread) [music_assistant] Loaded player provider Slimproto 2024-01-29 19:43:55.720 INFO (MainThread) [music_assistant.players] Player registered: uuid:**/Denon Player Heos SLN 2024-01-29 19:43:55.869 INFO (MainThread) [music_assistant] Loaded music provider Tidal 2024-01-29 19:43:55.886 INFO (MainThread) [musicassistant.players] Player registered: RINCON*Sonos Roam 1 2024-01-29 19:43:55.890 WARNING (MainThread) [soco.events_asyncio] Could not bind to 192.168.178.62:1400: [Errno 98] Address already in use 2024-01-29 19:43:56.047 INFO (MainThread) [musicassistant.players] Player registered: RINCON****/Bedroom 2024-01-29 19:43:56.273 INFO (MainThread) [music_assistant] Loaded player provider Airplay 2024-01-29 19:43:56.330 INFO (MainThread) [music_assistant.players] Player registered: aa:/Bedroom 2024-01-29 19:43:56.605 INFO (MainThread) [music_assistant.players] Player registered: aa:/Sonos Roam 1

Additional information

image image image image

What version of Home Assistant Core are your running

2024.1.5

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)

marcelveldt commented 9 months ago

Are you sure there are no other errors in the log ? Did you try to force refresh the browser to rule out some cache issue ?

Mustreg commented 9 months ago
  1. I cannot see any other relevant entries in the log.

  2. As already indicated above, I unistalled and re-installed MASS from scratch (also removed the MA repositories from both HACS & Add-ons and re-downloaded them, even trying different beta versions) restarted / reconfigurd MA integration multimple times but without any success as far as the Players tab in the settings is concnered.

  3. Please note that I can send music to these individual detected MA players and they play correctly. Everything at this end seems to be working correctly. Howerver the players / groups of players are not visible under the Players tab in the MA settings.

  4. Also, when I create a new empty group player (without any members as they are not available), it is not visible under the players tab in the MA settings. Howerver, they appear in the HA devices list.

  5. I have tried accessing the Players tab in the MA settings from different browsers and computers including my smartphone.

image image

marcelveldt commented 9 months ago

What a strange issue - I will do my best to try to reproduce this issue.

Can you go to the MA settings --> core tab and download the logfile there ? Please attach it here so I can have a look. Please allow the server to start for 5 to 10 minutes before collecting the log

marcelveldt commented 9 months ago

I was able to reproduce this issue on a complete fresh installation. I'll prepare a fix for next release

Mustreg commented 9 months ago

Thank you very much for looking into this issue!

(I sort of suspected this might be related to a fresh installation...)

OzGav commented 9 months ago

This should be fixed in beta 92 please advise if not

Mustreg commented 9 months ago

After applying the new version 2.0.0b92 to the existing installation the players were still missing. However, after I removed the MA addon and reinstalled the 2.0.0b92 addon from scratch my players reappeard on the players tab in the settings. Therefore the issue has been solved. Thank you very much!

Smarthome-Creator commented 8 months ago

@Mustreg I had the same problem. The only solution is to reinstall the MA addon.

But I still can't create universal player groups. No Data available. Does that work for you now?

charlesomer commented 8 months ago

First time install here, running 2.0.0b98 and I can't see any devices in groups.

marcelveldt commented 8 months ago

This is fixed in beta 99

charlesomer commented 8 months ago

Excellent that worked thank you :)