Bug #16618
closedForcing a service restart of HAProxy does not affect backend servers
100%
Description
Reopening https://redmine.pfsense.org/issues/16596 since the author mentioned it shows as a warning
1) Because the closing comment says incorrect information as this is not the case (pfsense 2.8.1) - restarting service nor stopping it and starting made a difference, also the message does not say I should do anything beyond applying changes

2) Even if it was the case, if restarting service did not do anything, would I need to restart the entire pfsense? That makes no sense! I have tried stopping the service and starting it for the Service status menu and that did not make any difference. I spent 2 hours on new years eve with this so thank you very much.
This is a pretty nasty bug which is in pfsense for years (see https://forum.netgate.com/topic/184401/haproxy-seems-to-forward-to-wrong-backend-port?_=1767279314113 ) - the solution with `load-server-state-from-file none` and stopping and starting the service was the only solution that worked for me. The way I figured it out was thanks to haproxy stats - hovering over the backend name showed the IP and old port.
Files
Updated by Danilo Zrenjanin 25 days ago
- File clipboard-202601101548-lqwzm.png clipboard-202601101548-lqwzm.png added
- Status changed from New to Confirmed
I was able to reproduce the behavior described here. In my case, after changing the backend port, the configuration (/var/etc/haproxy/haproxy.cfg) was updated, but the backend went down. The only way to bring it back up was to restart the entire firewall. A forced service restart did not help (Settings > Force Service Restart to apply changes immediately).
Updated by Marcos M 23 days ago
- Subject changed from HAProxy-Changing the port of an existing backend server, changes show in the GUI only but is not reloaded within haproxy itself to Forcing a serveice restart of HAProxy does not affect backend servers
- Status changed from Confirmed to Feedback
- Assignee set to Marcos M
- Priority changed from Very High to Normal
- % Done changed from 0 to 100
This should be fixed with e6c189dfd319f0a404b3462d519e8a6e0e64b685.
Updated by Danilo Zrenjanin 20 days ago
- Status changed from Feedback to Resolved
Tested against:
haproxy-devel net 0.66.6
It has been fixed. I am marking this case as resolved.