Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#62936 - [netctl] netctl@.service fails to start at boot

Attached to Project: Arch Linux
Opened by Erich Eckner (deepthought) - Wednesday, 19 June 2019, 07:27 GMT
Last edited by Jelle van der Waa (jelly) - Friday, 11 August 2023, 15:48 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I have a netctl@ethernet-dhcp.service enabled which fails to start at boot due to:

Jun 19 08:57:22 network[478]: Starting network profile 'ethernet-dhcp'...
Jun 19 08:57:28 network[478]: No connection found on interface 'eth0' (timeout)
Jun 19 08:57:28 network[478]: Failed to bring the network up for profile 'ethernet-dhcp'
Jun 19 08:57:28 kernel: e1000e: eth0 NIC Link is Down
Jun 19 08:57:28 systemd[1]: netctl@ethernet\x2ddhcp.service: Main process exited, code=exited, status=1/FAILURE


Once booted, the unit can be started right away with
$ netctl start ethernet-dhcp


Might this be a connectivity problem? Once the net is up, I experience no problems. I also checked the cable and it is plugged in orderly. :-/


Additional info:
* package version(s)
netctl 1.20-1
systemd 242.29-1
linux 5.1.11.arch1-1

* config and/or log files etc.

$ cat /etc/netctl/ethernet-dhcp
Description='A basic dhcp ethernet connection'
Interface=eth0
Connection=ethernet
IP=dhcp

