You are not logged in.

#1 2013-01-02 23:29:27

snufkin
Member
From: Sweden
Registered: 2008-11-08
Posts: 71

[SOLVED] mpd: Failed to stat /var/lib/mpd/music: Permission denied

I've set up mpd according to the wiki.

/etc/mpd.conf:

music_directory		"/var/lib/mpd/music"
playlist_directory		"/var/lib/mpd/playlists"
db_file			"/var/lib/mpd/mpd.db"
log_file			"/var/log/mpd/mpd.log"
pid_file			"/run/mpd/mpd.pid
state_file			"/var/lib/mpd/mpdstate"

user				"mpd"

audio_output {
	type		"pulse"
	name		"My Pulse Output"
#	server		"remote_server"		# optional
#	sink		"remote_server_sink"	# optional
}

/var/lib/mpd/music is a symlink to /home/dennis/Musik/mpd/. I've given the mpd user recursive ownership to both /var/lib/mpd/ and /home/dennis/Musik/mpd/.

When I try to update the database (I've tried both mpc and Sonata), the log says

Failed to stat /var/lib/mpd/music: Permission denied

What permission am I missing?

SOLUTION:
I used the script config instead and it worked flawlessly.

Last edited by snufkin (2013-01-03 00:18:44)

Offline

Board footer

Powered by FluxBB