HAProxy GUI error after upgrade to pfSense+ 23.01
-
Spoke too soon. I let the session time out, then logged back in.
The problem has returned. The Dashboard errors at the HAProxy widget which stops the page load which prevents the menu functioning. -
Here is the package I am using, seems to be working good for me
haproxy net 0.61_9 The Reliable, High Performance TCP/HTTP(S) Load Balancer.
This package implements the TCP, HTTP and HTTPS balancing features from haproxy.
Supports ACLs for smart backend switching.Package Dependencies:
haproxy22-2.2.25 -
@vincef I have issues with that version - using haproxy-devel: 0.62_12 has resolved it for me.
-
I am using two versions of pfSense, 2.6.0-RELEASE with haproxy 0.61_7 and 23.01-RELEASE with 0.61_9. The 2.6.0 version is working perfectly, but the 23.01 version is presenting a php error as described by others above. Has anyone had any success regarding the fix for 23.01 with 0.61_9?
-
@gustavohop
Unfortunately I can only confirm that I have the same problem as you.
Using pfSense+ 23.01 and any version of haproxy results in dashboard corruption (incomplete widgets and menus no longer work) and a logged error:PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /etc/inc/util.inc:2126
Switching between prod and dev haproxy packages does not resolve the issue.
-
adding my name to the list. (psf+ 2301 haproxy (non dev) package
removing it from the dashboard, reinstalling the package, add to dashboard -- did nothingI still get errors / crash reporter. over and over and over
Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT #0 plus-RELENG_23_01-n256037-6e914874a5e: Fri Feb 10 20:30:29 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/obj/amd64/VDZvZksF/var/jenkins/workspace/pfSense-Plus-snapshots-23_01-main/sources/FreeBSCrash report details:
PHP Errors:
PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /etc/inc/util.inc:2126
Stack trace:
#0 /usr/local/www/widgets/widgets/haproxy.widget.php(218): format_bytes('<NEVER>')
#1 {main}
thrown in /etc/inc/util.inc on line 2126 -
@mervincm try using haproxy-devel: 0.62_12
-
This post is deleted! -
@vincef does it update cleanly over the prod version?
-
@mervincm said in HAProxy GUI error after upgrade to pfSense+ 23.01:
@vincef does it update cleanly over the prod version?
I want to say I was biting my nails as I had a web site that I did not want to go down. I don't recall if I uninstalled then installed the dev package but I think I uninstalled and reinstalled. Just take a backup first, all ese fails revert. That was my plan when I did it.
Also save the config as you can always reinstall the older package.
-
@guyvdwerf said in HAProxy GUI error after upgrade to pfSense+ 23.01:
With reference to my last post (below), I'd like to summerise our findings from the topic so far, because entries are starting to repeat themselves.
And please excuse the length...Issue
Entries show that there is a dashboard problem in all available versions of HAProxy in PFSense, specifically:- pfSense+ 23.01
- package: haproxy-devel 0.62_12
- package: haproxy 0.61_9
i.e. all package versions of HAProxy available with this version of PFSense.
Problem
The problem is seen as:- a PHP error on the dashboard and in the log
- a non-functioning menu in the dashboard
I found https://redmine.pfsense.org/issues/14024 which logs the problem, but is currently unresolved (4 May 2023 @ 10:30 am CET).
Workarounds
- A workaround exists to use PFsense regardless of the HAProxy dashboard issue by navigating to any other PFSense menu URL directly.
This includes navigating to HAProxy itself using https://<host>/haproxy/haproxy_global.php.
Once away from the dashboard URL, the PHP error is no longer seen or logged, and the menu works again.
This workaround does NOT fix the dashboard problem if one navigates back to it e.g. https://<host>/index.php. - https://redmine.pfsense.org/issues/14024 includes a code change that apparently fixes the problem, but is not offically comfirmed or released as a patch or merged into a new release. I have not tried it, but your mileage may vary.
A workaround for HAProxy functionality is not required as that is not affected.
Notes
Upgrading/downgrading between HAProxy package versions is easily achieved by deleting the existing package and installing the other one using https://<host>/pkg_mgr_installed.php.Reconfiguring HAProxy is not required following an updgrade/downgrade because both versions as HAProxy can leave the configuration when uninstalled.
To end on a ray of hope, @da_Beast created this topic, but resolved their issue by installing haproxy-devel 0.62_12. I cannot reproduce this.
Hope this helps someone.
@gustavohop
Unfortunately I can only confirm that I have the same problem as you.
Using pfSense+ 23.01 and any version of haproxy results in dashboard corruption (incomplete widgets and menus no longer work) and a logged error:PHP Fatal error: Uncaught TypeError: Unsupported operand types: string / int in /etc/inc/util.inc:2126
Switching between prod and dev haproxy packages does not resolve the issue.
-
@guyvdwerf
great summary!BTW, I just did a backup, and installed haproxy-devel 0.62_12 on top of the regular package, and so far so good. I used to get a crash-detected bar to pop up simply by clicking on the pfsense + logo in the upper left corner. Now, I can poke around all I want and it seems fine.
-
Hello everyone,
When I change the package to haproxy-devel 0.62_12, the service doesn't start even after changing the "Maximum connections". I have tried using an excessively high value for access, but the error persists. I have also restarted and reinstalled the package, but it still doesn't work.Below is the error message:
[ALERT] (21437) : [/usr/local/sbin/haproxy.main()] FD limit (11718) too low for maxconn=10000/maxsock=20026. Please raise 'ulimit-n' to 20026 or more to avoid any trouble.
[ALERT] (36279) : [/usr/local/sbin/haproxy.main()] FD limit (11718) too low for maxconn=100000/maxsock=200026. Please raise 'ulimit-n' to 200026 or more to avoid any trouble.I apologize to everyone as this problem is a bit off-topic for the forum, but if anyone has solved it before, could you please help me?
Thank you in advance.
-
@mervincm sounds unusual but interesting.
Regardless of backup for safety's sake, do I understand you have haproxy 0.61_9 installed, then installed haproxy-devel 0.62_12 as well... so both packages are now installed?If so, does anyone else have this configuration?
-
@gustavohop, to get more traction/interest please create a new topic.
I also suggest including "ulimit-n" in the title as that's possibly the cause according to your error.
Lastly, it would help us to have your system configuration and the current "ulimit n" value. Execute "ulimit -n" from the cli for that value.
ulimits are file system settings, so increasing your "max connections" is only making things worse. -
@guyvdwerf No, I installed haproxy-devel net 0.62_12 over top of the lower version and it seems to have perfectly retained all the existing config and eliminated the crash issue.
-
Happy to confirm the error has been resolved by upgrading to pfSense+ 23.05.
That release includes the upgraded package haproxy-devel 0.62_13 (was haproxy-devel 0.62_12).Hope this helps someone.