$ journalctl -b 0 | grep 'netctl\|eth0\|network'
Jun 19 08:56:56 systemd[1]: /etc/systemd/system/netctl@ethernet\x2ddhcp.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Jun 19 08:57:19 kernel: e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) d4:be:d9:9c:1b:da
Jun 19 08:57:19 kernel: e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
Jun 19 08:57:19 kernel: e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: E041FF-0FF
Jun 19 08:57:22 network[478]: Starting network profile 'ethernet-dhcp'...
Jun 19 08:57:28 network[478]: No connection found on interface 'eth0' (timeout)
Jun 19 08:57:28 network[478]: Failed to bring the network up for profile 'ethernet-dhcp'
Jun 19 08:57:28 kernel: e1000e: eth0 NIC Link is Down
Jun 19 08:57:28 systemd[1]: netctl@ethernet\x2ddhcp.service: Main process exited, code=exited, status=1/FAILURE
Jun 19 08:57:29 kernel: audit: type=1130 audit(1560927448.698:27): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@ethernet\x2ddhcp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 08:57:28 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@ethernet\x2ddhcp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 08:57:28 systemd[1]: netctl@ethernet\x2ddhcp.service: Failed with result 'exit-code'.
Jun 19 08:57:28 systemd[1]: Starting TLS tunnel for network daemons...
Jun 19 08:57:33 systemd[1]: Started TLS tunnel for network daemons.
Jun 19 08:58:28 network-wait-online[548]: 11111111111111111111111111111111111111111111111111111111111Kein Link
Jun 19 08:58:28 systemd[1]: network-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jun 19 08:58:28 systemd[1]: network-wait-online.service: Failed with result 'exit-code'.
Jun 19 08:58:28 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=network-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 08:58:28 kernel: audit: type=1130 audit(1560927508.682:38): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=network-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 08:58:38 systemd[903]: Listening on GnuPG network certificate management daemon.
Jun 19 08:59:45 network[2436]: Starting network profile 'ethernet-dhcp'...
Jun 19 08:59:48 kernel: e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Jun 19 08:59:48 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Jun 19 08:59:49 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@ethernet\x2ddhcp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 19 08:59:49 kernel: audit: type=1130 audit(1560927589.119:114): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@ethernet\x2ddhcp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 19 08:59:50 dhcpcd[2727]: eth0: IAID d9:9c:1b:da
Jun 19 08:59:50 ntpd[567]: unable to create socket on eth0 (4) for fe80::d6be:d9ff:fe9c:1bda%2#123
Jun 19 08:59:51 dhcpcd[2727]: eth0: rebinding lease of 141.35.50.156
Jun 19 08:59:51 dhcpcd[2727]: eth0: carrier lost
Jun 19 08:59:51 kernel: e1000e: eth0 NIC Link is Down
Jun 19 08:59:54 dhcpcd[2727]: eth0: carrier acquired
Jun 19 08:59:54 kernel: e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Jun 19 08:59:54 dhcpcd[2727]: eth0: IAID d9:9c:1b:da
Jun 19 08:59:54 sudo[2797]: erich : TTY=pts/1 ; PWD=/home/erich ; USER=root ; COMMAND=/usr/bin/journalctl -u netctl@ethernetx2ddhcp.service -b 0
Jun 19 08:59:55 dhcpcd[2727]: eth0: rebinding lease of 141.35.50.156
Jun 19 08:59:56 ntpd[567]: Listen normally on 5 eth0 [fe80::d6be:d9ff:fe9c:1bda%2]:123
Jun 19 08:59:58 dhcpcd[2727]: eth0: probing address 141.35.50.156/23
Jun 19 09:00:04 dhcpcd[2727]: eth0: leased 141.35.50.156 for 57600 seconds
Jun 19 09:00:04 dhcpcd[2727]: eth0: adding route to 141.35.50.0/23
Jun 19 09:00:04 dhcpcd[2727]: eth0: adding default route via 141.35.50.1
Jun 19 09:00:05 network[2436]: Started network profile 'ethernet-dhcp'
Jun 19 09:00:05 ntpd[567]: Listen normally on 6 eth0 141.35.50.156:123
Jun 19 09:00:08 systemd[1]: Starting Networking for netctl profile network-wait-online.service...
Jun 19 09:00:08 network[3874]: Profile 'network-wait-online.service' does not exist or is not readable
Jun 19 09:00:08 systemd[1]: netctl@network\x2dwait\x2donline.service.service: Main process exited, code=exited, status=1/FAILURE
Jun 19 09:00:08 systemd[1]: netctl@network\x2dwait\x2donline.service.service: Failed with result 'exit-code'.
Jun 19 09:00:08 systemd[1]: Failed to start Networking for netctl profile network-wait-online.service.
Jun 19 09:00:08 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@network\x2dwait\x2donline.service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 09:00:08 kernel: audit: type=1130 audit(1560927608.192:137): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@network\x2dwait\x2donline.service comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jun 19 09:00:17 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=network-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 19 09:00:17 kernel: audit: type=1130 audit(1560927617.142:138): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=network-wait-online comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 19 09:13:37 systemd[1]: /etc/systemd/system/netctl@ethernet\x2ddhcp.service:1: .include directives are deprecated, and support for them will be removed in a future version of systemd. Please use drop-in files instead.
Jun 19 09:13:51 sudo[1651]: erich : TTY=pts/6 ; PWD=/home/erich ; USER=root ; COMMAND=/usr/bin/netctl reenable ethernet-dhcp


Steps to reproduce:
> netctl enable ethernet-dhcp
> reboot
(I'm sure it's not as trivial as that, but there is really nothing special about my setup here ...)
This task depends upon

Closed by  Jelle van der Waa (jelly)
Friday, 11 August 2023, 15:48 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/n etctl/issues/5
Comment by Thomas Natschläger (tomnat) - Wednesday, 19 June 2019, 17:14 GMT
I encounter exactly the same problem. Nothing to add, because you already have explained it.
Comment by Erich Eckner (deepthought) - Wednesday, 21 August 2019, 09:16 GMT
The issue seems to have resolved itself (for me).
I did not change anything, but I have not experienced the problem for quite some time now (I do not reboot that often, so it may be ok since 3 or 4 reboots now).
Comment by Jouke Witteveen (jouke) - Wednesday, 21 August 2019, 14:58 GMT
Sorry for the late reply, only just now did I become aware of this report.

Could it be that your card is 'just slow to come up' (viz. https://git.archlinux.org/netctl.git/tree/src/lib/connections/ethernet?h=1.20#n25)? In that case, the issue may disappear if you simply increase the carrier timeout (e.g. TimeoutCarrier=20).
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.

Loading...