View previous topic :: View next topic |
Author |
Message |
Gandalf the White Guru

Joined: 17 Dec 2003 Posts: 320 Location: Verdun, Canada
|
Posted: Sun Sep 26, 2004 3:07 am Post subject: Cannot add provide 'net' |
|
|
Okay, since my router died and I am forced to use rp-pppoe, rc-update always gives an error: "Cannot add provide 'net', a service with that name already exists". This error also appears during startup, at the "Calculating Service Dependencies" bit. Any ideas? |
|
Back to top |
|
 |
icywolf n00b


Joined: 19 Jul 2003 Posts: 52
|
Posted: Sun Sep 26, 2004 6:05 pm Post subject: |
|
|
same problem I'm trying to install gentoo (using gentoo replacing the livecd) |
|
Back to top |
|
 |
Gandalf the White Guru

Joined: 17 Dec 2003 Posts: 320 Location: Verdun, Canada
|
Posted: Mon Sep 27, 2004 2:48 am Post subject: |
|
|
:bump: ? |
|
Back to top |
|
 |
chrisyu Apprentice


Joined: 10 Apr 2003 Posts: 207 Location: China
|
Posted: Mon Sep 27, 2004 7:27 am Post subject: |
|
|
I have this problem too.
In "/etc/init.d/rp-pppoe", I changed the line in depend section from "provide net" to "need net".
The error message dispears.
But I don't know whether this is the right way. |
|
Back to top |
|
 |
Gandalf the White Guru

Joined: 17 Dec 2003 Posts: 320 Location: Verdun, Canada
|
Posted: Mon Sep 27, 2004 11:16 am Post subject: |
|
|
Even with this error rp-pppoe works great so as long as the message is gone, good enough for me thanks! |
|
Back to top |
|
 |
don quixada l33t


Joined: 15 May 2003 Posts: 811
|
Posted: Sat Nov 13, 2004 3:33 am Post subject: |
|
|
chrisyu wrote: |
In "/etc/init.d/rp-pppoe", I changed the line in depend section from "provide net" to "need net".
|
This solution does not work for me. I'm getting the message twice!:
Code: |
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
* Cannot add provide 'net', as a service with the same name exists!
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
* Cannot add provide 'net', as a service with the same name exists!
|
There's gotta be other people here getting this problem...
dq |
|
Back to top |
|
 |
wolvie n00b


Joined: 01 Mar 2004 Posts: 32 Location: Stockholm, Sweden
|
Posted: Tue Nov 23, 2004 6:10 am Post subject: |
|
|
hello..
i made a fix myself but this will probaly break something.. for now seens ok to me.. what i made was change
to
on /etc/init.d/rp-pppoe and also all the
entries on /etc/init.d/* to
i could make a diff from the original /etc/init.d but as i said this "fix" might break something as long as FOR ME it works well, so i think it's better each one decides what's better to do.. or call a developer to show the box on fire -=;oP
if someone want to try but dunno how i can pass a 3 lines script to make things easier..
regards..and sorry my poor english -=;oP
cya |
|
Back to top |
|
 |
jwdonal n00b

Joined: 17 Sep 2009 Posts: 10
|
Posted: Tue Dec 14, 2010 9:25 pm Post subject: |
|
|
My fix was to simply reboot the machine. I was receiving exactly the same error as all of you but I found another forum that stated that this error can occur if the network interface does not start up on boot. If you start the device after boot (i.e. after you login, using /etc/init.d/eth0 start) this error can occur. It happens because the 'net' process is already started or something like that. I really don't know specifically what scenario or combination of settings causes the problem but I just thought I would post my solution and findings here in case it helps someone else. |
|
Back to top |
|
 |
KAMIKAZE_ Guru

Joined: 09 Oct 2003 Posts: 309 Location: Riga, Latvia
|
Posted: Thu Dec 23, 2010 3:22 am Post subject: |
|
|
got this error too _________________ -=[powered by Gentoo]=- |
|
Back to top |
|
 |
Lori Guru


Joined: 30 Mar 2004 Posts: 338 Location: Barcelona, Spain
|
Posted: Sun Dec 26, 2010 1:37 pm Post subject: |
|
|
From bug #346805:
"When two init.d scripts have "provide net" then baselayout-1 will complain (but not fail). The cause is known, but the solution proves difficult to implement (either we can get the init.d script to recognise the baselayout version, or much easier, get baselayout-2 stable,)." _________________ "The hunt is sweeter then the kill."
Registered Linux User #176911 |
|
Back to top |
|
 |
Wilhelm Tux's lil' helper

Joined: 27 May 2003 Posts: 149
|
Posted: Mon Dec 27, 2010 11:54 pm Post subject: Same problem |
|
|
I have the same problem. Solved the bug.
In my case it was dhcpcd which contained "provide net". |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Fri Dec 31, 2010 1:00 am Post subject: Re: Same problem |
|
|
Wilhelm wrote: | I have the same problem. Solved the bug.
In my case it was dhcpcd which contained "provide net". |
Exact same problem here.
provides network results in dhcpcd saying it can' reference itself.
So what was the solution?
thx _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
Adam. n00b

Joined: 21 Jul 2010 Posts: 12
|
Posted: Fri Dec 31, 2010 3:49 pm Post subject: |
|
|
For me the solution was
rc-update del net-eth0 default
Since eth0 is a device initiated service it is started anyway. |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Jan 01, 2011 4:00 pm Post subject: Re: Same problem |
|
|
Gentree wrote: | Wilhelm wrote: | I have the same problem. Solved the bug.
In my case it was dhcpcd which contained "provide net". |
Exact same problem here.
provides network results in dhcpcd saying it can' reference itself.
So what was the solution?
thx |
OK, I found that removing /etc/init.d/dhcpcd got around the problem , although it obviously needs to be hacked by hand each time there's an update.
Then consolekit can start correctly if added to default runlevel.
Not very satisfactory but working. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
tonyp n00b

Joined: 27 Apr 2005 Posts: 9
|
Posted: Mon Jan 10, 2011 7:27 pm Post subject: |
|
|
This worked for me as well.
Adam. wrote: | For me the solution was
rc-update del net-eth0 default
Since eth0 is a device initiated service it is started anyway. |
|
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon Jan 10, 2011 11:49 pm Post subject: |
|
|
Code: | Joined: 27 Apr 2005
Posts: 2 |
this is your second posting since joining in 2005 ?
I'm sure that must win some prize. Is the Guiness book of records aware of this outstanding feat? _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
VovikE n00b

Joined: 11 Jan 2011 Posts: 1
|
Posted: Tue Jan 11, 2011 12:16 pm Post subject: |
|
|
env-update ? |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue Jan 11, 2011 5:53 pm Post subject: |
|
|
VovikE wrote: | env-update ? |
env-update ? _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
Killerchronic Tux's lil' helper

Joined: 24 Apr 2007 Posts: 91 Location: UK
|
Posted: Fri Jan 14, 2011 5:58 pm Post subject: |
|
|
VovikE wrote: | env-update ? |
This fixed all the problems for me, then just went through and restarted services. |
|
Back to top |
|
 |
eulogious n00b


Joined: 18 Feb 2008 Posts: 35
|
Posted: Sat Jan 15, 2011 9:53 pm Post subject: |
|
|
I tried deleteing net.eth0 from my default run level in hopes it would be that easy, I also rebooted, and I was still getting this error. I was able to track mine down to /etc/init.d/dhcpd. I commented out the "provide net" line, and all is well
Code: |
#!/sbin/runscript
# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
command=/sbin/dhcpcd
pidfile=/var/run/dhcpcd.pid
command_args=-q
name="DHCP Client Daemon"
depend()
{
# provide net
need localmount
use logger network
after bootmisc modules
before dns
}
|
This is the answer. Just don't need "provide net" in more than one place, and tells us the fix...
Lori wrote: | From bug #346805:
"When two init.d scripts have "provide net" then baselayout-1 will complain (but not fail). The cause is known, but the solution proves difficult to implement (either we can get the init.d script to recognise the baselayout version, or much easier, get baselayout-2 stable,)." |
This helped me understand as well...
From bug #346805 as well...
Quote: | Actually, messing with the init script is not the correct solution. That line
should say "provide net".
If you are trying to add the dhcpcd init script to the runlevels, you are
setting up to run dhcpcd as a standalone service. If you are running it this
way, it takes full control of the interfaces, so you should remove all net.*
scripts for interfaces you want dhcpcd to configure from the run levels.
However, the more familiar way, using the net.* scripts, means that you do not
need to add the dhcpcd script to any run levels; dhcp will be run by the net.*
scripts as needed.
|
The latter part doesn't apply to me, as udev starts eth0 for me, and then dhcpd is kicked off as well, so no net.* services are started by using init.d scripts (well, net.lo has to start at boot vi init.d, I can't figure out how else to start it). But it helped me understand the logic behind the "provide net" statement and what it was doing so I could track down what was going on.
I am sure I could track down which other script has the "provide net" line in it, but I found dhcpd first, so that's the one I changed. If you are still having this problem after commenting out "provide net", it's most likely because it is in more than one script. Find the other instances of "provide net", and comment them out leaving only one, and the error should go away. That is until the next update... It's a hack, but it works.
Let's hope baselayout2 becomes stable soon, and then this won't matter... |
|
Back to top |
|
 |
Gentree Watchman


Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sun Jan 16, 2011 4:51 pm Post subject: Re: Same problem |
|
|
@eulogiou, just delete /etc/init.d/dhcpcd as I posted above. Equally much a hack, equally unsatisfactory but it seems it's the best Gentoo has to offer just now.
Gentree wrote: | Gentree wrote: | Wilhelm wrote: | I have the same problem. Solved the bug.
In my case it was dhcpcd which contained "provide net". |
Exact same problem here.
provides network results in dhcpcd saying it can' reference itself.
So what was the solution?
thx |
OK, I found that removing /etc/init.d/dhcpcd got around the problem , although it obviously needs to be hacked by hand each time there's an update.
Then consolekit can start correctly if added to default runlevel.
Not very satisfactory but working. |
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
 |
eulogious n00b


Joined: 18 Feb 2008 Posts: 35
|
Posted: Mon Jan 17, 2011 6:34 am Post subject: Re: Same problem |
|
|
Gentree wrote: | @eulogiou, just delete /etc/init.d/dhcpcd as I posted above. Equally much a hack, equally unsatisfactory but it seems it's the best Gentoo has to offer just now.
|
For sure deleting the entire script will make the message go away, just like a 12lbs sledge hammer will kill a fly. It's overkill, but it gets the job done
I like having the script around, if for nothing else it's a reminder that it's installed. I am also anal when it comes to my system, so I don't like deleting scripts, even if they really don't do anything, but that's just me
At least I don't get that stupid message anymore  |
|
Back to top |
|
 |
Warhead Tux's lil' helper


Joined: 09 Oct 2003 Posts: 122 Location: Verden, near Bremen, Germany
|
Posted: Thu Feb 17, 2011 3:31 pm Post subject: |
|
|
I ran into this issue when trying to use the teamspeak3 server runscript. I fail to see, what to do from here. Do I need to modify the runscrip? Do I have to rename / remove some net services? Can the runscript not be used at the moment due to this error? Google does not find any references regarding this error and teamspeak, but I do not think I am the only one with this. Any help is gladly apreciated.
Regards
Lorgarn _________________ To Rome said Nero: "If to smoke you turn
I shall not cease to fiddle while you burn."
To Nero Rome replied: "Pray do your worst,
'Tis my excuse that you were fiddling first."
--Orm Pludge |
|
Back to top |
|
 |
ocZer n00b

Joined: 28 Jun 2005 Posts: 36 Location: Drammen, Norway
|
Posted: Sun Feb 20, 2011 11:47 am Post subject: |
|
|
I ran into the same problem myself. Solved it by removing all net.* devices from default runlevel and also removing dhcpcd and netmount.
Net.eth0 and net.wlan0 are device initiated. When it cant find a config file to set up dhcp it starts dhcpcd by itself. _________________ kernel 2.6.36-gentoo-r5 x86_64 - Acer 4820tg laptop |
|
Back to top |
|
 |
Warhead Tux's lil' helper


Joined: 09 Oct 2003 Posts: 122 Location: Verden, near Bremen, Germany
|
Posted: Mon Feb 21, 2011 1:40 pm Post subject: |
|
|
ocZer wrote: | I ran into the same problem myself. Solved it by removing all net.* devices from default runlevel and also removing dhcpcd and netmount.
Net.eth0 and net.wlan0 are device initiated. When it cant find a config file to set up dhcp it starts dhcpcd by itself. |
The machine provides routing so it has no DHCP client demon. Can not remove the DHCP or PPPOE, have to keep uo both eth devices (one for the pppoe connection to the outside world and one to the LAN). Is the use of more then one net.* runscripts incorrect? Or is this a workaround because the behavior is a bug?
Regards
Warhead _________________ To Rome said Nero: "If to smoke you turn
I shall not cease to fiddle while you burn."
To Nero Rome replied: "Pray do your worst,
'Tis my excuse that you were fiddling first."
--Orm Pludge |
|
Back to top |
|
 |
|