You are not logged in.

#1 2013-01-15 13:50:46

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

[solved with netctl] netcfg doesnt start on some boots

Hi, This has happened to me twice now where after an upgrade on a headless server, netcfg does not run the following boot after an upgrade, I have to then unplug and replug in the power and then it fixes itself.

Ive enabled the netcfg.service and am using a profile from the example folder for static ip and I have put that profile in the networks array in the netcfg config file.

Here is journalctl:

Jan 15 15:29:02 russell-server systemd[1]: netcfg.service: main process exited, code=exited, status=1/FAILURE
Jan 15 15:29:03 russell-server systemd[1]: Failed to start Netcfg multi-profile daemon.
Jan 15 15:29:03 russell-server systemd[1]: Unit netcfg.service entered failed state
Jan 15 15:29:03 russell-server systemd[1]: Starting Network.
Jan 15 15:29:03 russell-server systemd[1]: Reached target Network.

*Edit

Just found this too:

Jan 15 15:29:24 russell-server netcfg-daemon[136]: :: ethernet-static up Interface eth0 does not exist
Jan 15 15:29:24 russell-server netcfg-daemon[136]: [fail]

Last edited by jrussell (2013-05-12 18:47:20)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2013-01-15 16:38:14

chris_l
Member
Registered: 2010-12-01
Posts: 387

Re: [solved with netctl] netcfg doesnt start on some boots

One of the times it fails, do

# ip link

to see if it detects your ethernet card at all, and under what name it does.


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#3 2013-01-15 16:44:39

Gusar
Member
Registered: 2009-08-25
Posts: 3,413

Re: [solved with netctl] netcfg doesnt start on some boots

netcfg and systemd don't really play well together, there are race conditions at boot. There's a bug open about it. But rather than trying to shoehorn netcfg into submission, it's developer created netctl, a new network manager similar to netcfg, but fully integrated with systemd. It's in AUR.

Offline

#4 2013-01-15 21:32:31

hawaiicharles
Member
Registered: 2012-12-21
Posts: 71

Re: [solved with netctl] netcfg doesnt start on some boots

Unfortunately I don't have definitive answer, but I can tell you the same thing happened to me just today.
I tried to run "ip link set eth0 up", and it returned 'Cannot find device "eth0"'.  However, when I ran lspci, my ethernet adapter was there.  I had thought it was a hardware problem.

Upon finding this thread, I ran "ip link", and it seems that my ethernet adapter somehow got renamed to "enp2s0".  After I edited my netcfg profile to update the adapter name, netcfg started up OK.

Offline

#5 2013-01-15 21:56:15

chris_l
Member
Registered: 2010-12-01
Posts: 387

Re: [solved with netctl] netcfg doesnt start on some boots

hawaiicharles wrote:

Upon finding this thread, I ran "ip link", and it seems that my ethernet adapter somehow got renamed to "enp2s0".  After I edited my netcfg profile to update the adapter name, netcfg started up OK.

hm, I didn't expected such a weird name, but anyway.
@jrusell (if this applies to you), @hawaiicharles: Ajust the name of the ethernet device following this article: https://wiki.archlinux.org/index.php/Ud … vice_names

While just using the name "enp2s0" on netcfg may seem enough, if you don't know what caused the name change, then it could change again. By manually setting the name, you prevent that.

EDIT: yeah, I was wrong. You are better using enp2s0. wink

Last edited by chris_l (2013-01-17 01:39:59)


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#6 2013-01-15 22:00:29

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 4,804

Re: [solved with netctl] netcfg doesnt start on some boots

The name change was caused by an update to the udev rule in systemd 197.

https://mailman.archlinux.org/pipermail … 24223.html

It shouldn't have been automatic on an upgrade, though. New installs will use the new naming scheme and old installs will only if you manually delete the "placeholder" rule the package installs.

Online

#7 2013-01-15 22:34:58

chris_l
Member
Registered: 2010-12-01
Posts: 387

Re: [solved with netctl] netcfg doesnt start on some boots

Ohh! So that would be an upstrem solution to the problem of eth0 and eth1 switching places? nice big_smile

Ignore what I said about "it could change again". However, you can change the name with udev to have an easier name, if you want.

Last edited by chris_l (2013-01-15 22:39:12)


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#8 2013-02-04 15:20:23

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 692

Re: [solved with netctl] netcfg doesnt start on some boots

chris_l wrote:

One of the times it fails, do

# ip link

to see if it detects your ethernet card at all, and under what name it does.

I posted a method that seems to work consistently for me for a wired connection on two different machines - and if you follow setting up ifplugd, netcfg and make sure that the correct systemd services are enabled it "should" work for you too.  See https://bbs.archlinux.org/viewtopic.php … 3#p1227083


Mike C

Offline

Board footer

Powered by FluxBB