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

    haproxy broken after update to 2.8.0: nbproc is not supported any more...

    Scheduled Pinned Locked Moved Cache/Proxy
    47 Posts 18 Posters 9.6k 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.
    • D
      Darkk @eduardomozart
      last edited by

      @eduardomozart You can do the same thing via the package manager to install the dev version. Same thing happened to the pfsense plus version today.

      Adding the dev version fixed it.

      E 1 Reply Last reply Reply Quote 0
      • E
        eduardomozart @Darkk
        last edited by

        @Darkk I was facing the issue stated at https://forum.netgate.com/topic/180409/can-t-update-pfsense-or-install-packages/ so I was unable to install packages from webUI but was able to install them through CLI.

        D 1 Reply Last reply Reply Quote 0
        • D
          Darkk
          last edited by Darkk

          If you don't want to edit anything you can install the dev version which will fix this issue. You don't need to uninstall the standard version as it will replace it with the dev during install.

          EDIT: I am running pfsense plus version 23.05.1-RELEASE (amd64) so it might be different on 2.7.

          C 1 Reply Last reply Reply Quote 1
          • D
            Darkk @eduardomozart
            last edited by

            @eduardomozart said in haproxy broken after update to 2.8.0: nbproc is not supported any more...:

            @Darkk I was facing the issue stated at https://forum.netgate.com/topic/180409/can-t-update-pfsense-or-install-packages/ so I was unable to install packages from webUI but was able to install them through CLI.

            Ok, there might be some differences because I am running the pfsense plus version 23.05.1-RELEASE (amd64) .

            1 Reply Last reply Reply Quote 0
            • M
              michmoor LAYER 8 Rebel Alliance
              last edited by

              What is nbproc 1?
              I feel iffy editing without knowing the full impact. Im glad there’s a fix. Would prefer a package fix of course

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              D 1 Reply Last reply Reply Quote 1
              • C
                chigh09 @Darkk
                last edited by

                @Darkk it’s the processor count (cores) you want haproxy using.

                1 Reply Last reply Reply Quote 2
                • D
                  davidi @michmoor
                  last edited by

                  @michmoor nbproc was deprecated in HAProxy. For more information on what it is, you can go here: http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#nbproc

                  Hopefully, this gets fixed soon.

                  D 1 Reply Last reply Reply Quote 2
                  • D
                    Darkk @davidi
                    last edited by

                    @davidi Maybe this update should be pulled till it's fixed?

                    D 1 Reply Last reply Reply Quote 3
                    • D
                      davidi @Darkk
                      last edited by

                      @Darkk Ya, maybe the pfSense devs should pull this package. If you go here: https://github.com/pfsense/FreeBSD-ports/pull/1153

                      It looked liked it was fixed in pfSense+. Doesn't look like those changes made it to the package being offered for pfSense 2.7

                      I'm sure the devs will fix it in no time. At least it's running for me right now when I do it manually.

                      D 1 Reply Last reply Reply Quote 1
                      • N
                        nartn @davidi
                        last edited by

                        @davidi Awesome! didn't know about the Diagnostics->Edit File, thanks for sharing

                        1 Reply Last reply Reply Quote 1
                        • D
                          Darkk @davidi
                          last edited by

                          @davidi Ya, not sure why the update didn't get put in because I updated it like couple of hours ago on 23.05.1-RELEASE (amd64) which broke it. Ah well. Least it was an easy fix.

                          1 Reply Last reply Reply Quote 1
                          • R
                            royjones @nartn
                            last edited by

                            @nartn thanks for your workaround, it works!

                            M 1 Reply Last reply Reply Quote 0
                            • P
                              Pierre 0
                              last edited by

                              This problem still happens in pfsense+ 23.05.1-RELEASE (arm64) built on Wed Jun 28 03:57:42 UTC 2023 FreeBSD 14.0-CURRENT,
                              with package HAProxy net 0.62_1 / haproxy-2.7.6.

                              The fix presented in this thread works fine.

                              SjMS K 2 Replies Last reply Reply Quote 2
                              • C
                                cforker
                                last edited by

                                Hi,

                                Today I updated the HAPROXY package as it was informing to update. After updating the package all my addresses are not accessible any more and the service stopped. It is not possible to start the service. When saving the config I get the following:

                                Errors found while starting haproxy
                                [NOTICE] (47115) : haproxy version is 2.7.8-58c657f
                                [NOTICE] (47115) : path to executable is /usr/local/sbin/haproxy
                                [ALERT] (47115) : config : parsing [/var/etc/haproxy_test/haproxy.cfg:8] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available.
                                [ALERT] (47115) : config : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg
                                [ALERT] (47115) : config : Fatal errors found in configuration.

                                I tried commenting out the nbproc in the .cfg but still not able to start the service.

                                Anyone any idea how to fix this and where?

                                Thanx in advance

                                1 Reply Last reply Reply Quote 0
                                • M
                                  machbot @royjones
                                  last edited by

                                  @royjones Better to apply the fix manually mentioned on the github marge request as shared by @davidi, manual edits to the .cfg as suggested by @nartn isn't persistent across reboots.

                                  1 Reply Last reply Reply Quote 1
                                  • C
                                    cforker
                                    last edited by cforker

                                    Hi,

                                    Today I updated the HAPROXY package as it was informing to update. After updating the package all my addresses are not accessible any more and the service stopped. It is not possible to start the service. When saving the config I get the following:

                                    Errors found while starting haproxy
                                    [NOTICE] (47115) : haproxy version is 2.7.8-58c657f
                                    [NOTICE] (47115) : path to executable is /usr/local/sbin/haproxy
                                    [ALERT] (47115) : config : parsing [/var/etc/haproxy_test/haproxy.cfg:8] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available.
                                    [ALERT] (47115) : config : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg
                                    [ALERT] (47115) : config : Fatal errors found in configuration.

                                    I tried commenting out the nbproc in the .cfg but still not able to start the service.

                                    Anyone any idea how to fix this and where?

                                    Thanx in advance

                                    1 Reply Last reply Reply Quote 1
                                    • C
                                      cforker
                                      last edited by

                                      Ok, found a temporary solution:

                                      ssh to pfsense
                                      
                                      edit /var/etc/haproxy/haproxy.cfg and delete the line "nbproc 1"
                                      
                                      run haproxy from command line: haproxy -f /var/etc/haproxy/haproxy.cfg
                                      

                                      Should be good to go for the time being.

                                      Chris

                                      1 Reply Last reply Reply Quote 1
                                      • C
                                        cforker
                                        last edited by

                                        Ok,

                                        temporary solution found:

                                        ssh to pfsense
                                        
                                        edit /var/etc/haproxy/haproxy.cfg and delete the line "nbproc 1"
                                        
                                        run haproxy from command line: haproxy -f /var/etc/haproxy/haproxy.cfg
                                        

                                        Would be nice if there will be a permanent solution.

                                        Cheers,

                                        Chris

                                        1 Reply Last reply Reply Quote 1
                                        • SjMS
                                          SjM @Pierre 0
                                          last edited by

                                          @Pierre-0 Ditto for me. But when will this be properly patched?

                                          1 Reply Last reply Reply Quote 1
                                          • K
                                            kiddsupreme @Pierre 0
                                            last edited by

                                            @Pierre-0

                                            Can you tell me how you applied the update from above? I'm in the haproxy.inc file, but I am not sure exactly "where" I should place that information. Perhaps if you have a screenshot of how you placed it so I have something to reference? I appreciate the help!

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