Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot add provide 'net'
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ocZer
n00b
n00b


Joined: 28 Jun 2005
Posts: 36
Location: Drammen, Norway

PostPosted: Mon Feb 21, 2011 2:00 pm    Post subject: Reply with quote

I dont think it's a bug really, but im no expert. I think it's just warning that a service has been started twice.

Could u maybe give us the output of your init log and
Code:
rc-update show default

_________________
kernel 2.6.36-gentoo-r5 x86_64 - Acer 4820tg laptop
Back to top
View user's profile Send private message
Warhead
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2003
Posts: 122
Location: Verden, near Bremen, Germany

PostPosted: Mon Feb 21, 2011 6:01 pm    Post subject: Reply with quote

ocZer wrote:
rc-update show default

Here it is:
Code:

# rc-update show default
             apache2 | default
               dhcpd | default
            iptables | default
               local | default
               mysql | default
               named | default
            net.eth1 | default
            netmount | default
               pppoe | default
                sshd | default
           syslog-ng | default
      udev-postmount | default
          vixie-cron | default
#



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
View user's profile Send private message
ocZer
n00b
n00b


Joined: 28 Jun 2005
Posts: 36
Location: Drammen, Norway

PostPosted: Wed Feb 23, 2011 2:01 pm    Post subject: Reply with quote

It appears that the reason for the message is the same on yours as it was on mine, but as you mention that u cannot remove dhcpd because it works as a routing device im not certain how to go around it.

I understand that you have a second network card then, but i cannot see it listed. It's probably called up by udev. On my setup all network cars are called by udev and i didnt have to add them with rc-update. dhcpd is called by the network card itself on boot. If you can make your eth1 device also work this way you could remove them from rc-update.
_________________
kernel 2.6.36-gentoo-r5 x86_64 - Acer 4820tg laptop
Back to top
View user's profile Send private message
Warhead
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2003
Posts: 122
Location: Verden, near Bremen, Germany

PostPosted: Wed Feb 23, 2011 3:57 pm    Post subject: Reply with quote

ocZer wrote:
It appears that the reason for the message is the same on yours as it was on mine, but as you mention that u cannot remove dhcpd because it works as a routing device im not certain how to go around it.

I understand that you have a second network card then, but i cannot see it listed. It's probably called up by udev. On my setup all network cars are called by udev and i didnt have to add them with rc-update. dhcpd is called by the network card itself on boot. If you can make your eth1 device also work this way you could remove them from rc-update.

You are right. I will try to get the device up via udef. Can this have an effect on pppoe on the device? Or is there no difference to pppoe how the device was brought up?

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
View user's profile Send private message
ocZer
n00b
n00b


Joined: 28 Jun 2005
Posts: 36
Location: Drammen, Norway

PostPosted: Wed Feb 23, 2011 4:52 pm    Post subject: Reply with quote

Im not certain how this would affect pppoe. I have never used this directly from pc, but always had a router to do the job.
_________________
kernel 2.6.36-gentoo-r5 x86_64 - Acer 4820tg laptop
Back to top
View user's profile Send private message
klhsieh
n00b
n00b


Joined: 10 Aug 2010
Posts: 5

PostPosted: Sat Mar 12, 2011 6:33 am    Post subject: Reply with quote

jwdonal wrote:
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.


Jwdonal's solution works for me!

Originally, my syslog-ng has wrong configuration. After I fixed the conf file, I get "Cannot add provide 'net', as a service with the same name exists!" error.
I have tried above methods but they did not work.
After rebooting, those problem have gone and my apache can work!
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
Goto page Previous  1, 2
Page 2 of 2

 
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