You are not logged in.

#1 2023-11-05 02:01:42

lordpercypercy
Member
Registered: 2023-11-05
Posts: 5

dhcpcd receives SIGTERM at boot up

Hello all,

Every time I boot up I do not have a connection to the internet and I'll need to run

sudo systemctl restart dhcpcd.service

to get back online.

I tried to trace the problem using

journalctl -u dhcpcd.service

and this is the output:

  1 Nov 05 09:33:10 Desktop systemd[1]: Started DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all inte>
  2 Nov 05 09:33:10 Desktop dhcpcd[526]: dhcpcd-10.0.4 starting
  3 Nov 05 09:33:10 Desktop dhcpcd[533]: dev: loaded udev
  4 Nov 05 09:33:10 Desktop dhcpcd[533]: DUID 00:01:00:01:2b:fa:db:c1:00:d8:61:5a:31:e5
  5 Nov 05 09:33:10 Desktop dhcpcd[533]: no interfaces have a carrier
  6 Nov 05 09:33:10 Desktop dhcpcd[533]: enp34s0: waiting for carrier
  7 Nov 05 09:33:36 Desktop dhcpcd[533]: received SIGTERM, stopping
  8 Nov 05 09:33:36 Desktop dhcpcd[533]: enp34s0: removing interface
  9 Nov 05 09:33:36 Desktop systemd[1]: Stopping DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all int>
 10 Nov 05 09:33:36 Desktop dhcpcd[533]: dhcpcd exited
 11 Nov 05 09:33:36 Desktop systemd[1]: dhcpcd.service: Deactivated successfully.
 12 Nov 05 09:33:36 Desktop systemd[1]: Stopped DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all inte>
 13 Nov 05 09:33:36 Desktop systemd[1]: Started DHCP/ IPv4LL/ IPv6RA/ DHCPv6 client on all inte>
 14 Nov 05 09:33:36 Desktop dhcpcd[1316]: dhcpcd-10.0.4 starting
 15 Nov 05 09:33:36 Desktop dhcpcd[1317]: dev: loaded udev
 16 Nov 05 09:33:36 Desktop dhcpcd[1317]: DUID 00:01:00:01:2b:fa:db:c1:00:d8:61:5a:31:e5
 17 Nov 05 09:33:36 Desktop dhcpcd[1317]: no interfaces have a carrier
 18 Nov 05 09:33:36 Desktop dhcpcd[1317]: enp34s0: waiting for carrier
 19 Nov 05 09:34:00 Desktop dhcpcd[1317]: enp34s0: carrier acquired
 20 Nov 05 09:34:00 Desktop dhcpcd[1317]: enp34s0: IAID 61:5a:31:e5
 21 Nov 05 09:34:00 Desktop dhcpcd[1317]: enp34s0: adding address fe80::xxxx:xxxx:xxxx:xxxx
 22 Nov 05 09:34:00 Desktop dhcpcd[1317]: enp34s0: soliciting an IPv6 router
 23 Nov 05 09:34:01 Desktop dhcpcd[1317]: enp34s0: rebinding lease of 192.168.1.13
 24 Nov 05 09:34:01 Desktop dhcpcd[1317]: enp34s0: probing address 192.168.1.13/24
 25 Nov 05 09:34:07 Desktop dhcpcd[1317]: enp34s0: leased 192.168.1.13 for 86400 seconds
 26 Nov 05 09:34:07 Desktop dhcpcd[1317]: enp34s0: adding route to 192.168.1.0/24
 27 Nov 05 09:34:07 Desktop dhcpcd[1317]: enp34s0: adding default route via 192.168.1.1
 28 Nov 05 09:34:14 Desktop dhcpcd[1317]: enp34s0: no IPv6 Routers available

Can anyone see what the problem is? Could my router be the problem?

Thank you for the help in advance!

Offline

#2 2023-11-05 04:40:32

lordpercypercy
Member
Registered: 2023-11-05
Posts: 5

Re: dhcpcd receives SIGTERM at boot up

Just like to mention that the SIGTERM came from me as I ran

sudo systemctl restart dhcpcd.service

.
But I'm still not sure why I don't have internet on start up.

Offline

#3 2023-11-05 07:18:01

Fijxu
Member
Registered: 2021-08-11
Posts: 46

Re: dhcpcd receives SIGTERM at boot up

lordpercypercy wrote:

Could my router be the problem?

Pobably, it should receive the DHCP info from the router and I guess it takes too long and you need to restart the service I guess. What are you using Arch for? For a desktop PC for personal use or something like a server?

