apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: when i run ip-restriction single test,always appears below errors

Open shoulda opened this issue 4 years ago • 10 comments

Issue description

when i run ip-restriction single test,always appears below errors。 [error] 14511#329621: *2310 [lua] config_etcd.lua:600: failed to fetch data from etcd: closed, etcd key: /apisix/upstreams, context: ngx.timer"

Environment

Request help without environment information will be ignored or closed.

  • apisix version (cmd: 2.8):
  • OS (cmd: MAC-OS):

shoulda avatar Aug 06 '21 10:08 shoulda

Hi @shoulda could you show your etcd's status and how you configure etcd in apisix. As the error suggests, etcd seems unhealthy

Yiyiyimu avatar Aug 07 '21 23:08 Yiyiyimu

Issue description

when i run ip-restriction single test,always appears below errors。 [error] 14511#329621: *2310 [lua] config_etcd.lua:600: failed to fetch data from etcd: closed, etcd key: /apisix/upstreams, context: ngx.timer"

Environment

Request help without environment information will be ignored or closed.

  • apisix version (cmd: 2.8):
  • OS (cmd: MAC-OS):

It's my understanding that this is a generic error and is not caused by this plugin, so we may focus on inspecting why this error occurres.

tokers avatar Aug 08 '21 11:08 tokers

Hi @shoulda could you show your etcd's status and how you configure etcd in apisix. As the error suggests, etcd seems unhealthy

I use the config-defaul.yaml file, dont hava special config

shoulda avatar Aug 09 '21 03:08 shoulda

Issue description

when i run ip-restriction single test,always appears below errors。 [error] 14511#329621: *2310 [lua] config_etcd.lua:600: failed to fetch data from etcd: closed, etcd key: /apisix/upstreams, context: ngx.timer"

Environment

Request help without environment information will be ignored or closed.

  • apisix version (cmd: 2.8):
  • OS (cmd: MAC-OS):

It's my understanding that this is a generic error and is not caused by this plugin, so we may focus on inspecting why this error occurres.

It's OK when i run the ip-restriction single test in apisix2.5

shoulda avatar Aug 09 '21 03:08 shoulda

ip-restriction single test

what it is?

tzssangglass avatar Aug 09 '21 15:08 tzssangglass

ip-restriction single test

what it is?

就是跑ip-restriction插件的单测😄

shoulda avatar Aug 10 '21 01:08 shoulda

On the master branch, I execute make deps nstall the latest dependencies.

Turn on etcd, and use prove -Itest-nginx/lib -r t/plugin/ip-restriction.t to run test, it works well.

tzssangglass avatar Aug 10 '21 02:08 tzssangglass

I was run apisix2.8, does you run the test on the apisix 2.8 works well?

shoulda avatar Aug 10 '21 07:08 shoulda

yes, my etcd version is 3.4.13

tzssangglass avatar Aug 11 '21 14:08 tzssangglass

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jul 28 '22 10:07 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Aug 11 '22 10:08 github-actions[bot]