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.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.
    • 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.