media-sound/mpd-0.11.4-r1 permission prob after updating from 0.11.4-r0 to -r1 we have a little permission prob ... <snip> porkoo ~ # /etc/init.d/mpd restart * Starting Music Player Daemon... problem opening file "/var/log/mpd.log" for writing [ !! ] </snip>
I can confirm. The file doesn't get completed.
a snipplet from /var/log/mpd.error.log <snip> Sep 25 10:47 : problems opeing audio device while playing "my_stupid_soundfile.mp3" Sep 25 10:49 : problems writing music db file, "/usr/share/mpd/playlists/.mpddb" </snip>
can we fix this plz - because it is 'stable' and does not work :( <snip> porkoo ~ # /etc/init.d/mpd start * Starting Music Player Daemon ... problems getting ao_driver_info you may not have permission to the audio device [ !! ] </snip> <snip> + + oggvorbis : Adds support for the OggVorbis audio encoding + + mad : Adds support for mad (high-quality mp3 decoder library and cli frontend) + + aac : Enable support for aac using the faad2 library + + audiofile : Adds support for libaudiofile where applicable + + ipv6 : Adds support for IP version 6 + + flac : Adds support for the flac audio codec - - droproot : Run the daemon as non-root by default. + + mikmod : Adds libmikmod support to allow playing of SoundTracker-style music files + + alsa : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture) </snip>
"can we fix this plz - because it is 'stable' and does not work :(" No! No Fix! Just kidding :) Sorry for the delay, I moved recently, and completely missed this :/ I'll have it fixed in cvs shortly.
I'm commiting the fixes for the missing files, daniel the issue w/ ao_driver is related to permissions on the device file. That's not really mpd's area to be fooling with, added if your using udev the change would be wiped upon next reboot iirc. What exactly are the perms on /dev/snd/* for you? are you using alsa, or oss...
There seem to be couple of typos: - diropts -m0640 -o mpd -g audio - doins ${T}/blah mpd.log - doins ${T}/blah mpd.error.log + insopts -m0640 -o mpd -g audio + newins ${T}/blah mpd.log + newins ${T}/blah mpd.error.log Funny I can't use dmix while mpd is running: > ALSA lib pcm_direct.c:203:(make_local_socket) connect failed: /tmp/alsa-dmix-12360-1099080260-629622: Permission denied no wonder since > srw------- 1 mpd audio 0 Окт 29 23:04 /tmp/alsa-dmix-12360-1099080260-629622 Now how do I go about it?
I don't actually see this in -r1, but I do see it in -r2 which is the latest stable. Therefore, I've fixed it and all is good. ferringb was about to, but there was a cvs changeover and he had to go for the weekend, so I'm here to commit the changes for him. Thus said, if anything is wrong, yell at me :P. root@secures /usr/local/portage/gentoo-x86/media-sound/mpd # /etc/init.d/mpd start * Starting Music Player Daemon... [ ok ] so yah :P
- my /etc/mpd/mpd.conf says 'user mpd' - i'm using oss on devfsd <snip> porkoo ~ # ls -lisa /dev/sound/* 683 0 crw------- 1 rockoo audio 14, 3 Dec 31 1969 /dev/sound/dsp 682 0 crw------- 1 rockoo audio 14, 0 Dec 31 1969 /dev/sound/mixer </snip> fixing /etc/security/console.perms helped - see http://forums.gentoo.org/viewtopic.php?t=40991