Becuase if you want to use it as a personal use machine, I recommend you to install NetworkManager and uninstall dhcpcd, so networkmanager will handle all the DHCP packets coming from your router and probably fix that problem, who knows.

The SIGTERM is totally normal when you are restarting the dhcpcd service. That is how systemctl (systemd) handles the restart for that service.

Offline

#4 2023-11-05 07:59:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,066

Re: dhcpcd receives SIGTERM at boot up

Becuase if you want to use it as a personal use machine, I recommend you to install NetworkManager and uninstall dhcpcd, so networkmanager will handle all the DHCP

  5 Nov 05 09:33:10 Desktop dhcpcd[533]: no interfaces have a carrier
  6 Nov 05 09:33:10 Desktop dhcpcd[533]: enp34s0: waiting for carrier
  7 Nov 05 09:33:36 Desktop dhcpcd[533]: received SIGTERM, stopping

That's not gonna do anything if there's no carrier on the NIC.

journalctl -u dhcpcd.service

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

In general, please never copypaste out of a pager, it truncates li> …

Offline

#5 2023-11-05 09:38:41

lordpercypercy
Member
Registered: 2023-11-05
Posts: 5

Re: dhcpcd receives SIGTERM at boot up

Dear Fijxu and seth, thank you for your replies. Since I am indeed running it as a personal computer, I've uninstalled dhcpcd and installed NetworkManager instead. However, I'm still not getting a connection on start up.
I've posted my complete system journal here. Thank you for your help.

Offline

#6 2023-11-05 11:00:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,066

Re: dhcpcd receives SIGTERM at boot up

The journal wrote:

Generic FE-GE Realtek PHY r8169-0-2200:00: Downshift occurred from negotiated speed 1Gbps to actual speed 10Mbps, check cabling!

PSA: Plugs are part of the cable and they exist on both ends.

Edit: since there's only one wired NIC, there's little benefit in NM so you can lean down to dhcpcd again - it certainly is not related to the problem at hand.

Last edited by seth (2023-11-05 11:02:30)

Offline

#7 2023-11-05 15:46:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: dhcpcd receives SIGTERM at boot up

As a sanity check, what is the output of find /etc/systemd/system
??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2023-11-05 15:47:26

lordpercypercy
Member
Registered: 2023-11-05
Posts: 5

Re: dhcpcd receives SIGTERM at boot up

Hi ewaller, the output is

/etc/systemd/system
/etc/systemd/system/default.target.wants
/etc/systemd/system/default.target.wants/nordvpnd.service
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/dbus-org.freedesktop.timesync1.service
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/multi-user.target.wants/netctl@enp34s0\x2dethernet\x2ddhcp.service
/etc/systemd/system/dbus-org.bluez.service
/etc/systemd/system/bluetooth.target.wants
/etc/systemd/system/bluetooth.target.wants/bluetooth.service
/etc/systemd/system/netctl@enp34s0\x2dethernet\x2ddhcp.service.d
/etc/systemd/system/netctl@enp34s0\x2dethernet\x2ddhcp.service.d/profile.conf
/etc/systemd/system/sysinit.target.wants
/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
/etc/systemd/system/network-online.target.wants
/etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service

Offline

#9 2023-11-05 15:58:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,066

Re: dhcpcd receives SIGTERM at boot up

You've meanwhile NM, dhcpcd and netctl enabled roll
dhcpcd is gonna be sufficient but it will not fix the problem - the carrier delay and ultimate downshift is most likely because of an undergraded, broken or loose cable.

Last edited by seth (2023-11-05 15:59:11)

Offline

#10 2023-11-05 16:23:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,642

Re: dhcpcd receives SIGTERM at boot up

As Seth points out, you have three services fighting for control of your network.   Network manager will start dhcpd when it needs it.  I think netctl does too.  Pick one and disable the others.  If you need wireless, I would suggest NetworkManager.

Seth is also probably right -- it is always the cable.

Last edited by ewaller (2023-11-05 16:24:20)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2023-11-08 00:29:30

lordpercypercy
Member
Registered: 2023-11-05
Posts: 5

Re: dhcpcd receives SIGTERM at boot up

Hi all, I'm still not able to diagnose the problem. But I did find out that netctl has failed. Running

systemctl --type=service

