Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED (workaround)] localhost unreachable during boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
euphi2
n00b
n00b


Joined: 25 Aug 2004
Posts: 60

PostPosted: Wed Oct 12, 2005 10:19 am    Post subject: [SOLVED (workaround)] localhost unreachable during boot Reply with quote

I have a really strange problem:

My localhost is not reachable during boot. Services like cupds starts and bind to localhost, but other service cannot reach them (e.g. samba (smbd) tries to connect to cups on localhost:631).
If I using interactive boot and exit to a shell, I also cannot reach localhost. There is no answer, not even a RST ("Connection Refused").

This is extremely annoying as booting now takes up to 10 minutes with all the services (samba, nfs, mysql) waiting until a timeout occurs.

When booting finishes, everything gets alright, localhost IS reachable then...?!?!


WTF?,
Euphi


Last edited by euphi2 on Thu Oct 13, 2005 2:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Oct 12, 2005 10:38 am    Post subject: Reply with quote

Is the service net.lo in your boot runlevel? You can make sure with (as root)
Code:
rc-update -s
Back to top
View user's profile Send private message
euphi2
n00b
n00b


Joined: 25 Aug 2004
Posts: 60

PostPosted: Wed Oct 12, 2005 10:57 am    Post subject: Reply with quote

chrbecke wrote:
Is the service net.lo in your boot runlevel? You can make sure with (as root)
Code:
rc-update -s

Yes, it is.
Back to top
View user's profile Send private message
Rizzi
n00b
n00b


Joined: 14 Jan 2005
Posts: 56

PostPosted: Wed Oct 12, 2005 11:04 am    Post subject: Reply with quote

i have the same problem

this services don't start @ boottime
samba, vmware, cupsd, portmap, famd, idmapd, nfs, nfsmount, netmount ,ntpd, vixie-cron & local

if i skip the services in interactive boot mode and start them from hand there are no problems :/

Rizzi
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Oct 12, 2005 11:43 am    Post subject: Reply with quote

Have you tried running
Code:
etc-update
Back to top
View user's profile Send private message
TheX
Guru
Guru


Joined: 31 Jul 2004
Posts: 349
Location: .de

PostPosted: Wed Oct 12, 2005 11:54 am    Post subject: Reply with quote

I had a problem like this and solved it by :
Code:
emerge net-tools


I found that solution here:
https://forums.gentoo.org/viewtopic-p-2648166.html


TheX
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Oct 12, 2005 12:56 pm    Post subject: Reply with quote

@euphi2 baselayout-1.11 has an ordering issue which we cannot easily backport from the much improved 1.12 branch (currently ~ARCH)

Care testing 1.12 to see if it works? (latest is baselayout-1.12.0_pre9-r1)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
euphi2
n00b
n00b


Joined: 25 Aug 2004
Posts: 60

PostPosted: Wed Oct 12, 2005 1:17 pm    Post subject: Reply with quote

UberLord wrote:
@euphi2 baselayout-1.11 has an ordering issue which we cannot easily backport from the much improved 1.12 branch (currently ~ARCH)

Care testing 1.12 to see if it works? (latest is baselayout-1.12.0_pre9-r1)


I'm using ~x86 so baselayout 1.12 is already installed.
Back to top
View user's profile Send private message
Dizzutch
Guru
Guru


Joined: 09 Nov 2004
Posts: 463
Location: Worcester, MA

PostPosted: Wed Oct 12, 2005 1:27 pm    Post subject: Reply with quote

what's in your /etc/networks
Back to top
View user's profile Send private message
Rizzi
n00b
n00b


Joined: 14 Jan 2005
Posts: 56

PostPosted: Wed Oct 12, 2005 1:59 pm    Post subject: Reply with quote

/etc/networks
Code:

# /etc/networks
#
# This file describes a number of netname-to-adress
# mappings for the TCP/IP subsytem. It is mostly
# used at boot time, when no name servers are running.
#

loopback        127.0.0.1
Back to top
View user's profile Send private message
MrUlterior
Guru
Guru


Joined: 22 Mar 2005
Posts: 511
Location: Switzerland

PostPosted: Wed Oct 12, 2005 2:13 pm    Post subject: Reply with quote

Make sure your IPTABLES rules have a default policy of ACCEPT for both your INPUT and OUTPUT chains during boot for the device "lo".
_________________

Misanthropy 2.0 - enough hate to go around
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Oct 12, 2005 2:34 pm    Post subject: Reply with quote

euphi2 wrote:
UberLord wrote:
@euphi2 baselayout-1.11 has an ordering issue which we cannot easily backport from the much improved 1.12 branch (currently ~ARCH)

Care testing 1.12 to see if it works? (latest is baselayout-1.12.0_pre9-r1)


I'm using ~x86 so baselayout 1.12 is already installed.


https://bugs.gentoo.org/show_bug.cgi?id=104394

Basically, try setting RC_PARALLEL_STARTUP="yes" in /etc/conf.d/rc as that's been reported to fix it.

I'm at a total loss as to why this happens - and even with some users entire /etc folder on my machines I cannot replicate the issue :cry:

BTW, this is the last big stopper before we can consider making 1.12.0 stable, so if anyone comes up with a fix that isn't enabling parallel startup then let me know!
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Dizzutch
Guru
Guru


Joined: 09 Nov 2004
Posts: 463
Location: Worcester, MA

PostPosted: Wed Oct 12, 2005 3:19 pm    Post subject: Reply with quote

Rizzi wrote:
/etc/networks
Code:

# /etc/networks
#
# This file describes a number of netname-to-adress
# mappings for the TCP/IP subsytem. It is mostly
# used at boot time, when no name servers are running.
#

loopback        127.0.0.1


/etc/networks on my my three machines say:
Code:
 loopback 127.0.0.0

it's setting up the network, not just the host.
don't know if this is the sole cause of your problem, but worth looking into.
-Dizz
Back to top
View user's profile Send private message
euphi2
n00b
n00b


Joined: 25 Aug 2004
Posts: 60

PostPosted: Thu Oct 13, 2005 2:26 pm    Post subject: Reply with quote

UberLord wrote:
euphi2 wrote:
UberLord wrote:
@euphi2 baselayout-1.11 has an ordering issue which we cannot easily backport from the much improved 1.12 branch (currently ~ARCH)

Care testing 1.12 to see if it works? (latest is baselayout-1.12.0_pre9-r1)


I'm using ~x86 so baselayout 1.12 is already installed.


https://bugs.gentoo.org/show_bug.cgi?id=104394

Basically, try setting RC_PARALLEL_STARTUP="yes" in /etc/conf.d/rc as that's been reported to fix it.

I'm at a total loss as to why this happens - and even with some users entire /etc folder on my machines I cannot replicate the issue :cry:

BTW, this is the last big stopper before we can consider making 1.12.0 stable, so if anyone comes up with a fix that isn't enabling parallel startup then let me know!

Ok, with RC_PARALLEL_STARTUP everything works fine :-)

Uh.. almost everything, a init-skript that expects user-input (a passphrase to mount a dm-crypt partition), doesn't work with parallel startup. Is there any way to let this script prompt for user input?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Oct 13, 2005 3:08 pm    Post subject: Reply with quote

euphi2 wrote:

Ok, with RC_PARALLEL_STARTUP everything works fine :-)

Uh.. almost everything, a init-skript that expects user-input (a passphrase to mount a dm-crypt partition), doesn't work with parallel startup. Is there any way to let this script prompt for user input?


We are aware of that - it's not parallel startup that causes that, but our new interactive boot process as both are fighting for the keyboard.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum