| Author |
Message |
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Wed Jun 16, 2010 9: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 |
|
| Back to top |
|
otherbbs
Joined: 30 Oct 2005
Posts: 97
Location: 37.274,-97.393 (KEGT)
|
| Posted: Wed Jun 16, 2010 10: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 |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Wed Jun 16, 2010 10: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 |
|
| Back to top |
|
haha326
Joined: 17 Jun 2010
Posts: 9
|
| Posted: Thu Jun 17, 2010 2: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! |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Thu Jun 17, 2010 8: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. |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1400
Location: Earth
|
| Posted: Thu Jun 17, 2010 9:50 am Post subject: |
|
|
What does
Code: iptables -L
output? |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Thu Jun 17, 2010 10: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
|
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1400
Location: Earth
|
| Posted: Thu Jun 17, 2010 10:11 am Post subject: |
|
|
| Well it's not your firewall. If I think of anything else I'll post |
|
| Back to top |
|
Stever
Joined: 07 Dec 2007
Posts: 337
Location: NC, USA
|
| Posted: Thu Jun 17, 2010 10:48 am Post subject: |
|
|
Is the interface up?
Code: # ifconfig lo
Is your routing table intact?
Code: # route -n |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Thu Jun 17, 2010 9: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
|
|
| Back to top |
|
rsk
Joined: 24 Nov 2009
Posts: 306
|
| Posted: Fri Jun 18, 2010 5: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? |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Fri Jun 18, 2010 9: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
|
|
| Back to top |
|
GrunkaLunka
Joined: 21 Nov 2005
Posts: 46
|
| Posted: Fri Jun 18, 2010 11:24 am Post subject: |
|
|
| Loopback is definitely down. Did you try "ifconfig lo up"? |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York
|
| Posted: Fri Jun 18, 2010 4: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. |
|
| Back to top |
|
pmmenneg
Joined: 09 Mar 2004
Posts: 102
|
| Posted: Wed Jul 28, 2010 3: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! |
|
| Back to top |
|
| |