# DHCPCD going crazy

**URL:** <https://community.ipfire.org/t/dhcpcd-going-crazy/11018>\
**Category:** DHCP\
**Created:** [4 February 2024 08:11 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018 "2024-02-04T08:11:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [4 February 2024 08:11 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/1 "2024-02-04T08:11:34Z")

</div>

It’s doing crazy things, shown below. Loosing RED and its connection (Internet). Again and Again.

| 07:56:05 | dhcpcd[8280] | : dhcpcd-10.0.4 starting |
| --- | --- | --- |
| 07:56:05 | dhcpcd[8283] | : DUID 00:01:00:01:2d:28:55:47:f0:d4:15:57:48:74 |
| 07:56:05 | dhcpcd[8283] | : red0: connected to Access Point: MMworx\_WAN |
| 07:56:05 | dhcpcd[8283] | : red0: IAID 15:57:48:74 |
| 07:56:06 | dhcpcd[8283] | : red0: soliciting a DHCP lease |
| 07:56:07 | dhcpcd[8283] | : red0: probing address 192.168.198.236/24 |
| 07:56:11 | dhcpcd[8283] | : red0: leased 192.168.198.236 for 3600 seconds |
| 07:56:11 | dhcpcd[8283] | : red0: adding route to 192.168.198.0/24 |
| 07:56:11 | dhcpcd[8283] | : red0: adding default route via 192.168.198.96 |
| 07:57:10 | dhcpcd[13011] | : sending signal ALRM to pid 8282 |
| 07:57:10 | dhcpcd[13011] | : waiting for pid 8282 to exit |
| 07:57:10 | dhcpcd[8283] | : received SIGALRM, releasing |
| 07:57:10 | dhcpcd[8283] | : red0: removing interface |
| 07:57:10 | dhcpcd[8283] | : red0: releasing lease of 192.168.198.236 |
| 07:57:10 | dhcpcd[8283] | : red0: deleting route to 192.168.198.0/24 |
| 07:57:10 | dhcpcd[8283] | : red0: deleting default route via 192.168.198.96 |
| 07:57:20 | dhcpcd[13011] | : pid 8282 failed to exit |
| 07:57:21 | dhcpcd[15126] | : sending signal ALRM to pid 8282 |
| 07:57:21 | dhcpcd[15126] | : waiting for pid 8282 to exit |
| 07:57:31 | dhcpcd[15126] | : pid 8282 failed to exit |
| 07:57:32 | dhcpcd[16193] | : sending signal ALRM to pid 8282 |
| 07:57:32 | dhcpcd[16193] | : waiting for pid 8282 to exit |
| 07:57:42 | dhcpcd[16193] | : pid 8282 failed to exit |
| 07:57:43 | dhcpcd[16762] | : sending signal ALRM to pid 8282 |
| 07:57:43 | dhcpcd[16762] | : waiting for pid 8282 to exit |
| 07:57:46 | dhcpcd[8283] | : received SIGALRM, releasing |
| 07:57:46 | dhcpcd[8283] | : main: control\_stop: No such file or directory |
| 07:57:46 | dhcpcd[8283] | : dhcpcd exited |
| 07:57:46 | dhcpcd[17060] | : dhcpcd-10.0.4 starting |

---

<div class="post-metadata">

**Author:** ![cfusco](https://community.ipfire.org/user_avatar/community.ipfire.org/cfusco/32/9213_2.png) [@cfusco](https://community.ipfire.org/u/cfusco)\
**Post date:** [4 February 2024 11:59 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/2 "2024-02-04T11:59:38Z")

</div>

I sent you logs to GPT4 for analysis and this is the summary.

* * *

In the logs provided from an IPFire user, the DHCP client daemon (`dhcpcd`) successfully starts and goes through the process of connecting to a wireless access point, soliciting, and then obtaining a DHCP lease for the `red0` interface. This lease acquisition completes without issue, with the daemon configuring the necessary network routes and setting up a default gateway based on the leased IP address. However, approximately a minute after the successful lease negotiation, an unexpected behavior occurs: `dhcpcd` initiates the process of releasing the leased IP address and removing the associated network routes. This action appears to be untriggered by any user command or manual intervention, suggesting an abnormal behavior within the DHCP client’s operation.

Following this unexpected lease release initiation, the daemon encounters problems with process management, specifically highlighted by its attempts to send a `SIGALRM` signal to a process that fails to exit as expected. The daemon makes multiple attempts to terminate this process, but each attempt fails, leading to repeated warnings in the log. This issue culminates in an error message indicating that `dhcpcd` cannot find or access a necessary file or directory, followed by the daemon’s exit. The close temporal link between the unexpected initiation of the lease release and the process management difficulties suggests these events may be related, indicating a singular underlying issue affecting `dhcpcd`’s operation. This situation points to a complex problem within the DHCP client mechanism, potentially involving software glitches, configuration errors, or unexpected system or network events that disrupt the normal DHCP client operation.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [4 February 2024 14:01 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/3 "2024-02-04T14:01:08Z")

</div>

Please consider to update to version 10.0.6 with the next release.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [4 February 2024 14:32 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/4 "2024-02-04T14:32:08Z")

</div>

It is already in Core Update 184.

Hoever searching for some of the messages in your logs in the dhcpcd issues in their github finds nothing related.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [4 February 2024 15:37 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/5 "2024-02-04T15:37:51Z")

</div>

I know, but I still hope. However I guess it’s related to the same issue/warning when shutdown IPFire → DHCPCD couldn’t be stopped.

That behavior - connect and reconnect many times - happens from time to time and then suddenly stops. Just as this morning again.

---

<div class="post-metadata">

**Author:** ![cfusco](https://community.ipfire.org/user_avatar/community.ipfire.org/cfusco/32/9213_2.png) [@cfusco](https://community.ipfire.org/u/cfusco)\
**Post date:** [4 February 2024 15:53 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/6 "2024-02-04T15:53:35Z")

</div>

@xperimental maybe you could go upstream and submit your logs to their bug reporting system.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [12 February 2024 20:29 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/7 "2024-02-12T20:29:05Z")

</div>

I updated to 184 and the problem still exists.

---

<div class="post-metadata">

**Author:** ![loup001](https://community.ipfire.org/user_avatar/community.ipfire.org/loup001/32/16221_2.png) [@loup001](https://community.ipfire.org/u/loup001)\
**Post date:** [12 February 2024 22:34 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/8 "2024-02-12T22:34:11Z")

</div>

@xperimental Hi

If your internet connection is on coax cable, check for faulty cable splitter.  
I fixed a friend similar problem, found faulty splitter with a broken solder as the root cause.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [13 February 2024 18:05 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/9 "2024-02-13T18:05:31Z")

</div>

It was not updated.

 ![grafik](https://community.ipfire.org/uploads/default/original/2X/e/e7da71c2d9d0b1099ab8241e50769e53cac191a2.png)

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [13 February 2024 18:07 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/10 "2024-02-13T18:07:48Z")

</div>

I see it saying dhcpcd-10.0.6 starting in the log you show.

What makes you think it wasn’t updated?

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [13 February 2024 18:08 UTC](https://community.ipfire.org/t/dhcpcd-going-crazy/11018/11 "2024-02-13T18:08:33Z")

</div>

Oh my bad it was 4 before. I was thinking about 8.
