adetante / hadiscover

Automatic reload of HAproxy with configuration generated from etcd
59 stars 19 forks source link

Cannot register watcher for changes in etcd: invalid character 'C' looking for beginning of value #4

Open aatibudhi opened 9 years ago

aatibudhi commented 9 years ago

Hello, we are trying to configure docker and haproxy using hadiscover and used the same template you provided as example i pasted down

but while running the command sudo ./hadiscover --config /etc/haproxy.cfg.tpl --etcd http://10.193.137.116:8040 --ha /apps/opt/haproxy-1.5.8/haproxy --key services

we are getting error 2015/09/11 17:48:17 Start watching changes in etcd 2015/09/11 17:48:17 Cannot register watcher for changes in etcd: invalid character 'C' looking for beginning of value [root@sv2lxecxmsdi01 bin]# Cannot register watcher for changes in etcd: invalid character 'C' looking for beginning of value

is there any mistake we are doing ?

the template file is

global maxconn 4096

defaults log global mode http option httplog option dontlognull retries 3 redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000

frontend http-in bind *:8000 default_backend http

backend http {{range .}} server {{.Name}} {{.Ip}}:{{.Port}} maxconn 32 {{end}} In the ba

aatibudhi commented 9 years ago

can u please reply its really urgent for us