You are not logged in.
Pages: 1
Been using MPD/Sonata for a while now, and I love 'em. Yesterday, I boot up my machine, and Sonata no longer connects to MPC/MPD. I haven't modified anything that should have anything to do with this.
I have a look in my task manager, and MPC does not appear to be running, for some reason. SO I open it from terminal. After a bit of a pause, it spits this out:
MPD_HOST and/or MPD_PORT environment variables are not set
error: timeout in attempting to get a response from "localhost" on port 6600
Now, I've gone through the other threads I could find on this topic:
http://bbs.archlinux.org/viewtopic.php?id=21639
http://bbs.archlinux.org/viewtopic.php?id=35031
And none of the posted solutions seem to help me much. I'm including my mpd.conf, and if you need any info, let me know, I HATE having to use big bulky jukebox players, I miss my MPD!
######################## REQUIRED PATHS ########################
music_directory "/media/sdb1/mp3"
playlist_directory "/media/sdb1/mp3/.playlists"
db_file "/var/lib/mpd/tag_cache"
log_file "/var/log/mpd/mpd.log"
error_file "/var/log/mpd/errors.log"
################################################################
######################## OPTIONAL PATHS ########################
#
pid_file "/var/run/mpd/pid"
#
state_file "~/.mpd/mpdstate"
#
################################################################
######################## DAEMON OPTIONS ########################
#
bind_to_address "any"
port "6600"
#
log_level "default"
#
################################################################
########################## AUDIO OUTPUT ########################
#
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
}
#
################################################################
############################# MIXER ############################
mixer_type "alsa"
mixer_device "default"
mixer_control "PCM"
################################################################
######################### NORMALIZATION ########################
#
volume_normalization "yes"
#
################################################################
Offline
A while ago I had a similar problem with mpd/ncmpc.
ncmpc only worked if the LAN interface was connected with my router. Otherwise I got this error from ncmpc.
error [12]: host "localhost" not found
The problem was in my /etc/hosts file. Before I solved the problem the file looked like this:
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain acer01
I had to add "localhost" to <hostname>
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost acer01
I don't know if this information is helpfully for you, just an idea.
Last edited by SiD (2008-07-03 21:28:01)
Offline
Yeah, that's pretty much how my /etc/hosts is formatted:
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost elysium
Offline
Did you do any firewalling? It could be that you don't allow connections from localhost, or that port 6600 was blocked, etc. If you have iptables installed, stop the service and see if that remedies the problem.
Offline
I've never explicitly installed IPtables, and it's certainly not in my daemons list. Not a running process either. So i don't think it's there.
MPD worked just fine until a couple days ago, and I don't think i've made any significant changes to anything.
Offline
What's in your MPD log file?
Offline
So, I went to check the mpd logs, but before I did, I discovered that this problem has somehow just FIXED ITSELF. I have no idea how. I haven't done anything. Haven't even rebooted.
The hell?
Offline
Hi, try to disable bind_to_address in mpd config file if you have enabled it.
EDIT: If I set an IP address to ethX it works (also if the interface isn't connected)
Last edited by ilpianista (2008-07-07 00:34:12)
Offline
Pages: 1