Linode Forum
https://forum.linode.com/

Localhost not responding
https://forum.linode.com/viewtopic.php?f=19&t=5705
Page 1 of 2

Author:  pmmenneg [ Wed Jun 16, 2010 10:42 pm ]
Post subject:  Localhost not responding

Hi all. Have an Ubuntu install, running Apache, MySQL and Postfix. Basic mail functionality, only sends, no receiving, etc. Today I realized that none of the mail that should have been sent out by various scripts are being sent. Logging into the box, tried telnetting localhost 25, and it just sits and spins. Weird. Try pinging localhost, and again, no response. The mail errors mention that mail being "Deferred: Connection timed out with [127.0.0.1]".

Any ideas on where to look for the issue? My /etc/hosts file contains the following:

Code:
127.0.0.1   localhost localhost.localdomain


Checked /etc/network/interfaces and it looks like the loopback is being started with:

Code:
auto lo
iface lo inet loopback


Have another tech that was on the server, but no access to him now and trying to figure out what might have come unglued.

Thanks for any help,

Paul

Author:  otherbbs [ Wed Jun 16, 2010 11:02 pm ]
Post subject:  Re: Localhost not responding

Paul, I don't run Postfix, but my first recommendation would be to check out your Postfix logs. You may need to increase the verbosity of the logging if you can't find what is going on.

If you have a firewall set up, make sure you are allowing traffic on the local interface. My guess is since you can't locally ping 27.0.0.1, it's firewall related.

You might include what version of Ubuntu you are running, along with your Postfix configuration, so others might chime in.

--
Travis

Author:  pmmenneg [ Wed Jun 16, 2010 11:52 pm ]
Post subject: 

It's Ubuntu 8.10. I can ping/telnet the server from external, just not from localhost. Is it possible/likely that a firewall would be blocking telnet/ping/any access to localhost but would allow access to these ports from external?

I guess I figured it wasn't a postfix issue, and figured the error postfix is was sending was congruent with the other localhost issues, but can certainly increase logging to see if that yields any more info.

Thanks for the advice,

P

Author:  haha326 [ Thu Jun 17, 2010 3:45 am ]
Post subject: 

What are the permissions/ownership on /etc? I recently had a very strange issue on one of my servers where hosts right in /etc/hosts were not resolving, turns out an rsync I did to /etc changed the ownership and permissions. Should be root:root, 0755.

Hope that helps!

Author:  pmmenneg [ Thu Jun 17, 2010 9:51 am ]
Post subject: 

Permissions look ok, root:root is the owner and attributes look good (rwxr-xr-x). /etc/hosts looks ok as well.

Author:  obs [ Thu Jun 17, 2010 10:50 am ]
Post subject: 

What does

Code:
iptables -L


output?

Author:  pmmenneg [ Thu Jun 17, 2010 11:03 am ]
Post subject: 

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Author:  obs [ Thu Jun 17, 2010 11:11 am ]
Post subject: 

Well it's not your firewall. If I think of anything else I'll post

Author:  Stever [ Thu Jun 17, 2010 11:48 am ]
Post subject: 

Is the interface up?
Code:
# ifconfig lo

Is your routing table intact?
Code:
# route -n

Author:  pmmenneg [ Thu Jun 17, 2010 10:54 pm ]
Post subject: 

Code:
ifconfig lo


Code:
Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Code:
route -n


Code:
174.143.255.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.176.64.0     0.0.0.0         255.255.224.0   U     0      0        0 eth1
10.191.192.0    10.176.64.1     255.255.192.0   UG    0      0        0 eth1
10.176.0.0      10.176.64.1     255.248.0.0     UG    0      0        0 eth1
0.0.0.0         174.143.255.1   0.0.0.0         UG    100    0        0 eth0

Author:  rsk [ Fri Jun 18, 2010 6:00 am ]
Post subject: 

pmmenneg wrote:
Code:
ifconfig lo

Code:
          LOOPBACK  MTU:16436  Metric:1



Well, my route -n doesn't show anything for 127.0.0.1 neither... BUT ifconfig should say "UP LOOPBACK RUNNING", so... it's down.

What's in your /etc/network/interfaces, if you have one?

Author:  pmmenneg [ Fri Jun 18, 2010 10:51 am ]
Post subject: 

Contents of /etc/network/interfaces

Code:
# The loopback network interface
auto lo
iface lo inet loopback

# Load iptables rules
pre-up iptables-restore < /etc/iptables.up.rules

# The primary network interface
# Uncomment this and configure after the system has booted for the first time
auto eth0
iface eth0 inet static
    address 174.143.255.128
    netmask 255.255.255.0
    gateway 174.143.255.1
    dns-nameservers 72.3.128.240 72.3.128.241

auto eth1
iface eth1 inet static
    address 10.176.71.71
    netmask 255.255.224.0

up route add -net 10.176.0.0 netmask 255.248.0.0 gw 10.176.64.1
down route add -net 10.176.0.0 netmask 255.248.0.0 gw 10.176.64.1
up route add -net 10.191.192.0 netmask 255.255.192.0 gw 10.176.64.1
down route add -net 10.191.192.0 netmask 255.255.192.0 gw 10.176.64.1

Author:  GrunkaLunka [ Fri Jun 18, 2010 12:24 pm ]
Post subject: 

Loopback is definitely down. Did you try "ifconfig lo up"?

Author:  hoopycat [ Fri Jun 18, 2010 5:00 pm ]
Post subject: 

Try commenting out or removing that pre-up line? I wonder if it's being inadvertently associated with loopback and failing somehow.

Author:  pmmenneg [ Wed Jul 28, 2010 4:19 pm ]
Post subject: 

Tried ifconfig lo up and it seemed to do the trick. Rebooted and all is well... no idea why I wouldn't need to do a ifconfig lo up again, but have checked and the localhost is up... thanks for all the help!

Page 1 of 2 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/