haproxy broken after update to 2.8.0: nbproc is not supported any more...
-
To bad its also dead at my end after the update.
haproxy: startup error output!: [NOTICE] (74851) : haproxy version is 2.7.6-4dadaaa[NOTICE] (74851) : path to executable is /usr/local/sbin/haproxy[ALERT] (74851) : config : parsing [/var/etc/haproxy/haproxy.cfg:8] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available.[ALERT] (74851) : config : Error(s) found in configuration file : /var/etc/haproxy/haproxy.cfg[ALERT] (74851) : config : Fatal errors found in configuration.
Workarround
For those that do not want to SSH, you can do it from the pfSense GUI by going to Diagnostics->Edit File, make the change manually, then go to Diagnostics->Command Prompt and run: haproxy -f /var/etc/haproxy/haproxy.cfg@stephenw10 is the team aware of this bug? Do you want a redmine bug report?
-
@kiddsupreme look for this line in haproxy.inc
==> fwrite ($fd, "\tnbproc\t\t\t{$numprocs}\n");
Wrap it in the if statement and do a resave in the WebGUI for haproxy. -
@Cylosoft I also could not get it to work (which was why I was asking about how it was pasted into the file). As you suggested, I removed that information and everything popped up. Is there any negatives about running things this way? Thanks again for the help!
-
@thebear A new build is coming. Give it a few hours.
https://redmine.pfsense.org/issues/14674
-
@michmoor great news, thanks for confirming there is already a bug report.
-
@kiddsupreme Most people are running the defaults for these settings anyway so I wouldn't worry too much about it. Netgate is pretty quick with the fixes on these so I'm sure an updated version is coming soon anyway.
-
Looks like 0.63_1 is out and it fixes this.
-
I can confirm the new package 0.63_1 fixes this issue. After updating the package, you may have to go HAProxy->Settings, click save so it writes a new config and then restart the service to clear the message saying changes were made, etc. in pfSense. Thank you devs for the quick fix!
-
@davidi said in haproxy broken after update to 2.8.0: nbproc is not supported any more...:
I can confirm the new package 0.63_1 fixes this issue. After updating the package, you may have to go HAProxy->Settings, click save so it writes a new config and then restart the service to clear the message saying changes were made, etc. in pfSense. Thank you devs for the quick fix!
Yep. I can confirm this as well. I've switched back to non-dev version and saved the changes. It's working fine now.
-
@michmoor: Update to 0.63_1 went through without problems, error has been eliminated.
Many thanks for the quick help!