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

    KEA-DHCP6 fail to start at some point

    Scheduled Pinned Locked Moved Plus 25.07 Develoment Snapshots
    5 Posts 3 Posters 694 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.
    • w0wW
      w0w
      last edited by

      At some point, not sure exactly when it starts to happening, the KEA-DHCP6 fails to start.
      /usr/local/etc/kea/kea-dhcp6.conf shows as empty file

      ERROR [kea-dhcp6.dhcp6.0x2920d8412000] DHCP6_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp6.conf': Error initializing hooks: CmdHttpListener::run failed: unable to setup TCP acceptor for listening to the incoming HTTP requests: bind: Address already in use [system:48 at /usr/local/include/boost/asio/detail/reactive_socket_service.hpp:161:33 in function 'bind']
      

      Any thoughts?

      GertjanG 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Does it start after that if you try manually? Or resave the dhcpv6 settings?

        w0wW 1 Reply Last reply Reply Quote 0
        • w0wW
          w0w @stephenw10
          last edited by

          @stephenw10
          No, only pfSense restart did the trick.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @w0w
            last edited by

            @w0w said in KEA-DHCP6 fail to start at some point:

            ERROR [kea-dhcp6.dhcp6.0x2920d8412000] DHCP6_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp6.conf': Error initializing hooks: CmdHttpListener::run failed: unable to setup TCP acceptor for listening to the incoming HTTP requests: bind: Address already in use [system:48 at /usr/local/include/boost/asio/detail/reactive_socket_service.hpp:161:33 in function 'bind']

            Any thoughts?

            "http", so some kea or sub kea process that uses a TCP port ?

            sockstat  | grep 'kea'
            

            ... nope.

            Even stranger : You saw where the file was ? /usr/local/include/boost/asio/detail/ !
            That's in /usr/local/include/ .... I always thought that place was reserved for header files (pretty useless for pfSense as it is not a dev system) ... Well, hpp is a c++ header file. But these executable or usable ?
            I could find a 'kea' process using some port serving http requests ...

            What happened - imho - was : some kea dhcp6 sub process became a zombie, so the OS could stop it anymore. A port got bound permanently, and when dhcp6 rstarted, (a ?) process could reuse it as it was already bound: hence the error.
            Next time, if you see this very rare error again : before restarting the entire pfSense, look what process this is ?
            This zombie process could probably be removed with the "kill" command on the command line.

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

            w0wW 1 Reply Last reply Reply Quote 1
            • w0wW
              w0w @Gertjan
              last edited by

              @Gertjan
              Yes, it looks like the issue is indeed with the zombie process. If it happens again, I'll definitely check. Thanks for the idea.

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