Editing HAProxy Backend Settings Hold Old Settings

I’ve waisted days trying to edit HAProxy backend settings not realizing editing was not actually changing the port even though it changed it in the GUI. I was trying to switch out a Raspberry Pi running UniFi Controller to a Cloud Key+ and had to switch the port from 8443 to 443 because Cloud Key used a different port. I finely caught the error by looking at States in pfSense and realized HAProxy was still trying to use 8443 even though 443 was holding in GUI settings. I had to delete the backend and frontend, save settings, then create them again for it to work.

I was scratching my head all night trying to figure out why it wasn’t working. This is the second time I ran into this issue. Last time I was trying to switch a host to a different VLAN and ended up giving up, restored from back up and left things how they were.

Has anyone else ran into this issue? Or is it always suppose to be deleted and recreated instead of just editing?

Did you copy a different backend to setup the new backend or did you build the backend from scratch?

When I realized the port wasn’t changing to what I set in the GUI, I created a new backend from scratch.

When I created the original backend I was trying to edit I might have copied another backend. It was so long ago I can’t remember. It’s been at least a year or two.