LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2012, 07:03 PM   #1
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
mpd error: Failed to bind to '127.0.0.1:6600': Cannot assign requested address


I installed mpd following the instructions here:
http://crunchbanglinux.org/forums/to...ate-mpd-guide/
Basically install using apt-get, stop and disable running it as a service and create the config and other files in home directory.
When attempting to start mpd for the first time I receive the following error and mpd fails to start:
Code:
Failed to bind to '127.0.0.1:6600': Cannot assign requested address
I saw mention somewhere that commenting out
Code:
bind_to_address                "localhost"
works for some but I just receive a different error:
Code:
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
This looks better but a the next step the following happens:
Code:
me@pc1:~$ mpc update
error: Timeout while connecting
When mpd is running I see the following:
Code:
root@pc1:~# netstat -a |grep 6600
tcp6       0      0 [::]:6600               [::]:*                  LISTEN
When it's not I see nothing when running that command.
I'm beginning to think there's something weird going on with my networking. Any ideas what could cause this?
 
Old 05-28-2012, 11:09 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
It looks like something was already bound to the port for ipv4 but not ipv6 ... stop mpd and try:
Code:
netstat -tnlp | grep 6600
.. hopefully this will show the offending process.
 
Old 05-29-2012, 04:53 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by kbp View Post
It looks like something was already bound to the port for ipv4 but not ipv6 ... stop mpd and try:
Code:
netstat -tnlp | grep 6600
.. hopefully this will show the offending process.
Yes, that what I thought was going on. There doesn't seem to be anything using the port though:
Code:
root@pc1:/home/me# netstat -tnlp | grep 6600
root@pc1:/home/me#
OK, this is odd, I changed the following in the config file:
Code:
bind_to_address         "192.168.2.100" #LAN IP
Now when I run mpc locally specifying the local machine using it's hostname, localhost, loopback or LAN IP I get the timeout error, but accessing it from my netbook on the same LAN works.

Last edited by 273; 05-29-2012 at 05:24 AM.
 
Old 06-04-2012, 02:54 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
This is too weird. I can control mpd from my netbook fine using mpc, ncmpcpp and an MPD screenlet when I tell mpd to listen on 192.168.2.100 but anything I start on the PC running mpd just times out...
 
Old 06-04-2012, 09:14 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Is iptables running ?
 
Old 06-05-2012, 06:21 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I don't see it in the output of lsmod. I am wondering if this is part of a bigger problem though because, for example, conky can no longer query hddtemp.
 
Old 06-10-2012, 08:26 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Original Poster
Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
It turns out ifupdown was missing after an update, so re-installing it fixed this.
 
Old 06-11-2012, 10:17 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Slightly worrying ... better make sure nothing else is missing
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to fix error: "bind: Cannot assign requested address" Azazwa Linux - Networking 3 07-22-2010 09:35 AM
Multiple IP addresses on one NIC: "Cannot assign requested address" error cpbl Linux - Server 5 06-10-2009 03:35 PM
"ERROR: UDP_OpenSocket: bind: Cannot assign requested address" error trebor0926 Red Hat 1 09-26-2006 10:21 AM
ifup eth0 causing error messages - SIOCGIFADDR: Cannot assign requested address pxumsgdxpcvjm Linux - Networking 7 01-20-2006 06:22 PM
sendmail quits - cannot bind: Cannot assign requested address scott_r_wagner Linux - Software 5 09-14-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration