Symlinks not working when browsing files


#1

I seem to not be able to browse my symlinked USB drive despite having “follow_symlinks” enabled. I have the file and local modules configured in the following way:

cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000

[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
debug_file = /var/log/mopidy/mopidy-debug.log
config_file = /etc/mopidy/logging.conf

[audio]
mixer = software
mixer_volume =
output = autoaudiosink
buffer_time =

[proxy]
scheme =
hostname =
port =
username =
password =

[material-webclient]
enabled = true
config_file = /etc/mopidy/mopidy.conf
power_control_enabled = false
system_settings_enabled = false
title = Mopidy

[gmusic]
enabled = true
username = ********
password = ********
bitrate = 160
deviceid = *******
all_access = true
refresh_library = 1440
refresh_playlists = 60
radio_stations_in_browse = true
radio_stations_as_playlists = false
radio_stations_count =
radio_tracks_count = 25

[scrobbler]
enabled = false  ; Extension disabled by user config.

[dleyna]
enabled = true
upnp_browse_limit = 1000
upnp_search_limit = 0

[spotify]
enabled = false  ; Extension disabled by user config.

[alsamixer]
enabled = true
card = 1
control = Digital

[youtube]
enabled = true

[local-sqlite]
enabled = true
directories =
  Albums                  local:directory?type=album
  Artists                 local:directory?type=artist
  Composers               local:directory?type=artist&role=composer
  Genres                  local:directory?type=genre
  Performers              local:directory?type=artist&role=performer
  Release Years           local:directory?type=date&format=%25Y
  Tracks                  local:directory?type=track
  Last Week's Updates     local:directory?max-age=604800
  Last Month's Updates    local:directory?max-age=2592000
timeout = 10
use_album_mbid_uri = true
use_artist_mbid_uri = false
use_artist_sortname = false

[spotify_tunigo]
enabled = true
region =
sub_genres = true
cache_time = 3600

[internetarchive]
enabled = true
retries = 3
browse_limit = 100
audio_formats =
  VBR MP3
  64Kbps MP3
base_url = http://archive.org
collections =
  audio
  etree
  librivoxaudio
  audio_bookspoetry
  audio_tech
  audio_music
  audio_news
  audio_foreign
  audio_podcast
  audio_religion
browse_views =
  downloads desc|Views
  titleSorter asc|Title
  publicdate desc|Date Archived
  date desc|Date Published
  creatorSorter asc|Creator
timeout = 10
cache_size = 128
search_limit = 20
cache_ttl = 86400
image_formats =
  JPEG
  JPEG Thumb
search_order =

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
  listall
  listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 0.0.0.0
port = 6680
static_dir =
zeroconf = Music Server on $hostname

[stream]
enabled = true
protocols =
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist =
timeout = 5000

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = /var/lib/mopidy/playlists

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs =
  /var/lib/mopidy/media
show_dotfiles = false
follow_symlinks = true
metadata_timeout = 1000

[local]
enabled = true
library = sqlite
media_dir = /var/lib/mopidy/media/USB
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = true
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

[soundcloud]
enabled = true
explore_songs = 25
auth_token = ********

[qsaver]
enabled = true
backup_file = /var/lib/mopidy/tracklist_backup.json

[spotify_web]
enabled = true
client_id = *****
client_secret = *****
mopidy_token_url = https://auth.mopidy.com/spotify/token
spotify_token_url = https://accounts.spotify.com/api/token
use_mopidy_oauth_bridge = true
refresh_token = please configure if you want to use spotify auth instead of mopidy swap service

[api_explorer]
enabled = true

[mobile]
enabled = true
title = Mopidy Mobile on $hostname
ws_url =

I have the following directory structure:

pi@echo:/var/lib/mopidy/media $ ls -lah
total 8.0K
drwxr-xr-x  3 mopidy audio 4.0K Feb 15 18:49 .
drwxr-xr-x 10 mopidy audio 4.0K Feb 24 11:42 ..
drwxr-xr-x  3 root   root     0 Feb 22 23:05 Network
lrwxrwxrwx  1 root   root    17 Feb 15 18:49 USB -> /var/run/usbmount

pi@echo:/var/lib/mopidy/media $ ls -la USB/
total 0
drwxr-xr-x  2 root root  60 Feb 22 23:05 .
drwxr-xr-x 20 root root 800 Feb 22 23:08 ..
lrwxrwxrwx  1 root root  11 Feb 22 23:05 SanDisk_Ultra_Fit_1 -> /media/usb0

pi@echo:/var/lib/mopidy/media $ ls -lah /media
total 44K
drwxr-xr-x  11 root root 4.0K Feb 15 18:41 .
drwxr-xr-x  21 root root 4.0K Feb  3 16:48 ..
drwxr-x---+  3 root root 4.0K Feb  3 15:42 pi
lrwxrwxrwx   1 root root    4 Feb 15 18:41 usb -> usb0
drwxrwxrwx  11 root root 4.0K Feb 16 00:56 usb0
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb1
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb2
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb3
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb4
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb5
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb6
drwxr-xr-x   2 root root 4.0K Feb 15 18:41 usb7
pi@echo:/var/lib/mopidy/media $

When scanning, the local module seems to pick up the files and they play fine but I can only see my networked files, mounted directly into a subdir of the “Network” directory above.

pi@echo:/var/lib/mopidy/media $ mpc ls /Files
Files/Network

Here’s the output from mopidy deps:

Executable: /usr/local/bin/mopidy
Platform: Linux-4.1.17-v7+-armv7l-with-debian-8.0
Python: CPython 2.7.9 from /usr/lib/python2.7
Mopidy: 2.0.0 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-dLeyna: 1.0.5 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.2: 1.2.1 from /usr/lib/python2.7/dist-packages
  uritools>=1.0: 1.0.1 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
Mopidy-Mobile: 1.6.9 from /usr/local/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify-Web: 0.3.0 from /usr/local/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  Mopidy-Spotify>=1.2.0: 3.0.0 from /usr/lib/python2.7/dist-packages
    Mopidy>=2.0: 2.0.0 from /usr/lib/python2.7/dist-packages
      Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
      requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
      tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
      cffi>=1.0.0: 1.1.2 from /usr/lib/python2.7/dist-packages
        pycparser: 2.10 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  requests: 2.4.3 from /usr/lib/python2.7/dist-packages
  spotipy: 2.3.7 from /usr/local/lib/python2.7/dist-packages
    requests>=1.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-ALSAMixer: 1.0.3 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  pyalsaaudio: 0.7 from /usr/lib/python2.7/dist-packages
Mopidy-GMusic: 1.0.0 from /home/pi/mopidy-gmusic
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  gmusicapi>=6.0: 8.0.0 from /usr/local/lib/python2.7/dist-packages
    validictory>=0.8.0,!=0.9.2: 1.0.1 from /usr/local/lib/python2.7/dist-packages
    decorator>=3.3.1: 4.0.9 from /usr/local/lib/python2.7/dist-packages
    mutagen>=1.18: 1.31 from /usr/local/lib/python2.7/dist-packages
    requests>=1.1.0,!=1.2.0,!=2.2.1,<2.8.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    python-dateutil>=1.3,!=2.0: 2.4.2 from /usr/local/lib/python2.7/dist-packages
      six>=1.5: 1.8.0 from /usr/lib/python2.7/dist-packages
    proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages
    oauth2client>=1.1: 2.0.0 from /usr/local/lib/python2.7/dist-packages
      httplib2>=0.9.1: 0.9.2 from /usr/local/lib/python2.7/dist-packages
      pyasn1>=0.1.7: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      pyasn1-modules>=0.0.5: 0.0.8 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.8: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      rsa>=3.1.4: 3.3 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.3: 0.1.9 from /usr/local/lib/python2.7/dist-packages
      six>=1.6.1: 1.8.0 from /usr/lib/python2.7/dist-packages
    mock>=0.7.0: 1.3.0 from /usr/local/lib/python2.7/dist-packages
      funcsigs: 0.4 from /usr/local/lib/python2.7/dist-packages
      six>=1.7: 1.8.0 from /usr/lib/python2.7/dist-packages
      pbr>=0.11: 1.8.1 from /usr/local/lib/python2.7/dist-packages
    appdirs>=1.1.0: 1.4.0 from /usr/local/lib/python2.7/dist-packages
    gpsoauth==0.2.0: 0.2.0 from /usr/local/lib/python2.7/dist-packages
      pycryptodome>=3.0: 3.4 from /usr/local/lib/python2.7/dist-packages
      requests: 2.4.3 from /usr/lib/python2.7/dist-packages
    MechanicalSoup: 0.4.0 from /usr/local/lib/python2.7/dist-packages
      beautifulsoup4: 4.4.1 from /usr/local/lib/python2.7/dist-packages
      six>=1.4: 1.8.0 from /usr/lib/python2.7/dist-packages
      requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    pyopenssl: 0.13.1 from /usr/lib/python2.7/dist-packages
    ndg-httpsclient: 0.4.0 from /usr/local/lib/python2.7/dist-packages
      PyOpenSSL: 0.13.1 from /usr/lib/python2.7/dist-packages
    pyasn1: 0.1.9 from /usr/local/lib/python2.7/dist-packages
    future: 0.15.2 from /usr/local/lib/python2.7/dist-packages
    protobuf>=2.6.1: 2.6.1 from /usr/local/lib/python2.7/dist-packages
      setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-InternetArchive: 2.0.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.1: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  cachetools>=1.0: 1.0.0 from /usr/lib/python2.7/dist-packages
  uritools>=1.0: 1.0.1 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
Mopidy-Qsaver: 0.2.6 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=0.19.5: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
Mopidy-API-Explorer: 1.0.1 from /usr/local/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-Scrobbler: 1.1.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.18: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  pylast>=0.5.7: 1.0.0 from /usr/lib/python2.7/dist-packages
Mopidy-Local-SQLite: 1.0.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.1: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  uritools>=1.0: 1.0.1 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
    ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
Mopidy-Youtube: 2.0.0 from /usr/lib/python2.7/dist-packages
  requests>=2.2.1: 2.4.3 from /usr/lib/python2.7/dist-packages
  pafy>=0.3.35: 0.3.62 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify-Tunigo: 1.0.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=0.19.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Mopidy-Spotify>=1.2.0: 3.0.0 from /usr/lib/python2.7/dist-packages
    Mopidy>=2.0: 2.0.0 from /usr/lib/python2.7/dist-packages
      Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
      requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
      tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
      cffi>=1.0.0: 1.1.2 from /usr/lib/python2.7/dist-packages
        pycparser: 2.10 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  tunigo>=1.0.0: 1.0.0 from /usr/lib/python2.7/dist-packages
    requests>=2.0.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-SoundCloud: 2.0.2 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-Material-Webclient: 0.2.2 from /home/pi/Mopidy-Material-Webclient
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  wifi>=0.3.4: 0.3.6 from /usr/local/lib/python2.7/dist-packages
    setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
    pbkdf2: 1.3 from /usr/local/lib/python2.7/dist-packages
Mopidy-Spotify: 3.0.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=2.0: 2.0.0 from /usr/lib/python2.7/dist-packages
    Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
    requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
    cffi>=1.0.0: 1.1.2 from /usr/lib/python2.7/dist-packages
      pycparser: 2.10 from /usr/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
GStreamer: 1.4.4.0 from /usr/lib/python2.7/dist-packages/gi
  Detailed information:
    Python wrapper: python-gi 3.14.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mad
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec

#2

any news on that? I’m trying the latest mopidy to scan my mounted musik files, however there are not seen at all.


#3

Same issue here, I’ve posted similar thread long time ago and got no response.


#4

Same issue with a USB drive (2.1.0 Debian Testing).

“file” does not show any files when symlink enabled, but “local” has no problem scanning them.

I can also list all my files in the folder that has the symlinks with “find -L FOLDERWITHSYMLINKS”