HaProxy will not connect to new server



  • Having a strange issue.  Using Haproxy for about a year with 7 backend servers and now trying to add an 8th backend server and once configured it will not start.  Not seeing any issue in the config but hopping somebody can point out the problem.

    The issue is with syncbox.accra.ca here the configuration.

    frontend httpWEBdomains
    bind 192.168.20.1:8080 name 192.168.20.1:8080 
    bind :::8080 name :::8080 
    mode http
    log global
    option http-keep-alive
    timeout client 30000
    acl syncbox_acl hdr(host) -i syncbox.accra.ca
    use_backend syncboxserver16_http_ipvANY  if  syncbox_acl
    default_backend WebServer14_http_ipvANY

    backend syncboxserver16_http_ipvANY
    mode http
    log global
    timeout connect 30000
    timeout server 30000
    retries 3
    option httpchk OPTIONS /
    server syncboxserver 192.168.20.16:80 check inter 1000  resolvers globalresolvers

    Thanks
    cjb




  • Check the stats page of haproxy, it might show a little more info in the LastChk column.
    Also try changing the healthcheck to GET and fill in the version together with a host header to send.

    HTTP/1.1\r\nHost:\ www.yourdomain.com
    

    https://github.com/PiBa-NL/pfsense-haproxy-package-doc/wiki/haproxy_troubleshooting



  • thanks, the troubleshoot web page helped

    Found issue and corrected.

    CJB