Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
1  
Can you please paste here your /etc/haproxy/haproxy.cfg file. –  GeekRide Dec 8 '12 at 5:48
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.