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

    2.3 kills haproxy

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    13 Posts 10 Posters 5.5k 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.
    • I Offline
      ideasman69
      last edited by

      Hi all,

      Performed an upgrade to 2.3 and found that haproxy wasn't working.

      Went to Services -> HAProxy = php crash
      Tried a reinstall of HAProxy through package manager = still no good
      Removed the package, reinstalled the package = still no good

      >>> Installing pfSense-pkg-haproxy... 
      Updating pfSense-core repository catalogue...
      pfSense-core repository is up-to-date.
      Updating pfSense repository catalogue...
      pfSense repository is up-to-date.
      All repositories are up-to-date.
      Checking integrity... done (0 conflicting)
      The following 3 package(s) will be affected (of 0 checked):
      
      New packages to be INSTALLED:
      	pfSense-pkg-haproxy: 0.44 [pfSense]
      	haproxy: 1.6.3_1 [pfSense]
      	lua53: 5.3.2 [pfSense]
      
      The process will require 3 MiB more space.
      [1/3] Installing lua53-5.3.2...
      [1/3] Extracting lua53-5.3.2: .......... done
      [2/3] Installing haproxy-1.6.3_1...
      [2/3] Extracting haproxy-1.6.3_1: ........ done
      [3/3] Installing pfSense-pkg-haproxy-0.44...
      [3/3] Extracting pfSense-pkg-haproxy-0.44: .......... done
      Saving updated package information...
      done.
      Loading package configuration... done.
      Configuring package components...
      Loading package instructions...
      Custom commands...
      Executing custom_php_install_command()...PHP ERROR: Type: 1, File: /usr/local/pkg/haproxy_utils.inc, Line: 164, Message: Call to undefined function get_configured_carp_interface_list()pkg: POST-INSTALL script failed
      >>> Cleaning up cache... done.
      Success
      

      Looks like i'll need to downgrade and restore my backup from last night  ???

      1 Reply Last reply Reply Quote 0
      • P Offline
        piperfect
        last edited by

        Same issue here.  :-\

        I think this is the first time in 10 years of using pfSense that I needed to reinstall because of an update.

        1 Reply Last reply Reply Quote 0
        • I Offline
          ideasman69
          last edited by

          wow 10 years?! I only started using pfsense 3 weeks ago. i was so impressed with it until this morning  :-\

          1 Reply Last reply Reply Quote 0
          • C Offline
            cmb
            last edited by

            You don't need to reinstall. Just delete the file the old package left behind.

            rm /usr/local/pkg/haproxy_utils.inc
            

            I'll look at what we can do to prevent that from being an issue in the future. It won't happen to that system again now that you're up to 2.3 though. The new pkg format shouldn't leave things hanging around the way the old package system could.

            1 Reply Last reply Reply Quote 0
            • I Offline
              ideasman69
              last edited by

              thanks for that.

              removing the file did enable haproxy to install and start as usual. all my rules, frontends and backends are in there but none of them work properly.

              edit: had to stick all my shared frontend rules into the primary frontend for them to work properly.

              1 Reply Last reply Reply Quote 0
              • M Offline
                michaelschefczyk
                last edited by

                Dear All,

                in a case with CARP interfaces, the consequences for HAProxy may even be more complicated. If interested, please see the error message here:

                https://forum.pfsense.org/index.php?topic=109777.msg611143#msg611143

                Regards,

                Michael Schefczyk

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Spix
                  last edited by

                  One way to do it: http://blog.stordata.se/index.php/2016/04/13/upgrade-to-pfsense-2-3-breaks-haproxy-how-to-do-it/

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    leetbulb
                    last edited by

                    @cmb:

                    You don't need to reinstall. Just delete the file the old package left behind.

                    rm /usr/local/pkg/haproxy_utils.inc
                    

                    I'll look at what we can do to prevent that from being an issue in the future. It won't happen to that system again now that you're up to 2.3 though. The new pkg format shouldn't leave things hanging around the way the old package system could.

                    can confirm this worked. removed that file and then rebooted, everything working now. i owe you a beer.

                    will report back on carp interfaces

                    just an update: doing this may cause issues during final startup phases… please do this with caution and remember to backup first.

                    update 2: had to reinstall and restore config.xml ... had to install haproxy 1.6 (non-devel) and it's working now.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Romaxx
                      last edited by

                      Ok, works for me (devel version)

                      remove ha-proxy package from package manager

                      delete files: /usr/local/pkg
                      haproxy.inc
                      haproxy_htmllist.inc
                      haproxy_utils.inc
                      haproxy_socketinfo.inc
                      haproxy_upgrade_config.inc
                      haproxy_utils.inc
                      haproxy_xmlrpcsyncclient.inc

                      Install ha-proxy (devel) package.
                      reboot.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bleo
                        last edited by

                        I'm seeing the same issues - although after getting HAProxy to reinstall and start, I'm unable to change any settings through the GUI.

                        Fatal error: Class 'Form_Section_class' not found in /usr/local/www/haproxy/haproxy_listeners_edit.php on line 603 Call Stack: 0.0001 230344 1\. {main}() /usr/local/www/haproxy/haproxy_listeners_edit.php:0 PHP ERROR: Type: 1, File: /usr/local/www/haproxy/haproxy_listeners_edit.php, Line: 603, Message: Class 'Form_Section_class' not found
                        

                        Is anybody else seeing this? Looks like it could be related to the rewrite for Bootstrap. I'll do more testing and let you know what I find.

                        EDIT: I can't seem to find the class definition anywhere…

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          PiBa
                          last edited by

                          It should be inside "\usr\local\pkg\haproxy\haproxy_gui.inc".
                          Make sure you dont have that same file directly under "\usr\local\pkg"

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            bleo
                            last edited by

                            @PiBa:

                            It should be inside "\usr\local\pkg\haproxy\haproxy_gui.inc".
                            Make sure you dont have that same file directly under "\usr\local\pkg"

                            Thanks for that. It turns out that the file was indeed in both folders, however they were different. Removing the one in /usr/local/pkg threw a different error, however a uninstall and reinstall seems to have fixed it. Thanks again!

                            1 Reply Last reply Reply Quote 0
                            • Y Offline
                              yonas
                              last edited by

                              Deleting the following files and then reinstalling haproxy-devel worked for me:

                              • /usr/local/pkg/haproxy.inc

                              • /usr/local/pkg/haproxy_htmllist.inc

                              • /usr/local/pkg/haproxy_rules.inc

                              • /usr/local/pkg/haproxy_socketinfo.inc

                              • /usr/local/pkg/haproxy_upgrade_config.inc

                              • /usr/local/pkg/haproxy_utils.inc

                              • /usr/local/pkg/haproxy_xmlrpcsyncclient.inc

                              • /usr/local/pkg/pkg_haproxy_tabs.inc

                              I left the following files intact:

                              • /usr/local/pkg/haproxy.xml

                              • /usr/local/pkg/haproxy_rules.inc

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