Skip to content

bug: route 404 after upgrade to 3.2.2 #9951

Description

@wklken

Current Behavior

register route and service into etcd, the changes not been watched and got 404

Expected Behavior

apisix watch the changes in time, the url should not be 404

Error Logs

I have create route/service 4 times, delete the instance and redo
only 1 time got an error log. another 3 times got no error log(still 404)

2023/08/02 08:28:44 [error] 1051#1051: *44434 upstream timed out (110: Connection timed out) while reading upstream, client: unix:, server: , request: "POST /v3/watch HTTP/1.1", upstream: "http://10.1.1.1:2379/v3/watch", host: "127.0.0.1"

apisix reload

2023/08/02 08:49:43 [warn] 38#38: *19 [lua] config_etcd.lua:168: main etcd watcher started, revision=437733, context: ngx.timer
2023/08/02 08:49:43 [warn] 41#41: *36 [lua] config_etcd.lua:168: main etcd watcher started, revision=437733, context: ngx.timer

....
# do reload

2023/08/02 09:05:05 [notice] 770#770: signal process started
2023/08/02 09:05:05 [emerg] 773#773: bind() to 0.0.0.0:6008 failed (98: Address already in use)
2023/08/02 09:05:05 [warn] 771#771: *24136 [lua] config_etcd.lua:168: main etcd watcher started, revision=437755, context: ngx.timer

Steps to Reproduce

  1. upgrade apisix from 3.2.1 to 3.2.2
  2. register the service and route
  3. apisix-dashboard can see the route and service
  4. apisix admin api can fetch the route and service
  5. call the url, 404
  6. do apisix reload, call the url, 200;
  7. downgrade to apisix 3.2.1, do 2-5, call the url, 200;

got an error log

maybe this feature cause the error: #9456

Environment

  • APISIX version (run apisix version): 3.2.2
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.21.4.1
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 2.5.4
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwait for updatewait for the author's response in this issue/PR

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions