Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SIOCADDRT: File exists
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
Jamon
Apprentice
Apprentice


Joined: 03 May 2002
Posts: 173

PostPosted: Wed Feb 05, 2003 11:24 pm    Post subject: SIOCADDRT: File exists Reply with quote

Hello!! This is probably the most frustrating error I have seen yet, so bear with me. I recently did an etc-update (LONG overdue) and I have a reeeaaallllly annoying startup error. For the longest time, I have set my eth0 (3c905c NIC) as a static IP, with default route to my Linux internet gateway. Everything worked just fine, until this recent update. When it boots up, and default runlevel starts, I get this:

* Bringing eth0 up... [ ok ]
* Setting default gateway...
SIOCADDRT: File exists
* Failed to bring eth0 up [ !! ]

and then several of my typical startup services proceed to fail starting up as they depend on "net" being started. The thing that makes this even more strange is that when I go to a root console, (whether in X or not doesn't matter), and I type:

# /etc/init.d/net.eth0 start

or it's equivalent /etc/runlevels/default/net.eth0, as they are symlinks, everything starts just fine!!! Like this:

* Bringing eth0 up... [ ok ]
* Setting default gateway... [ ok ]

This is highly frustrating, which is exacerbated by the fact that I start KDM (with an auto-login KDE session full of lovely internet applications ;) ).

Anyone have any ideas? I would really appreciate it! Thanks!!

Jamon
_________________
Looking for a Linux PC? Check us out at
http://www.progresssystemsinc.com!
Back to top
View user's profile Send private message
mikki
n00b
n00b


Joined: 14 Jul 2002
Posts: 51
Location: On Top

PostPosted: Thu Feb 06, 2003 8:08 am    Post subject: Reply with quote

Well, I just found this exact problem, although even after starting eth0, it doesn't work (no errors, just failed tx/rx). Sucks seeing as this was a caching server....

It started after an emerge that included the new baselayout, but that might be a red herring.

If you figure it out, let me know! I'll do the same...
_________________
Mikki
Back to top
View user's profile Send private message
bi3l
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 268
Location: France

PostPosted: Thu Feb 06, 2003 10:49 am    Post subject: Reply with quote

I had exactly the same problem.

"SIOCADDRT: File exists" means that the defaults gateway has already been set.

I removed net.eth0 (along with all netword dependant scripts) from the boot sequence to check what was happening and I discovered that eth0 was up and the gateway set without executing /etc/init.d/net.eth0 start.

So, I simply put back network dependant scripts, reboot, and everything was ok.

I do not understand exactly where and when the network is configured but there is no need to execute /etc/init.d/net.eth0 start.

So, just try:

rc-update del net.eth0 default

and check if it's ok for you.
Back to top
View user's profile Send private message
slapcat
n00b
n00b


Joined: 30 Nov 2002
Posts: 5

PostPosted: Thu Feb 06, 2003 5:09 pm    Post subject: What's setting the default gateway? Reply with quote

Same problem here. I've been unable to find whatever is setting the default gateway. It doesn't seem to be done using the 'route' command because I replaced 'route' with a script that just prints out diagnostic info and the gateway is still getting set.

It's working right now by leaving net.etho out of the default runlevel but it is still bugging me that I can't track this down. :?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Feb 06, 2003 7:41 pm    Post subject: Reply with quote

Is it possible that a replacement /etc/init.d/net.eth0 (like /etc/init.d/._cfg????_net.eth0) or an editor backup file is sticking around, so you have effectively two largely identical files trying to start eth0?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
mikki
n00b
n00b


Joined: 14 Jul 2002
Posts: 51
Location: On Top

PostPosted: Thu Feb 06, 2003 8:03 pm    Post subject: Reply with quote

It seems like /etc/init.d/net.eth0 is now obsolete?

Even once booted, /etc/init.d/eth0 status says "not running"...

So, anyone know who is starting the network and where? Does it matter?

And my card is still not working. I'm going to try a hardware swap, because I'm sick of the st00pid pos anyway...
_________________
Mikki
Back to top
View user's profile Send private message
mikki
n00b
n00b


Joined: 14 Jul 2002
Posts: 51
Location: On Top

PostPosted: Thu Feb 06, 2003 8:11 pm    Post subject: Reply with quote

Interesting. I renamed net.eth0 to net.eth0.sav, and the network is now not up. Someone is secretly calling it somewhere. A service dependency somewhere? If so, why is it silent?

Hmmm....
_________________
Mikki
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Feb 06, 2003 9:19 pm    Post subject: Reply with quote

Could people please note which versions of baselayout they are using when convenient?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
mikki
n00b
n00b


Joined: 14 Jul 2002
Posts: 51
Location: On Top

PostPosted: Thu Feb 06, 2003 9:42 pm    Post subject: Reply with quote

1.8.6.2
_________________
Mikki
Back to top
View user's profile Send private message
nealbirch
n00b
n00b


Joined: 18 Jan 2003
Posts: 25

PostPosted: Fri Feb 07, 2003 1:40 am    Post subject: Reply with quote

same problem, after upgrading baselayout (1.8.6.2)

I come up in init 3, it says default gateway file exists.

I do:
# init 1
and then
# init 3
and it works as it should.

Now, if I boot in at init 1, and then go to init 3, I still get the error, I need to drop back to init 1 then init 3.

It's a linksys (tulip) nic, and yes, the module is loaded in modules.autoload.

What's wierd is that it works the 2nd and subsequent times, but not the first.
Back to top
View user's profile Send private message
DFB
n00b
n00b


Joined: 25 Jun 2002
Posts: 19
Location: Kingston, Ontario

PostPosted: Fri Feb 07, 2003 4:01 am    Post subject: Reply with quote

Exact same problem here, "rc-update del net.eth0" fixes the problem. This is with baselayout-1.8.6.2 (just updated)

etc-update lists no updates pending, and /etc and all its subdirs are empty of ._cfg files.
Back to top
View user's profile Send private message
slapcat
n00b
n00b


Joined: 30 Nov 2002
Posts: 5

PostPosted: Fri Feb 07, 2003 4:34 am    Post subject: baselayout version Reply with quote

my baselayout is version 1.8.6.2
Back to top
View user's profile Send private message
Nudge
n00b
n00b


Joined: 10 Jun 2002
Posts: 31
Location: Sydney, Australia

PostPosted: Fri Feb 07, 2003 5:59 am    Post subject: Reply with quote

I am having the same problem and my base layout is also 1.8.6.2.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Feb 07, 2003 6:07 am    Post subject: Reply with quote

1.8.6.2 has a bug report. This problem doesn't appear to be mentioned, so it might be worth having one person add some comments.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
RJG
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2003
Posts: 109
Location: Toronto, ON, Canada

PostPosted: Fri Feb 07, 2003 8:29 am    Post subject: Reply with quote

I have the same issue, and have added it to the above mentioned bug .
Back to top
View user's profile Send private message
buckminst
n00b
n00b


Joined: 18 Jul 2002
Posts: 22
Location: Idaho

PostPosted: Fri Feb 07, 2003 9:46 am    Post subject: baselayout 1.8.6.2 Reply with quote

I also had that problem, so as soon as my system was up, I did like a few before me, and did a manual /etc/init.d/net.eth0 start, and up it came. then rebooted, and it's been fine ever since. Dunno what's going on with it.

Also had some trouble with modules not loading, or modprobe trying to insmod REALLY WEIRD THINGS, like /dev/gpmctl @_@ The reboot fixed that as well.

UPDATE:
The reboot only fixes it for that session. If I cold-boot my machine, the errors are there again, but if I immediately warm-boot right afterward, the errors go away and things load properly. WTF? @_@
_________________
Curtis Hogg [ buckminst at inconnu dot islug dot org ]

Sattinger's Law: "It works better if you plug it in!"
This post sponsored by: Frungy, the sport of kings!

Registered Linux User #202758 Sept/1997


Last edited by buckminst on Sun Feb 09, 2003 9:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zalator
n00b
n00b


Joined: 11 Aug 2002
Posts: 42

PostPosted: Sun Feb 09, 2003 5:40 pm    Post subject: Reply with quote

I have the exact same problem, using baselayout 1.8.6.2

EDIT: Additionally, when booting, the init scripts scream at me for the most random /dev entries which obviously dont exist. I think that baselayout 1.8.6.2 is br0ked, i am going to try to downgrade.
Back to top
View user's profile Send private message
nealbirch
n00b
n00b


Joined: 18 Jan 2003
Posts: 25

PostPosted: Mon Feb 10, 2003 5:36 am    Post subject: Reply with quote

for some reason "rc-update del net.eth0 default" works. it makes no sense. I figure it has to be loading the ... thing somewhere or somehow, but where and how I can't see. I load init 1, and do ifconfig, no eth0, init 3 and it's there. The wierdest thing is that if I don't load the tulip module, nothing complains, apache loads, everything loads.... go figure.

Anyway, "rc-update del net.ethx default" fixes it. the question is how.
Back to top
View user's profile Send private message
buckminst
n00b
n00b


Joined: 18 Jul 2002
Posts: 22
Location: Idaho

PostPosted: Mon Feb 10, 2003 5:41 am    Post subject: baselayout 1.8.6.2 Reply with quote

I'd say it's quite official that baselayout 1.8.6.2 is b0rked beyond all belief. An emerge rsync && emerge -up world today reveals that they are downgrading systems from 1.8.6.2 to 1.8.5.8. Hopefully they'll figure out what's causing this major flakage.

Nothing that I can see, would be loading the network module... so WHERE is eth0 being configured from?
_________________
Curtis Hogg [ buckminst at inconnu dot islug dot org ]

Sattinger's Law: "It works better if you plug it in!"
This post sponsored by: Frungy, the sport of kings!

Registered Linux User #202758 Sept/1997
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Feb 10, 2003 5:43 pm    Post subject: Reply with quote

According to the bugreport, 1.8.6.2 wasn't supposed to be unmasked.
_________________
Quis separabit? Quo animo?
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