You are not logged in.

#1 2008-10-04 03:17:11

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

MPD ignoring conf? [solved]

MPD fails at boot and with /etc/rc.d/mpd start, but with mpd command it works fine.
I have ~/.mpdconf set up to use home folder directories but I get this when I do /usr/bin/mpd --stdout --no-daemon --verbose;
binding to address for 127.0.0.1
flushing warning messages
done flushing warning messages
cannot open playlist_directory "/var/lib/mpd/playlists/" (config line 6): No such file or directory

I have no clue what's going on here and I really like mpd+sonata so this is very frustrating
thanks

Last edited by ahunavairya (2008-10-04 09:05:21)


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#2 2008-10-04 03:23:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: MPD ignoring conf? [solved]

ahunavairya wrote:

cannot open playlist_directory "/var/lib/mpd/playlists/" (config line 6): No such file or directory

Well, that seems to be your problem.  Search you mpd.conf for reference to that folder and make sure you have changed it to the place you want it to be.

Offline

#3 2008-10-04 03:34:14

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

The only reference to it is commented out


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#4 2008-10-04 03:41:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: MPD ignoring conf? [solved]

Do you set the playlist_directory to be somewhere else?  From memory (which could be wrong...) that is the default location so if you do not want to create that directory, you need to point it somewhere else.

Offline

#5 2008-10-04 03:42:51

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

yes, I've set it to ~/.mpd/playlists


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#6 2008-10-04 03:44:18

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Re: MPD ignoring conf? [solved]

From the mpd manpage:

MPD searches for a config file in ~/.mpdconf then /etc/mpd.conf

I think the reason mpd doesn't work on boot (or with /etc/rc.d/mpd start), is because it doesn't know in what users home folder to look for .mpdconf (and possible doesn't have the rights to do so). So I guess if you start it on boot it uses /etc/mpd.conf.

cannot open playlist_directory "/var/lib/mpd/playlists/" (config line 6): No such file or directory

Do you get the same error if you tell mpd explicitly what config file to use?

/usr/bin/mpd --stdout --no-daemon --verbose ~/.mpdconf

should do the trick.
If you do get the same message, could you post line 6 of your config file?:P


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

#7 2008-10-04 03:52:11

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

god it gives me the same thing. :\

Also, i've got /etc/mpd.conf and ~/.mpdconf exactly the same so I don't think it matters which it chooses, and as resquested line 6 of config: playlist_directory              "~/playlists"


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#8 2008-10-04 04:05:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: MPD ignoring conf? [solved]

During bootup, mpd does not know that "~" is your home folder.  Use "/home/<user>/playlists"

Offline

#9 2008-10-04 04:08:43

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

okay i'll try that


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#10 2008-10-04 04:13:53

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

I got it working but it also says this
/bin/touch: cannot touch `/var/run/daemons/mpd': Permission denied

should that worry me?

Last edited by ahunavairya (2008-10-04 05:10:18)


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

#11 2008-10-04 08:20:58

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: MPD ignoring conf? [solved]

Are you launching mpd as root or with sudo? If not, you should try that next after adding your user to the conf file like

user  "yourUser"

This way mpd launches with root privlidges, sets the daemon up and then drops the root privlidges after it's all up and running. Also if you define the user in your config, you may use '~' to point to your home folder.
Cheers

Offline

#12 2008-10-04 09:04:55

ahunavairya
Member
Registered: 2008-10-01
Posts: 25

Re: MPD ignoring conf? [solved]

ok, I've got it running as a daemon now and if i have to restart i do it with sudo and there are no issues, thanks alot for the help! :]


خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش

Offline

Board footer

Powered by FluxBB