Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step-10 haproxy playbook error. #7

Closed
mxxcon opened this issue Mar 19, 2013 · 4 comments
Closed

Step-10 haproxy playbook error. #7

mxxcon opened this issue Mar 19, 2013 · 4 comments
Labels

Comments

@mxxcon
Copy link
Contributor

mxxcon commented Mar 19, 2013

I'm getting this error

NOTIFIED: [restart haproxy] *********************
failed: [172.30.113.88] => {"failed": true}
msg: [WARNING] 077/182648 (2411) : config : missing timeouts for proxy 'cluster'.
   | While not properly invalid, you will certainly encounter various problems
   | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[ALERT] 077/182648 (2411) : Starting proxy cluster: cannot bind socket

PLAY RECAP *********************
172.30.113.88                  : ok=4    changed=3    unreachable=0    failed=1

Seems like that template is incomplete..
Ubuntu 12.04.2 LTS, haproxy 1.4.18-0ubuntu1

@leucos
Copy link
Owner

leucos commented May 15, 2013

Weird, I can not reproduce :

...
PLAY [haproxy] **************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [host0.example.org]

TASK: [Installs haproxy load balancer] **************************************** 
changed: [host0.example.org]

TASK: [Pushes configuration] ************************************************** 
changed: [host0.example.org]

TASK: [Sets default starting flag to 1] *************************************** 
changed: [host0.example.org]

NOTIFIED: [restart haproxy] *************************************************** 
changed: [host0.example.org]

PLAY RECAP ******************************************************************** 
host0.example.org          : ok=5    changed=4    unreachable=0    failed=0   

And everything is fine on the host :

root@host0:~# haproxy -c -f /etc/haproxy/haproxy.cfg 
[WARNING] 134/063431 (2311) : config : missing timeouts for proxy 'cluster'.
   | While not properly invalid, you will certainly encounter various problems
   | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
Configuration file is valid
root@host0:~# haproxy -v
HA-Proxy version 1.4.18 2011/09/16
Copyright 2000-2011 Willy Tarreau <w@1wt.eu>

root@host0:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
root@host0:~# netstat -tunap | grep haproxy
tcp        0      0 192.168.33.10:80        0.0.0.0:*               LISTEN      2128/haproxy    
root@host0:~# 

Given the IP that your log shows, it seems that you changed the setup a bit. Are you sure there is not already a daemon listening on port 80 (e.g. apache, nginx, ...) ?

@mxxcon
Copy link
Contributor Author

mxxcon commented May 15, 2013

It's been so long since I filed this bug, I don't remember specifics of this issue. :(
It could have been some mistake on my end. I guess you can close it now and if it is a real issue I hope somebody else will reopen.

@leucos
Copy link
Owner

leucos commented May 15, 2013

Ok thanks. And sorry for overlooking your work this past month :(

@leucos leucos closed this as completed May 15, 2013
@leucos
Copy link
Owner

leucos commented Sep 20, 2013

Finally nailed it. Thanks !

@leucos leucos reopened this Sep 20, 2013
@leucos leucos closed this as completed in 0014a6f Sep 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants