Skip to main content

Common HAProxy issues

Before anythingproceeding else,with makethe suretroubleshooting steps, ensure the services are workingfunctioning on the specified IP addresses and ports by accessing them directly.

1. Preliminary Checks
  • Access the servicesservice directly.directly For example, if it's(e.g., Apache or Nginx working on Port 80, you can access it directly in your browser80) by usingentering the server's IP wherein ityour isbrowser.
  • supposed to be working.

    1. 
  • If you cannot access the serviceservice, directly,troubleshoot somethingserver-side can be wrong on the serverissues where you have such service installed. If this is the case, access the server where this service is supposed to be working and troubleshoot accordingly.installed. Once you can access this service directly,resolved, and if you still haveHAProxy issues persist, continue with HAProxy, return to this article and follow the remainingfollowing steps.

2. IfHAProxy youConfiguration
can
    access the service(s) directly, re-
  • Double-check the configuration offor HAProxy. Confirm thecorrect IP Address(es)addresses, and/orports, Ports(s)and ofbackend theserver service(s)definitions.
  • are correctly configured.

    3. If you are sure
  • Test the configuration ofusing the "haproxy -c -f /path/to/haproxy.cfg" command to identify syntax errors or misconfigurations.
  • Ensure the HAProxy service is correct,running verifyand therestart it if needed.
3. Network and Firewall
  • Verify firewall rules ofon both servers.servers If you are not an expert on Firewalls, we suggestor temporarily disablingdisable the firewall on the related serversfirewalls to maketest sure.connectivity.
  • If this resolves your issue, you may want to contact us to assist in configuring your firewalls on each server.

    4. Finally, make sure
  • Ensure both servers can ping each other to confirm theproper network isconnectivity.
  • working
correctly
4. betweenLogs them.

Ifand youMonitoring
can
    connect
  • Check HAProxy logs for errors or warnings and analyze them to theidentify servicespossible directly,causes.
  • Monitor the firewallperformance is turned off, and both servers can ping each other; most likely, it is something related toof the HAProxy configuration.

    Thereinstance areusing some options (free and paid) if you still require assistance.

    If you have an unmanaged server and wouldtools like toHAProxy receive assistance for free, we needStats to receiveidentify thebottlenecks followingor informationresource from you:

    • screenshots of the network (e.g., ifconfig) related with each server,
    • the haproxy.cfg configuration file attached,
    • a screenshot showing the servers pinging each other (if possible),
    • screenshot of the service (e.g., service httpd status) which HAProxy tries to access is working on each server.issues.

    If ityou isrequire somethingfurther simpleassistance, please don't hesitate to resolve,contact weus. mayWe beoffer ableboth free and paid support options to pointhelp you in the right direction (it is possible that you missed something). If you cannot provide the information above, we will send you a quote to check and fix the issue. Or, if you prefer to have one of our experts check and fix the issue for you only this time, you can request a quote immediately.

    Alternatively, request a quote to subscribe for a fully managed service. The managed service can be assigned for a specific service or all related servers.

    If the information above helps solveresolve your technicalHAProxy issue, let us know. Feel free to provide feedback to improve this article.issues.