apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: 2020/10/11 11:29:46 [error] 24#24: *18483 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer

Open luoqingming110 opened this issue 6 years ago • 4 comments

Issue description

Environment

  • apisix version (cmd: apisix version):
  • OS: k8s

Minimal test code / Steps to reproduce the issue

1.2020/10/11 11:29:46 [error] 24#24: *18483 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer

What's the actual result? (including assertion message & call stack if applicable)

2020/10/11 11:29:17 [error] 21#21: *16162 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:46 [error] 24#24: *18483 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:46 [error] 28#28: *18493 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:46 [error] 20#20: *20766 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:46 [error] 25#25: *20772 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:46 [error] 22#22: *20773 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:47 [error] 18#18: *20774 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:47 [error] 19#19: *20776 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:47 [error] 21#21: *20762 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer 2020/10/11 11:29:47 [error] 23#23: *20769 [lua] config_etcd.lua:433: failed to fetch data from etcd: /apisix/routes is not a dir, etcd key: /apisix/routes, context: ngx.timer

What's the expected result?

run ok

luoqingming110 avatar Oct 11 '20 11:10 luoqingming110

Which version of etcd and apisix you are using?

spacewander avatar Oct 11 '20 11:10 spacewander

The master version of apisix only support etcd v3 protocol

moonming avatar Oct 11 '20 12:10 moonming

If you are using APISIX 1.5 ( installed with "wget http://www.apache.org/dist/apisix/1.5/apache-apisix-1.5-src.tar.gz" ), you should start etcd like this:

etcd -enable-v2 &

idbeta avatar Oct 13 '20 03:10 idbeta

Closed this issue as the author doesn't response anymore.

spacewander avatar Oct 16 '20 07:10 spacewander