gives

 systemctl --type=service
  UNIT                                       LOAD   ACTIVE SUB     DESCRIPTION                                                                  
  bluetooth.service                          loaded active running Bluetooth service
  dbus.service                               loaded active running D-Bus System Message Bus
  getty@tty1.service                         loaded active running Getty on tty1
  kmod-static-nodes.service                  loaded active exited  Create List of Static Device Nodes
  lvm2-monitor.service                       loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
● netctl@enp34s0\x2dethernet\x2ddhcp.service loaded failed failed  A basic dhcp ethernet connection
  nordvpnd.service                           loaded active running NordVPN Daemon
  polkit.service                             loaded active running Authorization Manager
  rtkit-daemon.service                       loaded active running RealtimeKit Scheduling Policy Service
  systemd-boot-random-seed.service           loaded active exited  Update Boot Loader Random Seed
  systemd-fsck@dev-sda1.service              loaded active exited  File System Check on /dev/sda1
  systemd-fsck@dev-sdb1.service              loaded active exited  File System Check on /dev/sdb1
  systemd-journal-flush.service              loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                   loaded active running Journal Service
  systemd-logind.service                     loaded active running User Login Management
  systemd-modules-load.service               loaded active exited  Load Kernel Modules
  systemd-random-seed.service                loaded active exited  Load/Save OS Random Seed
  systemd-remount-fs.service                 loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service                     loaded active exited  Apply Kernel Variables
  systemd-timedated.service                  loaded active running Time & Date Service
  systemd-timesyncd.service                  loaded active running Network Time Synchronization
  systemd-tmpfiles-setup-dev-early.service   loaded active exited  Create Static Device Nodes in /dev gracefully
  systemd-tmpfiles-setup-dev.service         loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service             loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service               loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                      loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service              loaded active exited  Permit User Sessions
  systemd-vconsole-setup.service             loaded active exited  Virtual Console Setup
  user-runtime-dir@1000.service              loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                          loaded active running User Manager for UID 1000

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
31 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

After querying and starting netctl, this is what I get:

$ sudo systemctl status netctl@enp34s0\x2dethernet\x2ddhcp.service
○ netctl@enp34s0x2dethernetx2ddhcp.service - Networking for netctl profile enp34s0x2dethernetx2ddhcp
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: inactive (dead)
       Docs: man:netctl.profile(5)
$ sudo systemctl start netctl@enp34s0\x2dethernet\x2ddhcp.service
Job for netctl@enp34s0x2dethernetx2ddhcp.service failed because the control process exited with error code.
See "systemctl status netctl@enp34s0x2dethernetx2ddhcp.service" and "journalctl -xeu netctl@enp34s0x2dethernetx2ddhcp.service" for details.
$ sudo systemctl status netctl@enp34s0\x2dethernet\x2ddhcp.service
× netctl@enp34s0x2dethernetx2ddhcp.service - Networking for netctl profile enp34s0x2dethernetx2ddhcp
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: failed (Result: exit-code) since Wed 2023-11-08 08:11:21 +08; 15s ago
       Docs: man:netctl.profile(5)
    Process: 1410 ExecStart=/usr/lib/netctl/network start enp34s0x2dethernetx2ddhcp (code=exited, status=1/FAILURE)
   Main PID: 1410 (code=exited, status=1/FAILURE)
        CPU: 9ms

Nov 08 08:11:21  systemd[1]: Starting Networking for netctl profile enp34s0x2dethernetx2ddhcp...
Nov 08 08:11:21  network[1410]: Profile 'enp34s0x2dethernetx2ddhcp' does not exist or is not readable
Nov 08 08:11:21  systemd[1]: netctl@enp34s0x2dethernetx2ddhcp.service: Main process exited, code=exited, status=1/FAILURE
Nov 08 08:11:21  systemd[1]: netctl@enp34s0x2dethernetx2ddhcp.service: Failed with result 'exit-code'.
Nov 08 08:11:21  systemd[1]: Failed to start Networking for netctl profile enp34s0x2dethernetx2ddhcp.

Offline

#12 2023-11-08 07:28:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,066

Re: dhcpcd receives SIGTERM at boot up

Nov 08 08:11:21  network[1410]: Profile 'enp34s0x2dethernetx2ddhcp' does not exist or is not readable

Because you've enabled a bogus profile?

netctl list

Also https://bbs.archlinux.org/viewtopic.php … 1#p2129831 - does the journal still tell you that most likely your cable is broken?

Edit: seriously, you're making this way more complicated than it is.
You can just use dhcpcd as global service and disable everything else.
And then fix the cabling.

Last edited by seth (2023-11-08 07:29:35)

Offline

Board footer

Powered by FluxBB