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

Lisbon etcd cluster is unavailable or misconfigured #51

Open
sudmed opened this issue Jan 27, 2024 · 1 comment
Open

Lisbon etcd cluster is unavailable or misconfigured #51

sudmed opened this issue Jan 27, 2024 · 1 comment

Comments

@sudmed
Copy link

sudmed commented Jan 27, 2024

Hello, dear @fduran
I've got a bug in "Lisbon" task. After generating new self signed certificate and restarting ETCD daemon, the error is etcd cluster is unavailable or misconfigured, but test script says "OK". See the output below.

root@i-08012af3bb4b932ca:~# etcdctl get foo
Error:  client: etcd cluster is unavailable or misconfigured; error #0: EOF
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused

error #0: EOF
error #1: dial tcp 127.0.0.1:4001: connect: connection refused

root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# curl -k https://localhost:2379/v2/keys/foo
{"action":"get","node":{"key":"/foo","value":"bar","modifiedIndex":4,"createdIndex":4}}
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# curl https://localhost:2379/v2/keys/foo
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# 
root@i-08012af3bb4b932ca:~# cd /home/admin/agent && ./check.sh
OK

root@i-08012af3bb4b932ca:/home/admin/agent# GODEBUG=x509ignoreCN=0 etcdctl get foo
Error:  client: etcd cluster is unavailable or misconfigured; error #0: EOF
; error #1: dial tcp 127.0.0.1:4001: connect: connection refused

error #0: EOF
error #1: dial tcp 127.0.0.1:4001: connect: connection refused

root@i-08012af3bb4b932ca:/home/admin/agent# GODEBUG=x509ignoreCN=0 ETCDCTL_ENDPOINT=https://localhost:2379 etcdctl get foo
bar
@fduran
Copy link
Owner

fduran commented Jan 31, 2024

thanks, I think this may be related to #6

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

2 participants