gaoxingliang opened a new issue, #1871:
URL: https://github.com/apache/apisix-ingress-controller/issues/1871
### Current Behavior
when accessing, it shows "rout not found" even the route is configured
correctly and is enabled in the apisix dashboard.
and when I offline -> re-publish it without any configuration changes, it
says okay and I can access it correctly.
and this happened more than once.
### Expected Behavior
The route should be found/synced correctly.
### Error Logs
apisix-dahsboard:
```
2023-06-09T02:57:05.691Z filter/logging.go:45 /apisix/admin/routes
{"status": 200, "host": "127.0.0.1:64358", "query":
"label=&page=1&page_size=10", "requestId": "", "latency": 0, "remoteIP":
"10.233.70.0", "method": "GET", "errs": []}
2023-06-09T02:57:06.380Z filter/logging.go:45
/apisix/admin/routes/460735654804849511 {"status": 200, "host":
"127.0.0.1:64358", "query": "", "requestId": "", "latency": 0.000000004,
"remoteIP": "10.233.70.0", "method": "PATCH", "errs": []}
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 442861622252274531
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 443328484593369955
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 443434021418959715
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 446824770944631656
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 447496389862097774
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 449996302839710574
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 450005140573782894
2023-06-09T02:57:06.423Z WARN store/store.go:128 data not found
by key: 460735654804849511
2023-06-09T02:57:06.424Z filter/logging.go:45 /apisix/admin/routes
{"status": 200, "host": "127.0.0.1:64358", "query":
"label=&page=1&page_size=10", "requestId": "", "latency": 0, "remoteIP":
"10.233.70.0", "method": "GET", "errs": []}
```
apisix-ingress-controller:
```
2023-06-09T11:01:27+08:00 error apisix/ssl.go:114 failed to list
ssl: unexpected status code 404; error message: {"error_msg":"not found"}
2023-06-09T11:01:27+08:00 error apisix/cluster.go:222 failed to list
ssl in APISIX: unexpected status code 404; error message: {"error_msg":"not
found"}
2023-06-09T11:01:29+08:00 error apisix/ssl.go:114 failed to list
ssl: unexpected status code 404; error message: {"error_msg":"not found"}
2023-06-09T11:01:29+08:00 error apisix/cluster.go:222 failed to list
ssl in APISIX: unexpected status code 404; error message: {"error_msg":"not
found"}
2023-06-09T11:01:31+08:00 error apisix/ssl.go:114 failed to list
ssl: unexpected status code 404; error message: {"error_msg":"not found"}
2023-06-09T11:01:31+08:00 error apisix/cluster.go:222 failed to list
ssl in APISIX: unexpected status code 404; error message: {"error_msg":"not
found"}
2023-06-09T11:01:31+08:00 error apisix/cluster.go:172 failed to sync
cache {"cost_time": "8.038444368s", "cluster": "default"}
2023-06-09T11:01:31+08:00 error ingress/controller.go:440 failed
to wait the default cluster to be ready: unexpected status code 404; error
message: {"error_msg":"not found"}
2023-06-09T11:01:31+08:00 info apisix/stream_route.go:39
resource stream_routes is disabled
2023-06-09T11:01:31+08:00 info apisix/cluster.go:374 syncing schema
{"cluster": "default"}
2023-06-09T11:01:31+08:00 error apisix/plugin.go:46 failed to list
plugins' names: Get
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180/apisix/admin/plugins?all=true":
context canceled
2023-06-09T11:01:31+08:00 error apisix/cluster.go:394 failed to list
plugin names in APISIX: Get
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180/apisix/admin/plugins?all=true":
context canceled
2023-06-09T11:01:31+08:00 error apisix/cluster.go:357 failed to sync
schema: Get
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180/apisix/admin/plugins?all=true":
context canceled
2023-06-09T11:01:31+08:00 info apisix/cluster.go:162 syncing cache
{"cluster": "default"}
2023-06-09T11:01:31+08:00 error apisix/route.go:119 failed to list
routes: Get
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180/apisix/admin/routes":
context canceled
2023-06-09T11:01:31+08:00 error apisix/cluster.go:212 failed to list
routes in APISIX: Get
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180/apisix/admin/routes":
context canceled
2023-06-09T11:01:31+08:00 error apisix/cluster.go:172 failed to sync
cache {"cost_time": "39.663µs", "cluster": "default"}
2023-06-09T11:01:31+08:00 info ingress/controller.go:380
controller now is running as a candidate {"namespace": "apisix-gateway",
"pod": "apisix-ingress-controller-d795d89fd-mszgc"}
I0609 11:01:31.068992 1 leaderelection.go:248] attempting to acquire
leader lease apisix-gateway/ingress-apisix-leader...
2023-06-09T11:01:31+08:00 info ingress/controller.go:328
LeaderElection {"message": "apisix-ingress-controller-d795d89fd-mszgc became
leader", "event_type": "Normal"}
I0609 11:01:31.072376 1 leaderelection.go:258] successfully acquired
lease apisix-gateway/ingress-apisix-leader
2023-06-09T11:01:31+08:00 info ingress/controller.go:413
controller tries to leading ... {"namespace": "apisix-gateway", "pod":
"apisix-ingress-controller-d795d89fd-mszgc"}
2023-06-09T11:01:31+08:00 info apisix/stream_route.go:39
resource stream_routes is disabled
2023-06-09T11:01:31+08:00 warn apisix/cluster.go:334 waiting cluster
default to ready, it may takes a while
2023-06-09T11:01:31+08:00 info apisix/cluster.go:162 syncing cache
{"cluster": "default"}
2023-06-09T11:01:31+08:00 info apisix/cluster.go:374 syncing schema
{"cluster": "default"}
```
apisix:
```
2023/06/09 03:02:11 [warn] 51#51: *707075 [lua] init.lua:159: handler():
stream mode is disabled, can not add any stream routes, client: 10.233.82.45,
server: , request: "GET /apisix/admin/stream_routes HTTP/1.1", host:
"apisix-admin.apisix-gateway.svc.cluster.local:9180"
2023/06/09 03:02:11 [warn] 51#51: *707075 [lua] init.lua:159: handler():
stream mode is disabled, can not add any stream routes, client: 10.233.82.45,
server: , request: "GET /apisix/admin/stream_routes HTTP/1.1", host:
"apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:09 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/routes
HTTP/1.1" 200 6975 0.002 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:09 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/upstreams
HTTP/1.1" 200 33 0.002 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:09 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/ssl
HTTP/1.1" 404 37 0.000 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:11 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/routes
HTTP/1.1" 200 6975 0.002 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:11 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/upstreams
HTTP/1.1" 200 33 0.002 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:11 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET /apisix/admin/ssl
HTTP/1.1" 404 37 0.000 "-" "Go-http-client/1.1" - - -
"http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
10.233.82.45 - - [09/Jun/2023:03:02:11 +0000]
apisix-admin.apisix-gateway.svc.cluster.local:9180 "GET
/apisix/admin/stream_routes HTTP/1.1" 400 78 0.000 "-" "Go-http-client/1.1" - -
- "http://apisix-admin.apisix-gateway.svc.cluster.local:9180"
```
### Steps to Reproduce
not sure how to reproduce.
### Environment
- apisix: 3.1.0
- dashboard: 2.15.0
- etcd: 3.5.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]