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

Music Assistant Server shows No media #1311

Closed Sonusss closed 1 year ago

Sonusss commented 1 year ago

What version of Music Assistant has the issue?

ghcr.io/music-assistant/server:38af96a5

The problem

The web server shows no media.

I correctly mounted local path for docker, my command: docker run --init -d --name mass --network host --privileged -v /home/docker/mass:/data -v /home/media:/media ghcr.io/music-assistant/server

getting into container bash (docker exec -it mass /bin/bash) I can see media dirs and files:

ls /media
'2013. Nina Simone - The Very Best Of Nina Simone'   Gary              New              dconf-settings
 48K                            'Hang Music'          'Orange Blossom'    transcode
 Bangladesh                     'Jali_-_Espanola_(acoustique).mp3'     Raul2
'Cafe De Anatolia - Best of 2018.mp3'          MP3-Audi                Reggaeton
'Fatoumata Diawara - Fatou (2011)'            'MUSIQUE SENEGALAISE'      Thunderbird.Roaming-mu

How to reproduce

I tried with same results on two different docker hosts...

Relevant log output

2023-06-12 15:16:41,467 INFO music_assistant -- Starting Music Assistant Server (44089a1faa7b453e9d9993c50456ecdf) - autodetected IP-address: 10.10.0.25 2023-06-12 15:16:41,517 INFO music_assistant.web -- Starting webserver on port 8095 2023-06-12 15:16:41,858 INFO music_assistant.streams -- Started stream controller (using ffmpeg version 4.3.6 with libsoxr support) 2023-06-12 15:16:42,121 INFO music_assistant -- Loaded metadata provider TheAudioDB Metadata provider 2023-06-12 15:16:42,121 INFO music_assistant -- Loaded metadata provider fanart.tv Metadata provider 2023-06-12 15:16:42,122 INFO music_assistant -- Loaded metadata provider MusicBrainz Metadata provider 2023-06-12 15:16:42,123 INFO music_assistant -- Loaded player provider SONOS 2023-06-12 15:16:42,127 INFO music_assistant -- Loaded player provider UPnP/DLNA Player provider 2023-06-12 15:16:42,127 INFO music_assistant -- Loaded plugin provider Websocket API 2023-06-12 15:16:42,128 INFO music_assistant -- Loaded music provider URL 2023-06-12 15:16:42,131 INFO music_assistant -- Loaded player provider Chromecast 2023-06-12 15:16:42,133 INFO music_assistant.providers.slimproto -- Started SLIMProto server on port 3483 2023-06-12 15:16:42,134 INFO music_assistant.providers.slimproto.cli -- Registering jsonrpc endpoints on the webserver 2023-06-12 15:16:42,136 INFO music_assistant.providers.slimproto.cli -- Starting (telnet) CLI on port 9090 2023-06-12 15:16:42,138 INFO music_assistant -- Loaded player provider Slimproto 2023-06-12 15:16:43,147 INFO music_assistant -- Loaded player provider Airplay 2023-06-12 15:16:43,964 WARNING asyncio -- Executing <Task finished name='Task-2' coro=<run..new_coro() done, defined at /usr/local/lib/python3.11/site-packages/aiorun.py:227> result=None> took 0.812 seconds 2023-06-12 15:16:43,997 INFO music_assistant.players -- Player registered: aa:aa:e3:f9:c4:cb/AudioCast_9190-2 2023-06-12 15:18:41,301 INFO music_assistant -- Loaded player provider UPnP/DLNA Player provider 2023-06-12 15:20:42,629 WARNING aiorun -- Stopping the loop 2023-06-12 15:20:42,630 INFO aiorun -- Entering shutdown phase. 2023-06-12 15:20:42,630 INFO aiorun -- Executing provided shutdown_callback. 2023-06-12 15:20:42,631 INFO root -- shutdown requested! 2023-06-12 15:20:42,632 INFO music_assistant -- Stop called, cleaning up... 2023-06-12 15:20:43,662 INFO aiorun -- Cancelling pending tasks. 2023-06-12 15:20:43,662 INFO aiorun -- Waiting for executor shutdown. 2023-06-12 15:20:43,663 INFO aiorun -- Shutting down async generators 2023-06-12 15:20:43,665 INFO aiorun -- Closing the loop. 2023-06-12 15:20:43,665 INFO aiorun -- Leaving. Bye! 2023-06-12 15:22:04,088 INFO music_assistant -- Starting Music Assistant Server (44089a1faa7b453e9d9993c50456ecdf) - autodetected IP-address: 10.10.0.25 2023-06-12 15:22:04,107 INFO music_assistant.web -- Starting webserver on port 8095 2023-06-12 15:22:04,280 INFO music_assistant.streams -- Started stream controller (using ffmpeg version 4.3.6 with libsoxr support) 2023-06-12 15:22:04,463 INFO music_assistant -- Loaded metadata provider TheAudioDB Metadata provider 2023-06-12 15:22:04,463 INFO music_assistant -- Loaded metadata provider fanart.tv Metadata provider 2023-06-12 15:22:04,464 INFO music_assistant -- Loaded metadata provider MusicBrainz Metadata provider 2023-06-12 15:22:04,465 INFO music_assistant -- Loaded player provider SONOS 2023-06-12 15:22:04,468 INFO music_assistant -- Loaded player provider UPnP/DLNA Player provider 2023-06-12 15:22:04,468 INFO music_assistant -- Loaded plugin provider Websocket API 2023-06-12 15:22:04,469 INFO music_assistant -- Loaded music provider URL 2023-06-12 15:22:04,472 INFO music_assistant -- Loaded player provider Chromecast 2023-06-12 15:22:04,474 INFO music_assistant.providers.slimproto -- Started SLIMProto server on port 3483 2023-06-12 15:22:04,474 INFO music_assistant.providers.slimproto.cli -- Registering jsonrpc endpoints on the webserver 2023-06-12 15:22:04,476 INFO music_assistant.providers.slimproto.cli -- Starting (telnet) CLI on port 9090 2023-06-12 15:22:04,480 INFO music_assistant -- Loaded player provider Slimproto 2023-06-12 15:22:04,848 INFO music_assistant.players -- Player registered: uuid:FF310001-A06C-C39B-FFFC-81C3FF310001/Office 2023-06-12 15:22:05,493 INFO music_assistant -- Loaded player provider Airplay 2023-06-12 15:22:06,307 WARNING asyncio -- Executing <Task finished name='Task-2' coro=<run..new_coro() done, defined at /usr/local/lib/python3.11/site-packages/aiorun.py:227> result=None> took 0.809 seconds 2023-06-12 15:22:06,337 INFO music_assistant.players -- Player registered: aa:aa:e3:f9:c4:cb/Office

Additional information

No response

What version of Home Assistant Core are your running

Not relevant

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

OzGav commented 1 year ago

Please confirm which music provider you added to access those files and what settings you used

Sonusss commented 1 year ago

I don't really understand the question ... No music provider, just want to access locally stored music files

Sonusss commented 1 year ago

Sorry,

All my apologies ! I just figured out that Local Filesystem is a music provider...