You are not logged in.
@the dude: Looked again at your issue. Sorry, I overread, you also started MPD as your user but it gives you always the failure about the db_file.
Offline
The real issue with starting as user for me is the gnome-keyring thing, I think. I didn't change that line in the config, it was already uncommented on mine.
Will comment it out and check out your setup in the main post.
EDIT:
Okay, so there's still no tag_cache file, but it's updating the database somehow? tail -f ~/.mpd/mpd.log shows that it's busy.
EDIT: IDK, it's working fine, I'm playing a music with ncmpcpp now. Going to move all my network music to be local on this netbook, I have the disk space.
Last edited by thevdude (2012-02-12 17:16:40)
Offline
^ I have to say, this f**ing Gnome keyring is driving me crazy. I removed it totally but still sometimes pop ups a message saying it is missing. So, I would ignore this firstly, that does not interfere I think.
Ok, post back when MPD has written all the files into its db.
MPD is a very sensible creature, you do one thing wrong and it bites.
Offline
Mmkay, it's almost completely working. It's not mixing audio, though.
I can't do anything with sound as well as have mpd playing music/started. 
Video loaded in VLC + audio running from chrome works great, until I start mpd, which won't play any audio.
Last edited by thevdude (2012-02-12 18:48:47)
Offline
Wait, could you be more precise. MPD is not playing audio or when MPD plays you have no audio with other apps?
But you did not copy blindly my MPD conf, because I use it with an EQ unless you did the same?
Do you use Alsa?
At least we are getting there. 
Edit: From your posted conf I assume yes, you use Alsa.
Can you post any error message when you start MPD?
Also try this as root:
usermod -aG audio mpdThat will add MPD to the audio group.
Last edited by ivanovnegro (2012-02-12 19:29:49)
Offline
If I have something playing audio open (mocp, vlc, youtube, or all at the same time works fine) and mpd starts without issue, but if I play a song it doesn't play.
If I start mpd, open anything else and play audio it will work, unless mpd is playing a song, in which case it won't. The only relevant error I can make come up is with MoC, here it is:
┌─[ robert@s10 ]──[ ~ ]
└[#!]¬ mocp
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Trying OSS...
FATAL_ERROR: No valid sound driver!
FATAL_ERROR: Server exited!my .asoundrc (although multiple programs worked without this before, I'm pretty sure):
pcm.dsp {
type plug
slave.pcm "dmix"
}Offline
Hm, ok, we could try one thing with MPD, maybe that is the problem, change this line in your MPD conf:
mixer_type "software"to this:
#mixer_type "software" And now I remember, MOC is making problems when MPD was first running.
Offline
No dice.
I'm not super worried about it at the moment, but it'll confuse me later on down the line I'm sure. Everything else is working fine, though. Will be googling.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568588
trying this now
commenting out the optionals worked, trying a couple of other things now too. 
Now I broke something again, restarting it all over.
Last edited by thevdude (2012-02-12 20:12:43)
Offline
^ I never add the whole music to the playlist, 50.000 very different songs simply does not fit together.
If I want more music I add one directory, and that normally contains the similar music yet. I am more an album listener. And I do that all with ncmpcpp.
Understood.
Sometimes when I "listen in background" I like to add the whole collection and play it randomly...
Offline
Ok, for some new guys we maybe could have here that have more problems to configure stuff I also added how to install and set up mpdscribble in my how-to.
Have fun!
Offline
Mmkay, got it all fixed up. Problem was with my .asoundrc and VLC, apparently VLC wasn't using properly and was using hw:0,0 by default. Telling it to use ALSA and device: default fixed that.
Offline
^ Great!
Offline
Ok, I found the way to totally get rid of the Gnome keyring if you do not need it and you removed it but still see it with MPD or in ncmpcpp, remove the Gnome keyring folder from your home folder and it will stop to pop up, and I hope so forever. 
Offline
I've still got one issue, it doesn't want to bind to port 6600.
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)Without mpd started, netstat | grep 6600 shows nothing, and if I start mpd I still get that error. 
Also, I don't see a gnome keyring folder in my home folder. 
Last edited by thevdude (2012-02-28 16:36:25)
Offline
Hm, for the first problem, weird but maybe try this from the Arch Wiki:
Binding to IPV6 before IPV4
If on startup, mpd displays the following message:
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
MPD is attempting to bind to the ipv6 interface before binding to ipv4. If you want to use your ipv4 interface, hardcode it in mpd.conf, like so:
bind_to_address "127.0.0.1"
Several binds can also be specified, for example, to have MPD listen on localhost and the external IP of your network card:
bind_to_address "127.0.0.1"
bind_to_address "192.168.1.13"
For the Gnome keyring, damn it, I removed it but cannot remember where it was, you have to search it in your home folder somewhere, it is a hidden file. Maybe in ~/.gnome2.
Offline
I found that the bind issue was a permissions thing. The only solution I could find was to run mpd under my user.
Enjoying a good !#
Offline
Thanks for How-to.
Keep digging.
Linux beginner.
Offline
I have a problem,
when I play MPD,I cant use my sound in other programs and vice versa.
I am a beginner,I read the post above and commented out mixer_type software,but it didnt work,whats the problem?
Keep digging.
Linux beginner.
Offline
Can you see error messages when starting MPD from terminal or the other apps you use? What apps are not producing sound? Is it also with VLC like with @thevdude?
Offline
While I use vlc or flash video in browser,when I click to play a file with MPD,it just doesnt play,
While I play with MPD,I start something in vlc this message apeears,
Potential ALSA version problem:
VLC failed to initialize your sound output device (if any).
Please update alsa-lib to version 1.0.23-2-g8d80d5f or higher to try to fix this issue.Last edited by m5 (2012-03-04 17:39:50)
Keep digging.
Linux beginner.
Offline
^ isn't that just because the sound-device is busy? i mean, i cannot play two things at the same time with Alsa at any point. i have to close MOC to allow for sound in a Youtube video, and i have to close Firefox to have MOC play something (or even start).
btw, if anyone has a solution to that, great 
Offline
^ I didnt have this problem before MPD and I dont have this problem with other programs,I think it can be solved.
EDIT :
@rhowaldt : I think you can solve problem you have,as I said I dont have this problem with other apps
take a look at this :
http://crunchbanglinux.org/forums/topic … same-time/
Last edited by m5 (2012-03-04 19:40:24)
Keep digging.
Linux beginner.
Offline
^ ok thanks. don't know why you only have that problem with MPD. hopefully one of our MPD-guruhs can help you out here 
Offline
^ thanks man, 
I commented out optional lines in audio_output in MPD configuration file,now it works.
thanks again to you all.
Last edited by m5 (2012-03-04 20:05:46)
Keep digging.
Linux beginner.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.