haproxy command socket does not exist
-
Upgraded to Pfsense 2.7 and unable to start HAProxy getting error:
haproxy command socket does not exist, haproxy not running?haproxy command socket does not exist, haproxy not running?
[WARNING] (14628) : config : config: Can't open global server state file '/tmp/haproxy_server_state': No such file or directoryHow do I fix?
Thanks
-
@cjbujold I recommend you review the system logs, in my case I found that by disabling the "Cookie protection" option in all the Backends, the HAProxy started without problems.
You can workaround the "Cookie protection" in "Services>HAProxy>Backend>Edit> Backend pass thru" setting this option in each Backend where you disable "Cookie protection": http-response replace-header Set-Cookie "^((?:(?!; [Ss]ecure\b).)*)$" "\1; secure" if { ssl_fc } -
I ended up with a similar response after the 2.7 upgrade, it seems odd that this would be changed by the OS upgrade rather than a package change though. Did something change withing the 2.7 version that reverted how the HAProxy config gets written?
In my case specifically it listed '[ALERT] 190/122149 (58497) : parsing [/var/etc/haproxy_test/haproxy.cfg:520] : The 'rspirep' directive is not supported anymore since HAProxy 2.1. Use 'http-response replace-header' instead.'