tao12345666333 commented on issue #728:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/728#issuecomment-965890384


   > I modified the apisix token, but did not modify the ingress-controller 
token
   
   If apisix-ingress cannot pass the apisix certification, then the log under 
normal circumstances should look like the following
   
   ```
   2021-11-11T08:36:52+08:00       error   apisix/cluster.go:164   failed to 
sync cache    {"cost_time": "8.009174516s", "cluster": "default"}
   2021-11-11T08:36:52+08:00       error   ingress/controller.go:411       
failed to wait the default cluster to be ready: unexpected status code 401; 
error message: <html>
   <head><title>401 Authorization Required</title></head>
   <body>
   <center><h1>401 Authorization Required</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   
   2021-11-11T08:36:52+08:00       info    ingress/controller.go:352       
controller now is running as a candidate        {"namespace": "default", "pod": 
""}
   I1111 08:36:52.236975   45230 leaderelection.go:243] attempting to acquire 
leader lease default/ingress-apisix-leader...
   2021-11-11T08:36:52+08:00       info    apisix/cluster.go:344   syncing 
schema  {"cluster": "default"}
   2021-11-11T08:36:52+08:00       debug   apisix/plugin.go:40     try to list 
plugins' names in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/plugins"}
   2021-11-11T08:36:52+08:00       error   apisix/plugin.go:46     failed to 
list plugins' names: Get "http://127.0.0.1:9080/apisix/admin/plugins/list": 
context canceled
   2021-11-11T08:36:52+08:00       error   apisix/cluster.go:364   failed to 
list plugin names in APISIX: Get 
"http://127.0.0.1:9080/apisix/admin/plugins/list": context canceled
   2021-11-11T08:36:52+08:00       info    apisix/cluster.go:155   syncing 
cache   {"cluster": "default"}
   2021-11-11T08:36:52+08:00       debug   apisix/route.go:111     try to list 
routes in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/routes"}
   2021-11-11T08:36:52+08:00       warn    apisix/cluster.go:327   failed to 
sync schema: Get "http://127.0.0.1:9080/apisix/admin/plugins/list": context 
canceled
   2021-11-11T08:36:52+08:00       error   apisix/route.go:117     failed to 
list routes: Get "http://127.0.0.1:9080/apisix/admin/routes": context canceled
   2021-11-11T08:36:52+08:00       error   apisix/cluster.go:197   failed to 
list route in APISIX: Get "http://127.0.0.1:9080/apisix/admin/routes": context 
canceled
   2021-11-11T08:36:52+08:00       info    ingress/controller.go:305       
LeaderElection  {"message": " became leader", "event_type": "Normal"}
   I1111 08:36:52.239697   45230 leaderelection.go:253] successfully acquired 
lease default/ingress-apisix-leader
   2021-11-11T08:36:52+08:00       info    ingress/controller.go:385       
controller tries to leading ... {"namespace": "default", "pod": ""}
   2021-11-11T08:36:52+08:00       warn    apisix/cluster.go:304   waiting 
cluster default to ready, it may takes a while
   2021-11-11T08:36:54+08:00       debug   apisix/route.go:111     try to list 
routes in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/routes"}
   2021-11-11T08:36:54+08:00       error   apisix/route.go:117     failed to 
list routes: Get "http://127.0.0.1:9080/apisix/admin/routes": context canceled
   2021-11-11T08:36:54+08:00       error   apisix/cluster.go:197   failed to 
list route in APISIX: Get "http://127.0.0.1:9080/apisix/admin/routes": context 
canceled
   2021-11-11T08:36:56+08:00       debug   apisix/route.go:111     try to list 
routes in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/routes"}
   2021-11-11T08:36:56+08:00       error   apisix/route.go:117     failed to 
list routes: Get "http://127.0.0.1:9080/apisix/admin/routes": context canceled
   2021-11-11T08:36:56+08:00       error   apisix/cluster.go:197   failed to 
list route in APISIX: Get "http://127.0.0.1:9080/apisix/admin/routes": context 
canceled
   2021-11-11T08:36:58+08:00       debug   apisix/route.go:111     try to list 
routes in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/routes"}
   2021-11-11T08:36:58+08:00       error   apisix/route.go:117     failed to 
list routes: Get "http://127.0.0.1:9080/apisix/admin/routes": context canceled
   2021-11-11T08:36:58+08:00       error   apisix/cluster.go:197   failed to 
list route in APISIX: Get "http://127.0.0.1:9080/apisix/admin/routes": context 
canceled
   2021-11-11T08:37:00+08:00       debug   apisix/route.go:111     try to list 
routes in APISIX    {"cluster": "default", "url": 
"http://127.0.0.1:9080/apisix/admin/routes"}
   2021-11-11T08:37:00+08:00       error   apisix/route.go:117     failed to 
list routes: Get "http://127.0.0.1:9080/apisix/admin/routes": context canceled
   2021-11-11T08:37:00+08:00       error   apisix/cluster.go:197   failed to 
list route in APISIX: Get "http://127.0.0.1:9080/apisix/admin/routes": context 
canceled
   2021-11-11T08:37:00+08:00       error   apisix/cluster.go:164   failed to 
sync cache    {"cost_time": "8.004210921s", "cluster": "default"}
   2021-11-11T08:37:00+08:00       error   ingress/controller.go:411       
failed to wait the default cluster to be ready: Get 
"http://127.0.0.1:9080/apisix/admin/routes": context canceled
   ```
   
   I did not reproduce it, please provide more detailed steps.
   For use in a production environment, it is recommended to configure resource 
limits.


-- 
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]


Reply via email to