apisix-helm-chart icon indicating copy to clipboard operation
apisix-helm-chart copied to clipboard

failed to fetch data from etcd

Open ziyou434 opened this issue 5 years ago • 5 comments

2020/10/09 09:00:27 [error] 15#15: *8 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/upstreams, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *11 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/consumers, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *18 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/proto, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *10 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/proto, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *9 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/services, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *17 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/services, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *16 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/global_rules, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *5 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *15 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/ssl, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *7 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/global_rules, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *14 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *6 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/ssl, context: ngx.timer 2020/10/09 09:00:27 [error] 15#15: *20 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/consumers, context: ngx.timer 2020/10/09 09:00:27 [error] 16#16: *3 [lua] config_etcd.lua:351: failed to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/upstreams, context: ngx.timer 2020/10/09 09:00:32 [error] 15#15: *19 [lua] heartbeat.lua:117: failed to report heartbeat information: timeout, context: ngx.timer

I try to deploy apisix using this chart, I have set “etcd.host" in values.yaml.
But I got the error log. Where is the problem?

ziyou434 avatar Oct 09 '20 09:10 ziyou434

it seems that the APISIX instance misses the apisix init step

membphis avatar Oct 09 '20 09:10 membphis

那么是chart的问题还是我的问题呢,我应该如何改进他

ziyou434 avatar Oct 09 '20 09:10 ziyou434

@lilien1010 do you know this problem?

membphis avatar Oct 09 '20 13:10 membphis

@ziyou434 Hi, can you check whether your etcd host is reachable in your apisix instance? or you refer some configuration here :https://github.com/kubesphere/helm-charts/tree/master/src/test/apisix

lilien1010 avatar Oct 12 '20 07:10 lilien1010

@ziyou434 Hi, can you check whether your etcd host is reachable in your apisix instance? or you refer some configuration here :https://github.com/kubesphere/helm-charts/tree/master/src/test/apisix

I change the chart from etcd/bitmani to the Official chart called “etcd-operator”, then got the health log without error.

ziyou434 avatar Oct 12 '20 07:10 ziyou434