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

when use etcd-3.4 with https ,confd has ERROR client: response is invalid json. #826

Closed
gitbeyond opened this issue May 11, 2020 · 1 comment

Comments

@gitbeyond
Copy link

$ /data/apps/opt/confd/confd --version
confd 0.16.0 (Git SHA: 7217b0ca, Go Version: go1.10.2)
[user1@myserver confd]$ /data/apps/opt/confd/confd -config-file confd.toml 
...
 /data/apps/opt/confd/confd[56888]: ERROR client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint.
...

[user1@my-server confd]$ cat confd.toml 
backend = "etcd"
#client_cakeys = "/data/apps/config/etcd/ssl/etcd-root-ca-all.pem"
client_cakeys = "/data/apps/config/etcd/ssl/etcd-root-ca.pem"
client_cert = "/data/apps/config/etcd/ssl/etcd-client-ca.pem"
client_key = "/data/apps/config/etcd/ssl/etcd-client-ca-key.pem"
confdir = "/data/apps/config/confd"
log-level = "debug"
interval = 30
nodes = [
  "https://10.111.32.1:2379",
]
noop = false
scheme = "https"
watch = true

etcd info

# etcdctl endpoint health
https://10.111.32.1:2379 is healthy: successfully committed proposal: took = 18.186985ms
https://10.111.32.2:2379 is healthy: successfully committed proposal: took = 19.953428ms
https://10.111.32.3:2379 is healthy: successfully committed proposal: took = 20.095768ms
# etcdctl member list
90bd3178dd0a7942, started, etcd3, https://10.111.32.1:2380, https://172.16.27.6:2379, false
f674e4102d2cb7c2, started, etcd1, https://10.111.32.1:2380, https://172.16.27.4:2379, false
fb3d93d2bb979bb1, started, etcd2, https://10.111.32.1:2380, https://172.16.27.5:2379, false
@gitbeyond
Copy link
Author

After setting backend to etcdv3, it returns to normal

backend = "etcdv3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant