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

    HA Proxy 1.6 fails on 2.3

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 5 Posters 3.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.
    • P Offline
      PayableOnDeath
      last edited by

      just upgraded to to 2.3 and HA proxy is failing to start.

      luckily I don't use it that much at the moment, so isn't a big loss. more of a warning to others who might upgrade.

      PHP Errors:
      [13-Apr-2016 08:11:31 Etc/UTC] PHP Stack trace:
      [13-Apr-2016 08:11:31 Etc/UTC] PHP  1. {main}() /usr/local/www/haproxy_stats.php:0
      [13-Apr-2016 08:11:31 Etc/UTC] PHP  2. file_get_contents() /usr/local/www/haproxy_stats.php:54
      [13-Apr-2016 08:11:41 Etc/UTC] PHP Fatal error:  Call to undefined function get_configured_carp_interface_list() in /usr/local/pkg/haproxy_utils.inc on line 164
      [13-Apr-2016 08:11:41 Etc/UTC] PHP Stack trace:
      [13-Apr-2016 08:11:41 Etc/UTC] PHP  1. {main}() /usr/local/www/haproxy_listeners.php:0
      [13-Apr-2016 08:11:41 Etc/UTC] PHP  2. haproxy_check_config() /usr/local/www/haproxy_listeners.php:76
      [13-Apr-2016 08:11:41 Etc/UTC] PHP  3. get_frontend_ipport() /usr/local/pkg/haproxy.inc:1882
      [13-Apr-2016 08:11:41 Etc/UTC] PHP  4. haproxy_interface_ip() /usr/local/pkg/haproxy.inc:1820
      [13-Apr-2016 08:11:41 Etc/UTC] PHP  5. haproxy_get_bindable_interfaces() /usr/local/pkg/haproxy_utils.inc:108
      [13-Apr-2016 08:20:26 Etc/UTC] PHP Fatal error:  Cannot redeclare haproxy_portoralias_to_list() (previously declared in /usr/local/pkg/haproxy.inc:267) in /usr/local/pkg/haproxy/haproxy.inc on line 444
      [13-Apr-2016 08:20:26 Etc/UTC] PHP Stack trace:
      [13-Apr-2016 08:20:26 Etc/UTC] PHP  1. {main}() /etc/rc.filter_configure_sync:0
      [13-Apr-2016 08:20:26 Etc/UTC] PHP  2. filter_configure_sync() /etc/rc.filter_configure_sync:37
      [13-Apr-2016 08:20:26 Etc/UTC] PHP  3. filter_nat_rules_generate() /etc/inc/filter.inc:297
      [13-Apr-2016 08:20:26 Etc/UTC] PHP  4. discover_pkg_rules() /etc/inc/filter.inc:2373
      [13-Apr-2016 08:20:26 Etc/UTC] PHP  5. require_once() /etc/inc/filter.inc:4208

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

        haproxy-devel-1.7.d1_1 also fails in the same way.

        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
          • P Offline
            PayableOnDeath
            last edited by

            Does that work if you have already upgraded?

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

              You can safely remove all haproxy*.inc and haproxy*.php files and then reinstall the package, that should get rid of the haproxy issues.

              rm `find / -name "haproxy*.inc" -print`
              rm `find / -name "haproxy*.php" -print`
              
              1 Reply Last reply Reply Quote 0
              • jimpJ Offline
                jimp Rebel Alliance Developer Netgate
                last edited by

                @PiBa:

                rm `find / -name "haproxy*.inc" -print`
                rm `find / -name "haproxy*.php" -print`
                

                That's a bit dangerous method…. try this:

                find / \( -name "haproxy*.inc" -o -name "haproxy*.php" \) -exec rm -rf {} \;
                

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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

                  @jimp:

                  That's a bit dangerous method…. try this:

                  find / \( -name "haproxy*.inc" -o -name "haproxy*.php" \) -exec rm -rf {} \;
                  

                  Thanks!  I came here having the same issue with haproxy and this resolved it.

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

                    That worked.

                    Thanks.

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