You are not logged in.

#1 2008-05-18 11:54:31

hk2717
Member
From: China
Registered: 2007-09-13
Posts: 217

[SOLVED]Connection to localhost fails

The connection worked smoothly after boot, but after hours of uptime I suddenly was unable to connect to localhost. As a result, I cannot open MLDonkey web interface with any browser. Sonata cannot connect to MPD. SMPlayer cannot recognize its running instance so it ignores my "Only on running instance" option. This is very annoying. I typed "ifconfig lo" and got the following results:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          LOOPBACK  MTU:16436  Metric:1
          RX packets:15625 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15625 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8925409 (8.5 Mb)  TX bytes:8925409 (8.5 Mb)

I tried restarting the network daemon, using "127.0.0.1" instead of "localhost", but cannot solve the issue. It happened several times before so I know reboot can solve it, but really not a good solution. Someone please give me a helping hand? Thanks in advance.

Last edited by hk2717 (2008-05-24 02:40:53)

Offline

#2 2008-05-19 18:05:49

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: [SOLVED]Connection to localhost fails

Is the localhost interface even up, since ifconfig will tell you about down interfaces, when you name them explicitly.

ifconfig lo up

will definitely fix the problem temporarily.

I think I solved a similar problem after merging the changes to /etc/rc.conf involving the removal of localhost stuff (which is now in another file that is never edited)

Offline

#3 2008-05-20 01:25:19

hk2717
Member
From: China
Registered: 2007-09-13
Posts: 217

Re: [SOLVED]Connection to localhost fails

I will try this when it happens again. Thank you for the suggestion.

Offline

#4 2008-05-20 03:49:07

Kknd
Member
From: Brazil, Santa Catarina
Registered: 2007-08-15
Posts: 100
Website

Re: [SOLVED]Connection to localhost fails

Check your hosts too, here I could not connect to my local postgresql db.

There should be a line with:

127.0.0.1       localhost.localdomain   localhost YOURDOMAIN

Offline

#5 2008-05-23 16:54:25

hk2717
Member
From: China
Registered: 2007-09-13
Posts: 217

Re: [SOLVED]Connection to localhost fails

vogt wrote:

Is the localhost interface even up, since ifconfig will tell you about down interfaces, when you name them explicitly.

ifconfig lo up

will definitely fix the problem temporarily.

I think I solved a similar problem after merging the changes to /etc/rc.conf involving the removal of localhost stuff (which is now in another file that is never edited)

This solves my problem perfectly. Thank you so much!

Offline

Board footer

Powered by FluxBB