apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: fail to fetch data from etcd

Open membphis opened this issue 6 years ago • 4 comments

APISIX version: 2.0 etcd version: 3.4.3

not enabled any auth for etcd instance.

error log:

config_etcd.lua:428: failed to fetch data from etcd: insufficient credentials code: 401, etcd key: /apisix/upstreams

but we can fetch data in this way:

etcdctl get --prefix apisix

membphis avatar Nov 03 '20 12:11 membphis

please make sure auth enable successfully, if so , cli command should be:

$ etcdctl get --prefix /apisix --user user:pwd

And make sure ETCD config for APISIX is correct,

nic-chen avatar Nov 03 '20 13:11 nic-chen

Check your APISIX configuration, whether the user and password of etcd is enabled.

idbeta avatar Nov 04 '20 07:11 idbeta

the user is using Mac OS, so I think we can close this PR at first.

membphis avatar Nov 04 '20 13:11 membphis

missing make init or apisix init step

membphis avatar Nov 06 '20 00:11 membphis