You are not logged in.

#1 2006-10-23 00:27:42

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

mpd 0.12.1 won't start [SOLVED]

Hello, community.
I just upgraded mpd to 0.12.1 and from then I cannot get it working.
As said in the change log I used to /etc/mpd.conf.example to build my new /etc/mpd.conf. But anyway each /etc/rc.d/mpd start or stop or restart will FAIL without any information about the occuring error.

Can someone give me an advice how I can get information about the error or even check my config file?

Thanks a lot. (:


Hail to the thief!

Offline

#2 2006-10-23 00:35:27

rawfuzz
Member
Registered: 2006-10-07
Posts: 16

Re: mpd 0.12.1 won't start [SOLVED]

Post the output of

tail ~/.mpd/mpd.error

Offline

#3 2006-10-23 00:45:53

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: mpd 0.12.1 won't start [SOLVED]

That's why I'm kind of clueless. There is no log. :


Hail to the thief!

Offline

#4 2006-10-23 01:43:18

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: mpd 0.12.1 won't start [SOLVED]

Try changing the log level to verbose?


I am a gated community.

Offline

#5 2006-10-23 01:55:54

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: mpd 0.12.1 won't start [SOLVED]

Yes, tried it but that won't work either. :


Hail to the thief!

Offline

#6 2006-10-23 03:49:48

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: mpd 0.12.1 won't start [SOLVED]

run the mpd command directly (use --help to find out how to point to the config file) and see what it outputs.

Offline

#7 2006-10-23 07:29:52

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: mpd 0.12.1 won't start [SOLVED]

Thanks a lot, that worked for me. Well not really worked but it displayed some errors and helped me fixing the mpd.conf.

First I defined two mixer types which was wrong. Second of all there's a problem running mpd as user nobody. Because nobody has neither a bash nor a home folder, mpd could not write ~/.mpd/mpd.log or something.
But there's still a question: I want to run mpd as the user nobody. Because there's no home folder I used again /etc/mpd to store all that files like log-file, error-file, etc. as I did in the preceding version of mpd but nobody seems not to be able to write this directory either:

problem opening log file "/etc/mpd/mpd.log" (config line 8) for writing

What's in fact not really surprising:

drwxr-xr-x 2 root root 4,0K 2006-10-23 09:30 mpd

But I'm not quite sure how to handle this best: Should I give write permission to nobody on /etc/mpd by simple owning it by nobody or by the user-group? Or shall I use another way?

Thanks a lot and sorry for my creepy english. big_smile


Hail to the thief!

Offline

#8 2006-10-23 13:52:30

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: mpd 0.12.1 won't start [SOLVED]

this is how i do it...

create a user mpd and have their home directory point to /var/lib/mpd or /home/mpd or whatever you want.  give them only permissions to that directory and nothing else.  use symlinks to point to all your music.

in mpd.conf, set the user to mpd.  and viola!  secure, quick and easy.

Offline

#9 2006-10-23 18:09:46

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: mpd 0.12.1 won't start [SOLVED]

hypermegachi wrote:

this is how i do it...

create a user mpd and have their home directory point to /var/lib/mpd or /home/mpd or whatever you want.  give them only permissions to that directory and nothing else.  use symlinks to point to all your music.

in mpd.conf, set the user to mpd.  and viola!  secure, quick and easy.

That's basically how I do it as well, but without the symlinks (although that technique is very common).  I have a <code>/home/share/music/</code> directory with the sticky bit set, so anyone using my computer could theoretically add their own music and be able to listen to everyone else's as well, but not remove other people's music.  I then have the mpd controlled stuff inside that music directory:

drwxr-xr-x  3 mpd   audio  208 2006-10-22 13:12 .mpd/

Offline

#10 2006-10-23 21:34:45

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: mpd 0.12.1 won't start [SOLVED]

Thanks for advice.I'll copy that. big_smile


Hail to the thief!

Offline

#11 2007-10-30 13:33:13

PierreAd
Member
Registered: 2007-05-07
Posts: 19

Re: mpd 0.12.1 won't start [SOLVED]

hypermegachi wrote:

run the mpd command directly (use --help to find out how to point to the config file) and see what it outputs.

Thanks for the advice, you've allowed me to solve my problem (mpd didn't find my playlists directory)

Offline

Board footer

Powered by FluxBB