HAproxy in a failover setup - Secondary firewall dashboard widget can't connect
-
Hello,
I have a 2 pfsense failover setup with an HAProxy configured on each firewall.
The service itself is working, but the HAProxy dashboard widget on the secondary firewall says:
Warning: stream_socket_client(): unable to connect to unix:///tmp/haproxy.socket (Connection refused) in /usr/local/pkg/haproxy_socketinfo.inc on line 43
Is there something I've missed in the configuration, or is it because the HAProxy doesn't run on the secondary firewall because it is in a "backup" state?
Thank you.
Nicolas -
Correct (when monitoring a carp-ip), haproxy is not running on the second node, which means its not listening on the stats socket either.
I suppose the 'error' could be made a bit more 'user friendly', or checked that haproxy is running before trying to access the socket.. But that just never made it to my todo list..
-
All righty, thank you for the explanation :)
Nicolas