You are not logged in.

#1 2011-07-20 02:25:34

xeyve
Member
Registered: 2011-07-20
Posts: 1

mpd issues

Hi,

I juste installed mpd and configure it to run as a deamon with /etc/mpd.conf :

[xeyve@myhost ~]$ cat /etc/mpd.conf 
music_directory       "/home/xeyve/Musique"         # Your music dir.
playlist_directory    "/var/lib/mpd/playlists"
db_file               "/var/lib/mpd/mpd.db"
log_file              "/var/log/mpd/mpd.log"
pid_file              "/var/run/mpd/mpd.pid"
state_file            "/var/lib/mpd/mpdstate"
user                  "mpd"

the probleme is that he can't find any of my music sad. I try to do some debugging but I can't solve this issue myself and after that mpd juste wont launch. So I came here in need of some help.

here is the output of some command that can by usefull:

[xeyve@myhost ~]$ cat /etc/rc.conf | grep DAEMONS
# DAEMONS
DAEMONS=(hwclock syslog-ng dbus @preload @alsa @wicd @mpd @netfs crond slim)
[xeyve@myhost ~]$ mpd
log: problem opening log file "/var/log/mpd/mpd.log" (config line 4) for writing
[xeyve@myhost ~]$ sudo chown 777 /var/log/mpd/mpd.log 
[xeyve@myhost ~]$ mpd
log: problem opening log file "/var/log/mpd/mpd.log" (config line 4) for writing
[xeyve@myhost ~]$ sudo mpd
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
music directory is not a directory: "/home/xeyve/Musique"
playlist directory is not a directory: "/var/lib/mpd/playlists"
Failed to load database: Failed to open database file "/var/lib/mpd/mpd.db": Permission denied
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
No protocol specified
xcb_connection_has_error() returned true
Failed to create secure directory: Permission denied
W: core-util.c: Failed to open configuration file '/var/lib/mpd/.pulse//daemon.conf': Permission non accordée
W: daemon-conf.c: Échec lors de l'ouverture du fichier de configuration : Permission non accordée
ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

alsa: Error opening default ALSA device: Connection refused
output: Attempting to detect a oss audio device
oss: Error opening OSS device "/dev/dsp": No such file or directory
oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
output: Attempting to detect a pulse audio device
Assertion 'm' failed at pulse/thread-mainloop.c:172, function pa_threaded_mainloop_lock(). Aborting.

in the hope that some one can help me

PS. sorry for the bad english its not my primary languag tongue

Offline

#2 2011-07-20 08:23:14

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: mpd issues

That's very simple (I hope big_smile). mpd runs with the rights of the user "mpd" (like you configured in your mpd.conf). Your music is in YOUR home directory, where the mpd user doesn't have access. So you should either run mpd as user "xeyve" or locate your music directory some place else.

Last edited by Army (2011-07-20 08:24:22)

Offline

Board footer

Powered by FluxBB