Poeschl/Hassio-Addons

Mopidy cannot see HA media files mounted via samba

ovizii opened this issue · 1 comments

Which addon?
mopidy

Describe the bug
Mopidy cannot see HA media files

To Reproduce

  1. Install add-on
  2. set media_folder to /media/nas-music
  3. Go to iris and browse: no files found
  4. See error

Expected behavior
I expected mopidy to see my files

System
Home Assistant 2023.2.2
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

Error from the logs:

WARNING  2023-02-06 10:43:35,026 [100:FileBackend-3 (_actor_loop)] mopidy.file.library
  Failed looking up file:///media/nas-music: gst-resource-error-quark: "/media/nas-music" is a directory. (5)
INFO     2023-02-06 10:43:49,336 [100:Thread-16] mopidy_iris.system

The samba shares is mounted via a shell command on HA>
"mkdir -p /media/nas-music;mount -t cifs -o vers=3.0,username=myself,password=secretpw //10.10.10.10/music /media/nas-music"

I can access and play the media from HA by clicking on Media => local media => NAS music

Btw. even if I leave the default config, I get the same error when using iris to browse to the local files.

image

doing this:

image

triggers this error:

WARNING  2023-02-10 09:58:26,524 [101:FileBackend-3 (_actor_loop)] mopidy.file.library
  Failed looking up file:///media/mopidy/media: gst-resource-error-quark: "/media/mopidy/media" is a directory. (5)