Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: always reports etcd /v3/watch connection timeout 900s after apisix startup #9578

Closed
DroidEye2ONGU opened this issue May 30, 2023 · 7 comments · Fixed by #10012
Closed
Labels
bug Something isn't working

Comments

@DroidEye2ONGU
Copy link

DroidEye2ONGU commented May 30, 2023

Current Behavior

There are two servers , one for single etcd and the other for apisix. When I started apisix, everything looks fine, but onec you get past 900s, the apisix log will keep saying this
[error] 41073#41073: *777193 upstream timed out (110: Connection timed out) while reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", upstream: "http://myetcdhost:2379/v3/watch", host: "127.0.0.1" server: , request: "POST /v3/watch HTTP/1.1", upstream: "http://myetcdhost:2379/v3/watch", host: "127.0.0.1"

When this error started, every apisix functions work fine, no matter proxy or update config through apisix-dashboard, and etcd can also receive requests. I can also send request from the apisix server to etcd server.

Expected Behavior

I hope this error won't appear

Error Logs

[error] 41073#41073: *777193 upstream timed out (110: Connection timed out) while reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", upstream: "http://myetcdhost:2379/v3/watch", host: "127.0.0.1" server: , request: "POST /v3/watch HTTP/1.1", upstream: "http://myetcdhost:2379/v3/watch", host: "127.0.0.1"

Steps to Reproduce

  1. deploy single etcd node on server.
  2. install apisix by apisix installation-guide using rpm. By the way, the server is online, it cannot touch internet.
  3. change some apisix config, mainly ext java-plugin, additional nginx config, and etcd address.
    etcd:
    host:
  4. start apisix using systemctl start apisix

Environment

  • APISIX version (run apisix version): 3.3.0
  • Operating system (run uname -a): Linux archive2 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.5.0 (apisix said it's 3.5.0 but it's actually 3.5.4 )
  • APISIX Dashboard version, if relevant: 3.0.1
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@shreemaan-abhishek
Copy link
Contributor

works fine for me.

@shreemaan-abhishek
Copy link
Contributor

are you running apisix on your laptop?

@DroidEye2ONGU
Copy link
Author

No.I have two environments running apisix. One of them running on kubernetes, and it works fine. The other is running on a project production server, installed by offline rpm. Although there are differences in deployment modes, every function is works fine, just output the error log, so it's weird.

@wklken
Copy link

wklken commented Jun 6, 2023

#9336

@lingsamuel lingsamuel added the bug Something isn't working label Jun 20, 2023
@lingsamuel lingsamuel moved this to 📋 Backlog in Apache APISIX backlog Jun 26, 2023
@shreemaan-abhishek
Copy link
Contributor

@DroidEye2ONGU, are you using gRPC for etcd connection?

@DroidEye2ONGU
Copy link
Author

@DroidEye2ONGU, are you using gRPC for etcd connection?

I have tried either disable rpc or enable, the error log always happended

@kingluo kingluo mentioned this issue Aug 28, 2023
5 tasks
@kingluo
Copy link
Contributor

kingluo commented Sep 3, 2023

The conf server is removed, so the etcd communication rolls back to what 2.x versions behave like, i.e. no matter CP or DP, connects to etcd directly. Closed by #10012

@kingluo kingluo closed this as completed Sep 3, 2023
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Apache APISIX backlog Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants