You are not logged in.
Pages: 1
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
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.
Online
The only reference to it is commented out
خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش
Offline
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.
Online
yes, I've set it to ~/.mpd/playlists
خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش
Offline
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
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
During bootup, mpd does not know that "~" is your home folder. Use "/home/<user>/playlists"
Online
okay i'll try that
خيام اگر ز باده مستى خوش باش
با ماه رخى اگر نشستى خوش باش
چون عاقبت كار جهان نيستى است
انگار كه نيستى، چو هستى خوش باش
Offline
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
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
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
Pages: 1