You are not logged in.

#1 2008-07-03 20:44:50

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

MPD/MPC/Sonata No Longer Working!

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

#2 2008-07-03 21:27:42

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: MPD/MPC/Sonata No Longer Working!

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. wink

Last edited by SiD (2008-07-03 21:28:01)

Offline

#3 2008-07-03 21:31:30

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: MPD/MPC/Sonata No Longer Working!

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

#4 2008-07-03 21:31:35

kdorf
Member
From: Minneapolis, Minnesota
Registered: 2008-06-30
Posts: 17

Re: MPD/MPC/Sonata No Longer Working!

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

#5 2008-07-03 21:44:03

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: MPD/MPC/Sonata No Longer Working!

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

#6 2008-07-03 21:45:46

kdorf
Member
From: Minneapolis, Minnesota
Registered: 2008-06-30
Posts: 17

Re: MPD/MPC/Sonata No Longer Working!

What's in your MPD log file?

Offline

#7 2008-07-04 12:17:46

Kyle Carter
Member
Registered: 2008-02-14
Posts: 91

Re: MPD/MPC/Sonata No Longer Working!

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

#8 2008-07-05 12:08:48

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: MPD/MPC/Sonata No Longer Working!

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

Board footer

Powered by FluxBB