2.3 kills haproxy



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



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



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



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



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



  • 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





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



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



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



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



  • @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!



  • 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