LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mpd --create-db doesn't find new files in music directory (https://www.linuxquestions.org/questions/linux-software-2/mpd-create-db-doesnt-find-new-files-in-music-directory-561300/)

Arla 06-12-2007 04:55 PM

mpd --create-db doesn't find new files in music directory
 
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"


Arla 06-14-2007 11:18 AM

Okay, I have now applied a solution that I'm not quite happy with. If anyone has something to say about it, please do.

Did the following changes to /etc/mpd.conf:
user "me"
playlist_directory "/home/arla/.mpd/playlists"
db_file "/home/arla/.mpd/database"
log_file "/home/arla/.mpd/mpd.log"
error_file "/home/arla/.mpd/mpd.error.log"
# pid_file "/var/run/mpd/mpd.pid"

Then created .mpd and its files.


All times are GMT -5. The time now is 08:50 PM.