You are not logged in.

#1 2011-03-24 09:32:47

ekenbrand
Member
From: Argentina
Registered: 2010-06-21
Posts: 28

[SOLVED]Mpd error

Hi, im trying to install mpd but im finding it harder than i thought, so i was hoping someone could share his wisdom with me.

I been following the wiki alternative setup but after creating all the files i try to start mpd and get the following error:

mpd /home/ekenbrand/.mpd/mpd.conf 
daemon: cannot setgid to 92: Operation not permitted

If i try it using sudo i get this other message:

music directory is not a directory: "/home/ekenbrand/musica"
playlist directory is not a directory: "/home/ekenbrand/.mpd/playlists"
Failed to load database: Failed to open database file "/home/ekenbrand/.mpd/mpd.db": Permission denied
database: Couldn't stat parent directory of db file "/home/ekenbrand/.mpd/mpd.db": Permission denied

Heres some info

sudo cat /etc/group | grep 92
audio::92:mpd,ekenbrand

groups ekenbrand
lp wheel video audio optical storage power sudo users

ls -al .mpd/
total 20
drwxr-xr-x  3 ekenbrand audio 4096 Mar 24 06:21 .
drwx------ 40 ekenbrand users 4096 Mar 24 06:21 ..
-rw-r--r--  1 ekenbrand audio 7200 Mar 24 06:21 mpd.conf
-rw-r--r--  1 ekenbrand audio    0 Mar 24 06:02 mpd.db
-rw-r--r--  1 ekenbrand audio    0 Mar 24 04:47 mpd.log
-rw-r--r--  1 ekenbrand audio    0 Mar 24 04:47 mpd.pid
-rw-r--r--  1 ekenbrand audio    0 Mar 24 04:47 mpdstate
drwxr-xr-x  2 ekenbrand audio 4096 Mar 24 04:05 playlists

mpd.conf

music_directory    "/home/ekenbrand/musica"
playlist_directory     "/home/ekenbrand/.mpd/playlists"
db_file                 "/home/ekenbrand/.mpd/mpd.db"
log_file                 "/home/ekenbrand/.mpd/mpd.log"
pid_file                 "/home/ekenbrand/.mpd/mpd.pid"
state_file                 "/home/ekenbrand/.mpd/mpdstate"
user             "mpd"
group            "audio"

I must say i've tried disabling mpd group, changed folder group and permissions, the same errors appear.  I have also tried doing a clean install and searched the wiki but had no luck.

Thanks in advance for your help

Last edited by ekenbrand (2011-03-24 23:25:45)

Offline

#2 2011-03-24 09:56:30

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED]Mpd error

try this:

rm -vrf ~/.mpd
mkdir -p ~/.mpd/playlists

music_directory "/home/ekenbrand/musica"
playlist_directory "/home/ekenbrand/.mpd/playlists"
db_file "/home/ekenbrand/.mpd/mpd.db"
log_file "/home/ekenbrand/.mpd/mpd.log"
pid_file "/home/ekenbrand/.mpd/mpd.pid"
state_file "/home/ekenbrand/.mpd/mpd.state"
user "ekenbrand"
group "users"

into ~/.mpd.conf
mpd ~/.mpd.conf

Last edited by JokerBoy (2011-03-24 09:56:44)

Offline

#3 2011-03-24 22:19:13

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: [SOLVED]Mpd error

I think JokerBoy has your solution.  When I do the alternate setup I make the user myself and not mpd.  This resolves the permission issues you are seeing when trying to access local files and directories.


I laugh, yet the joke is on me

Offline

#4 2011-03-24 22:56:51

ekenbrand
Member
From: Argentina
Registered: 2010-06-21
Posts: 28

Re: [SOLVED]Mpd error

Great, it worked thanks!

Offline

Board footer

Powered by FluxBB