Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup HAProxy with MySQL failover with Ubuntu. I used a setup similar to this serverfault question, however I am getting the following error when starting haproxy:

[ALERT] 341/220001 (17405) : parsing [/etc/haproxy/haproxy.cfg:29] : unknown option 'mysql-check'.
[ALERT] 341/220001 (17405) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
[ALERT] 341/220001 (17405) : Fatal errors found in configuration.

I even tried installing the lastest version of HAProxy (1.4.22). Does anyone know how to fix this? I have Google'd the heck out of it and can't find any solution.

Thanks for your time!

share|improve this question
Can you please paste here your /etc/haproxy/haproxy.cfg file. – GeekRide Dec 8 '12 at 5:48
up vote 0 down vote accepted

OK, so it was available. I was just running the wrong version. Before I complied HAProxy I installed it from the repo which was at version 1.3. I stopped that versions daemon and started the 1.4 version and everything works! NOOB mistake.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.