Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HAproxy in a failover setup - Secondary firewall dashboard widget can't connect

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nikolaii
      last edited by

      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

      Nicolas

      1 Reply Last reply Reply Quote 0
      • P
        PiBa
        last edited by

        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..

        1 Reply Last reply Reply Quote 0
        • N
          nikolaii
          last edited by

          All righty, thank you for the explanation :)

          Nicolas

          Nicolas

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.