Problem: mpd --create-db (as well as mpc update) does not detect all of my files.
I have a suspicion that it might depend on permission settings. mpd runs on machine1 and my music directory is in /home/foo/media/music on machine2 - its parent dir being NFS-mounted on /media.
I can ls or mpg123 without any problem in the mounted directory. The output of ls -l will be the same whether I do it as my own user on machine1 or as user foo on machine2.
foo has uid 1000.
Code:
# /etc/exports on machine2
/home/foo/media ip-of-machine1(rw,anonuid=1000,anongid=1000)
Code:
# /etc/mpd.conf on machine1
music_directory "/media/music"
playlist_directory "var/lib/mpd/playlists"
db_file"/var/lib/mpd/database"
log_file "/var/log/mpd/mpd.log"
error_file "var/log/mpd/mpd.error.log"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/state"
user "mpd"
bind_to_address "localhost"
port "6600"
filesystem_charset "UTF-8"