helm / chartmuseum

helm chart repository server
https://chartmuseum.com
Apache License 2.0
3.6k stars 400 forks source link

ETCD backend - empty output #301

Open DanielChern opened 4 years ago

DanielChern commented 4 years ago

I am using chartmuseum v0.11.0 (v0.10.0 got same issue) and etcd v2.0.9 When I am running :

chartmuseum --debug --port=8080 \
    --storage="etcd" \
    --storage-etcd-cafile="./cert/server.crt" \
    --storage-etcd-certfile="./cert/serverCrt.crt" \
    --storage-etcd-keyfile="./cert/serverKey.key" \
    --storage-etcd-prefix="/chartmuseum" \
    --storage-etcd-endpoint="http://localhost:2379"

The output is always empty , may be I am doing something wrong - but I have no exception or even some kind of logs.

spigell commented 4 years ago

Hi. Are you using etcd with tls? I think you should use https scheme, e.g. httpS://localhost:2379 then.

In my case on etcd endpoint were such logs if pass http scheme.

etcd[1082]: rejected connection from "10.0.2.2:34022" (error "tls: first record does not look like a TLS handshake", ServerName "")