You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/07 03:07:30 UTC

[GitHub] [apisix-ingress-controller] zhangxiaohui123456 opened a new issue #246: request help: Client.Timeout exceeded while awaiting headers

zhangxiaohui123456 opened a new issue #246:
URL: https://github.com/apache/apisix-ingress-controller/issues/246


   ### Issue description
   when 
   ### Environment
   When apisixUpstream is configured, what is the reason for the error reported by the ingress-controller
   logs:
   2021-02-07T11:03:46+08:00       error   apisix/upstream.go:89   failed to list upstreams: Get http://apisix-admin:9180/apisix/admin/upstreams: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
   ERROR: logging before flag.Parse: E0207 11:03:46.725956       1 upstream.go:38] list upstreams in etcd failed, group: , err: Get http://apisix-admin:9180/apisix/admin/upstreams: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
   2021-02-07T11:03:46+08:00       error   state/builder.go:207    solver upstream failed, find upstream from APISIX failed, upstream: &{ID:<nil> FullName:0xc00041ef40 Group:0xc00041eeb0 ResourceVersion:0xc00041eec0 Name:0xc00041eed0 Type:0xc00041ef50 HashOn:0xc00041ef60 Key:0xc00041ef70 Nodes:[0xc00000fae0 0xc00000fb00] FromKind:0xc00041ef30}, err: list upstreams failed, err: Get http://apisix-admin:9180/apisix/admin/upstreams: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
   E0207 11:03:46.726001       1 apisix_upstream.go:113] error syncing 'default/web': list upstreams failed, err: Get http://apisix-admin:9180/apisix/admin/upstreams: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
   
   * your apisix-ingress-controller version (output of `apisix-ingress-controller version --long`);
   * your Kubernetes cluster version (output of `kubectl version`);
   * if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (`uname -a`).
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-ingress-controller] zhangxiaohui123456 commented on issue #246: request help: Client.Timeout exceeded while awaiting headers

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #246:
URL: https://github.com/apache/apisix-ingress-controller/issues/246#issuecomment-774629895


   > @zhangxiaohui123456 Could you try to log in to the apisix ingress controller container and connect to the apisix-admin service?
   
   I use curl http://127.0.0.1:9180/apisix/admin/upstreams in pod of apisix-ingress-controller 
   This is error info :
   <html>
   <head><title>401 Authorization Required</title></head>
   <body>
   <center><h1>401 Authorization Required</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   Is there a problem with my secret key? But I haven't changed the configuration


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-ingress-controller] zhangxiaohui123456 commented on issue #246: request help: Client.Timeout exceeded while awaiting headers

Posted by GitBox <gi...@apache.org>.
zhangxiaohui123456 commented on issue #246:
URL: https://github.com/apache/apisix-ingress-controller/issues/246#issuecomment-774632032


   > > @zhangxiaohui123456 Could you try to log in to the apisix ingress controller container and connect to the apisix-admin service?
   > 
   > I use curl http://127.0.0.1:9180/apisix/admin/upstreams in pod of apisix-ingress-controller
   > This is error info :
   > 
   > <title>401 Authorization Required</title>
   > # 401 Authorization Required
   > openresty Is there a problem with my secret key? But I haven't changed the configuration
   
   this is add info ----------------------------------------------
   I went into Apisix's POD and looked at the Admin Key , It is exactly the same as the ADMIN_KEY in config.yaml in apisix-ingress-controller pod


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-ingress-controller] tokers commented on issue #246: request help: Client.Timeout exceeded while awaiting headers

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #246:
URL: https://github.com/apache/apisix-ingress-controller/issues/246#issuecomment-774608818


   @zhangxiaohui123456 Could you try to log in to the apisix ingress controller container and connect to the apisix-admin service?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-ingress-controller] tokers commented on issue #246: request help: Client.Timeout exceeded while awaiting headers

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #246:
URL: https://github.com/apache/apisix-ingress-controller/issues/246#issuecomment-774663378


   > > @zhangxiaohui123456 Could you try to log in to the apisix ingress controller container and connect to the apisix-admin service?
   > 
   > I use curl http://127.0.0.1:9180/apisix/admin/upstreams in pod of apisix-ingress-controller
   > This is error info :
   > 
   > <title>401 Authorization Required</title>
   > # 401 Authorization Required
   > openresty Is there a problem with my secret key? But I haven't changed the configuration
   
   It's weird, the apisix isn't deployed with the apisix ingress controller in the same pod, so how did you access it from the `127.0.0.1` ...


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org