Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    KEA service stopping through the day

    Scheduled Pinned Locked Moved DHCP and DNS
    43 Posts 16 Posters 7.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Markito @SteveITS
      last edited by

      @SteveITS Thanks :) I had not realized that.

      1 Reply Last reply Reply Quote 0
      • T
        ThomasDr @w0w
        last edited by

        @w0w
        This can happen if you have switched from dhcpd to kea but have not changed the service watchdog.

        1 Reply Last reply Reply Quote 1
        • chudakC
          chudak @jimp
          last edited by

          @jimp Today see TS state unexpected state: NoState and removing /tmp/kea4-ctrl-socket.lock does no help

          something new?

          1 Reply Last reply Reply Quote 0
          • M
            marcosm Netgate
            last edited by

            This issue should be handled with the 24.11-RC. Feedback on it would be helpful if you were hitting this previously.

            D 1 Reply Last reply Reply Quote 0
            • D
              darkrolder @marcosm
              last edited by

              @marcosm This issue is happening to me
              a few nights prior i woke up to some "IOT" things flashing as they couldnt connect to their wifi.
              and found i didnt have internet, however when i got up at 6 it was working again without user intervention so i am not sure..

              this morning i woke up to no "internet"
              (some statically set things over ethernet were working, obv) but everything wifi was offline.

              on the router, kea ipv4 was offline i had to click the start button, for now i have installed the watch dog server to auto restart. id send logs if i knew where and which ones you wanted to help diag this? or if this is even related? (running 24.11)

              best regards
              -Rolder

              D 1 Reply Last reply Reply Quote 0
              • D
                DavidIr @darkrolder
                last edited by

                @darkrolder said in KEA service stopping through the day:

                on the router, kea ipv4 was offline i had to click the start button, for now i have installed the watch dog server to auto restart. id send logs if i knew where and which ones you wanted to help diag this? or if this is even related? (running 24.11)

                I have also had this experience on my Netgate 3100. Only details I could find in the logs was:

                Dec 5 20:58:54	kernel		pid 67465 (kea-dhcp4), jid 0, uid 0: exited on signal 6 (core dumped)
                

                For some reason the kia-dhcp4 process does not seem to be generating any log entries on my device so really hard to work out if it's connected.
                I have after reading a few posts increased the size of my DHCP pool in case some IoT devices are doing something odd (I saw this as a possibility in another thread.

                I am now in the monitoring phase but I would not have expected a DHCP service to fail so spectacularly if it ran out of addresses in it's pool to give out.

                D M 2 Replies Last reply Reply Quote 1
                • D
                  darkrolder @DavidIr
                  last edited by

                  @DavidIr I don't think i have that many IOT devices, maybe 10-15? mostly light switches and my
                  cell phones, tv, etc. i have them on their own vlan with the DHCP pool size at about 150 IPs, my brother (IT admin) has suggested changing the DHCP lease from the default 2 hours to 24 hours. i have done this, so far so good. but its only been 1 day. s: only time will tell if this helps

                  -Rolder

                  1 Reply Last reply Reply Quote 0
                  • M
                    marcosm Netgate @DavidIr
                    last edited by

                    @DavidIr Did this happen on 24.11? The core dump file should be in /root - sharing that would help determine what happened.

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      DavidIr @marcosm
                      last edited by

                      @marcosm

                      @marcosm said in KEA service stopping through the day:

                      @DavidIr Did this happen on 24.11? The core dump file should be in /root - sharing that would help determine what happened.

                      Yes it did.
                      cefcd600-2ba6-4aa8-97fe-f820e1c96dc1-image.png
                      I assume the kea-dhcp4.core file?
                      I'm not familiar with these files - is it safe to just attach to the forum, or should I send in some other way?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        marcosm Netgate @DavidIr
                        last edited by

                        @DavidIr Yes. Check the timestamp of the core files, e.g. with ls -lha /root/*.core and if they are smilar (i.e. potentially related), upload them here.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          DavidIr @marcosm
                          last edited by DavidIr

                          @marcosm I have uploaded the file I downloaded the other day, but will also upload another from today which definitely aligns to when the service unexpectedly stopped this morning - I resolved by simply restarting the service. I was surprised that the watchdog did not restart the service for me.

                          9a05935d-f121-4067-b75c-b70a99c6ecc5-image.png

                          D 1 Reply Last reply Reply Quote 0
                          • D
                            DavidIr @DavidIr
                            last edited by

                            @DavidIr Hi @marcosm any joy looking at the dump files?

                            I have implemented the changes in https://forum.netgate.com/post/1199521 for now in the hope this will restart the DHCP service when it fails, but would love to understand what's going on and help solve the potentially wider issue.

                            Thank you

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              marcosm Netgate @DavidIr
                              last edited by

                              @DavidIr It would help to have some additional info about the system. You can get that by going to /status.php.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                DavidIr @marcosm
                                last edited by DavidIr

                                @marcosm status_output.tgz uploaded to the same link provided above.

                                Since the previous messages I have installed and configured the Service Watchdog plugin

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  DavidIr @DavidIr
                                  last edited by

                                  In case you need any additional info I am now on holiday until Jan 5th so will not see or be able to respond to any posts or requests for info until I return.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    rafal.arciszewski
                                    last edited by rafal.arciszewski

                                    Hi
                                    this weekend the core dump happened exactly the same in my Netgate 3100.

                                    70d2d633-116f-4776-834f-d9242c2ff14c-obraz.png

                                    c14717b7-180e-43f9-b5e0-2c01a931a165-obraz.png

                                    I wonder if there is a solution for this problem?

                                    Regards,

                                    GertjanG 1 Reply Last reply Reply Quote 0
                                    • GertjanG
                                      Gertjan @rafal.arciszewski
                                      last edited by

                                      @rafal-arciszewski

                                      "Good news" is that the reason of the core dump was a signal 6, which means the process itself has chosen to 'pull the brakes', most probably because resources were missing, like not enough RAM to name one.

                                      No "help me" PM's please. Use the forum, the community will thank you.
                                      Edit : and where are the logs ??

                                      cmcdonaldC 1 Reply Last reply Reply Quote 0
                                      • cmcdonaldC
                                        cmcdonald Netgate Developer @Gertjan
                                        last edited by cmcdonald

                                        @Gertjan said in KEA service stopping through the day:

                                        @rafal-arciszewski

                                        "Good news" is that the reason of the core dump was a signal 6, which means the process itself has chosen to 'pull the brakes', most probably because resources were missing, like not enough RAM to name one.

                                        Yes, heap corruption in this case. This is turning into quite the rabbit hole. Unfortunately, this looks like an issue deeper than Kea, like failure in libcxxrt or jemalloc. We've got some test hardware setup with some additional logging and tuning to jemalloc to try to get a better view of the state of the world before the abort. But the core dump is gnarly, the heap is trashed. The effort required to fix this might be out of scope for an EOL platform, both for us and for upstream. Will know more soon.

                                        Need help fast? https://www.netgate.com/support

                                        D 1 Reply Last reply Reply Quote 1
                                        • D
                                          DavidIr @cmcdonald
                                          last edited by DavidIr

                                          @cmcdonald Thank you for looking into this. I was hoping that my submissions would help others, but sounds quite challenging, and as you say the EOL hardware (and no doubt the additional challenges of it running 32bit) may bring an end to the investigations.

                                          If I can contribute anything to help let me know.

                                          Not sure if this is relevant or helpful but I do seem to have managed to reduce the frequency of the service failing by removing NUT from the box (which was having issues talking to my UPS on USB port), although this may be an unrelated correlation rather than anything linked.

                                          R 1 Reply Last reply Reply Quote 1
                                          • R
                                            rafal.arciszewski @DavidIr
                                            last edited by

                                            @DavidIr That sounds interesting. I also installed NUT package recently. Maybe it is correlated?
                                            I will uninstall it just in case.

                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.