Ensemble icon indicating copy to clipboard operation
Ensemble copied to clipboard

No players (v1.6.0)

Open SpaceFrags opened this issue 11 months ago • 7 comments

Hello, thx for the fixes in the last version.

In this new version I have some problems, one of which is that i have no players inside the app when the version 1.4.0 displayed them correctly. I only have Google Cast players, but none are available and as such cannot try to play anything.

https://github.com/user-attachments/assets/2e72b4da-9557-44ac-9789-0a2013cb88aa

SpaceFrags avatar Dec 08 '25 15:12 SpaceFrags

Can you share some logs? What music assistant version are you on? And what Auth?

CollotsSpot avatar Dec 08 '25 15:12 CollotsSpot

MA 2.7.0 Beta 22 and Native MA Auth

Here the logs:

[19:19:21.881] MassivAudioHandler: Initializing...
[19:19:21.882] 🎵 AudioService initialized - background playback and media notifications ENABLED
[19:19:21.894] 🚀 AppStartup: Auto-connecting to saved server: http://192.168.1.10
[19:19:21.895] 🚀 AppStartup: Restoring saved auth credentials
[19:19:21.895] ✓ Restored music_assistant credentials from storage
[19:19:21.895] 🔐 Restoring saved auth credentials...
[19:19:21.895] ✓ Restored music_assistant credentials from storage
[19:19:21.895] 🔐 Auth credentials restored: music_assistant
[19:19:21.896] MassivAudioHandler: Initialized
[19:19:21.897] Original server URL: http://192.168.1.10
[19:19:21.897] Using WebSocket session ID: session_7f743670-ab0f-456f-a549-e86273eb49ce
[19:19:21.897] Using port 8095 for unsecure connection
[19:19:21.897] Attempting unsecure (WS) connection
[19:19:21.897] Final WebSocket URL: ws://192.168.1.10:8095/ws?client_id=session_7f743670-ab0f-456f-a549-e86273eb49ce
[19:19:21.897] Connection: No authentication configured
[19:19:21.899] 🗑️ Home screen cache invalidated
[19:19:21.899] 🗑️ All detail caches cleared
[19:19:21.899] Original server URL: http://192.168.1.10
[19:19:21.899] Using WebSocket session ID: session_87221039-141a-4fd8-95da-24de08dd2ec0
[19:19:21.899] Using port 8095 for unsecure connection
[19:19:21.899] Attempting unsecure (WS) connection
[19:19:21.899] Final WebSocket URL: ws://192.168.1.10:8095/ws?client_id=session_87221039-141a-4fd8-95da-24de08dd2ec0
[19:19:21.899] Connection: No authentication configured
[19:19:21.920] Received message: (server_id, server_version, schema_version, ..., homeassistant_addon, onboard_done)
[19:19:21.920] Received server info: 2.7.0b22 (schema: 28)
[19:19:21.920] Server: Requires authentication
[19:19:21.920] 🔗 WebSocket connected to MA server
[19:19:21.920] 🚀 Initializing after connection...
[19:19:21.920] 📥 Fetching initial state...
[19:19:21.920] Connection: Connected to server
[19:19:21.920] 🚀 AppStartup: Auto-connection successful
[19:19:21.920] ⚠️ Could not load provider manifests: Exception: Not connected to Music Assistant server
[19:19:21.920] ⚠️ Could not load provider instances: Exception: Not connected to Music Assistant server
[19:19:21.920] ✅ Initial state fetch complete
[19:19:21.920] Using existing player ID: ensemble_c3771ef1-a6c7-4b20-85bf-3bff5d22303b
[19:19:21.920] 🆔 Using player ID: ensemble_c3771ef1-a6c7-4b20-85bf-3bff5d22303b
[19:19:21.921] ❌ Operation failed after 1 attempts: Exception: Not connected to Music Assistant server
[19:19:21.921] Error getting players after retries: Exception: Not connected to Music Assistant server
[19:19:21.922] 🆔 Player not found in MA, registering as new
[19:19:21.923] 🎵 Registering player with MA: id=ensemble_c3771ef1-a6c7-4b20-85bf-3bff5d22303b, name=Emmanuel's Phone
[19:19:21.923] Player: Registering "Emmanuel's Phone" (attempt 1/3)
[19:19:21.923] Player: Registration attempt 1 failed - Exception: Not connected to Music Assistant server
[19:19:21.923] Player: Retrying... (attempt 2/3)
[19:19:21.928] Received message: (server_id, server_version, schema_version, ..., homeassistant_addon, onboard_done)
[19:19:21.928] Received server info: 2.7.0b22 (schema: 28)
[19:19:21.928] Server: Requires authentication
[19:19:21.928] 🔗 WebSocket connected to MA server
[19:19:21.928] 🔐 MA auth required, attempting authentication...
[19:19:21.928] Connection: Connected to server
[19:19:21.928] LocalPlayerService: Initializing with audio_service...
[19:19:21.928] LocalPlayerService: Initialized (using global audioHandler)
[19:19:21.928] 🔐 Trying stored MA token...
[19:19:21.928] 🔐 Authenticating WebSocket with token...
[19:19:21.929] ⏳ Registration already in progress, waiting...
[19:19:21.947] Received message: (message_id, result, partial)
[19:19:21.951] Received message: (message_id, result, partial)
[19:19:21.951] ✅ WebSocket authenticated successfully
[19:19:21.951] ✅ MA authentication with stored token successful
[19:19:21.952] ✅ MA authentication successful
[19:19:21.952] 🚀 Initializing after connection...
[19:19:21.952] 📥 Fetching initial state...
[19:19:21.958] Received message: (message_id, result, partial)
[19:19:21.958] 🔍 auth/me raw response keys: [message_id, result, partial]
[19:19:21.958] ✓ Got user info: username=mnl97, display_name=Emmanuel
[19:19:21.961] ✅ Set owner name from MA profile: Emmanuel
[19:19:21.963] 🔄 Fetching fresh recent albums...
[19:19:21.963] 🔄 Fetching fresh discover artists...
[19:19:21.964] 🔄 Fetching fresh discover albums...
[19:19:22.258] Received message: (message_id, result, partial)
[19:19:22.258] Received message: (message_id, result, partial)
[19:19:22.258] ✓ Provider manifests loaded
[19:19:22.260] Received message: (message_id, result, partial)
[19:19:22.260] Received message: (message_id, result, partial)
[19:19:22.260] ✅ Cached 10 discover artists
[19:19:22.260] ✅ Cached 10 discover albums
[19:19:22.281] Received message: (message_id, result, partial)
[19:19:22.281] ✓ Provider instances loaded
[19:19:22.281] ✅ Initial state fetch complete
[19:19:22.282] Received message: (message_id, result, partial)
[19:19:22.287] Received message: (message_id, result, partial)
[19:19:22.287] Received message: (message_id, result, partial)
[19:19:22.287] 🔍 auth/me raw response keys: [message_id, result, partial]
[19:19:22.287] ✓ Got user info: username=mnl97, display_name=Emmanuel
[19:19:22.288] ✅ Set owner name from MA profile: Emmanuel
[19:19:22.288] ⏳ Registration already in progress, waiting...
[19:19:22.296] Received message: (message_id, result, partial)
[19:19:22.297] Received message: (message_id, result, partial)
[19:19:22.298] Received message: (message_id, result, partial)
[19:19:22.298] 📚 Fetched 5 recent albums using 1 batch requests
[19:19:22.298] ✅ Cached 5 recent albums
[19:19:22.424] Player: Registering "Emmanuel's Phone" (attempt 2/3)
[19:19:22.428] Received message: (message_id, error_code, details)
[19:19:22.428] Command error: 12 - Invalid command: builtin_player/register
[19:19:22.428] Player: Registration attempt 2 failed - Exception: 12: Invalid command: builtin_player/register
[19:19:22.428] Player: Retrying... (attempt 3/3)
[19:19:23.431] Player: Registering "Emmanuel's Phone" (attempt 3/3)
[19:19:23.436] Received message: (message_id, error_code, details)
[19:19:23.436] Command error: 12 - Invalid command: builtin_player/register
[19:19:23.436] Player: Registration attempt 3 failed - Exception: 12: Invalid command: builtin_player/register
[19:19:23.436] Player: All 3 registration attempts failed
[19:19:23.436] ❌ CRITICAL: Player registration failed: Exception: 12: Invalid command: builtin_player/register
[19:19:23.436] ❌ Error during post-connection initialization: Exception: 12: Invalid command: builtin_player/register
[19:19:23.436] ❌ Error during post-connection initialization: Exception: 12: Invalid command: builtin_player/register

SpaceFrags avatar Dec 08 '25 19:12 SpaceFrags

I've just put out a release to make the players show up again. Unfortunately I can't get local playback working for music assistant beta 20+. They have replaced built-in players with sendspin, which I can't get working yet.

CollotsSpot avatar Dec 09 '25 09:12 CollotsSpot

I can see now the players with the last version 1.6.0, but a bit take a long time to start the music, and some times it stops and crash the music when trying to play the next song.

SpaceFrags avatar Dec 11 '25 20:12 SpaceFrags

@SpaceFrags looking at the ma discord, I'd say this is an issue with the beta

CollotsSpot avatar Dec 12 '25 08:12 CollotsSpot

This issue should now be fixed @SpaceFrags . Can you confirm?

CollotsSpot avatar Dec 18 '25 19:12 CollotsSpot

Yes, now the players are showing

SpaceFrags avatar Dec 19 '25 10:12 SpaceFrags