mpd logging can't work by design and doesn't work for me

Bug #786239 reported by Manuel Bärenz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mpd (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

Binary package hint: mpd

The logging settings in /etc/mpd.conf can't work.

line 62:
user "mpd"
line 37:
log_file "/var/log/mpd/mpd.log"

ls -l /var/log/mpd/mpd.log gives:
-rw-r--r-- 1 root root 68415 2011-05-21 18:53 /var/log/mpd/mpd.log

The user mpd is in the audio group, so it doesn't have privileges to log. This results in the following error:
log: problem opening log file "/var/log/mpd/mpd.log" (config line 37) for writing

Starting "sudo mpd" fixes it, but this is not what we want.

Revision history for this message
Matt Wheeler (funkyhat) wrote : Re: [Bug 786239] [NEW] mpd logging can't work by design and doesn't work for me

2011/5/21 Manuel Bärenz <email address hidden>:
[snip]
> The user mpd is in the audio group, so it doesn't have privileges to log. This results in the following error:
> log: problem opening log file "/var/log/mpd/mpd.log" (config line 37) for writing
>
> Starting "sudo mpd" fixes it, but this is not what we want.

How are you starting the daemon? It should be started by "sudo service
mpd start" in which case mpd seems to open the log file with no
problems.

--
Matt Wheeler
<email address hidden>

Revision history for this message
Manuel Bärenz (turion) wrote :

I started it myself and not as a service in order to be able to use JACK, which I started myself (and not as root) as well.
I wasn't aware that starting it as a service is the default way.

Revision history for this message
Matt Wheeler (funkyhat) wrote : Re: [Bug 786239] Re: mpd logging can't work by design and doesn't work for me

2011/5/22 Manuel Bärenz <email address hidden>:
> I started it myself and not as a service in order to be able to use JACK, which I started myself (and not as root) as well.
> I wasn't aware that starting it as a service is the default way.

Running mpd as yourself can also work but you should create a personal
config file at ~/.mpdconf (see http://mpd.wikia.com/wiki/Configuration
for sensible options to put in it)

--
Matt Wheeler
<email address hidden>

Revision history for this message
Ronny Cardona (rcart) wrote :

Hello.

This is not a real bug, so I marking it as Opinion. The answer of Matt is what you need =)

Good luck.

---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in mpd (Ubuntu):
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.