You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "allenwzj (via GitHub)" <gi...@apache.org> on 2024/05/21 12:42:43 UTC

[I] 504 Gateway Time-out [apisix]

allenwzj opened a new issue, #11271:
URL: https://github.com/apache/apisix/issues/11271

   ### Description
   
   ![image](https://github.com/apache/apisix/assets/3293145/3ba3cd45-bbac-42be-b0c1-00bb93879d25)
   
   apisix dashbord中上游配置如上图:采用的是k8s域名规则 demo.default.svc.cluster.local, 端口是demo service的端口。请求路由返回504 Gateway Time-out
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

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


Re: [I] 504 Gateway Time-out [apisix]

Posted by "allenwzj (via GitHub)" <gi...@apache.org>.
allenwzj commented on issue #11271:
URL: https://github.com/apache/apisix/issues/11271#issuecomment-2124213216

   > Please check apisix whether reach demo.default.svc.cluster.local ?
   
   请问下如何确认?我在apisix的日志中看到这样的日志信息:
   2024/05/22 08:41:38 [error] 49#49: *2066505 [lua] config_etcd.lua:193: watchdir err: has no healthy etcd endpoint available, context: ngx.timer
   2024/05/22 08:41:59 [error] 58#58: *2066935 upstream timed out (110: Connection timed out) while connecting to upstream, client: 10.10.7.15, server: _, request: "GET /demo/getConfigName HTTP/1.1", upstream: "http://172.16.254.208:9010/demo/getConfigName", host: "xxxxxxx"


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] 504 Gateway Time-out [apisix]

Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11271:
URL: https://github.com/apache/apisix/issues/11271#issuecomment-2123728617

   Please check  apisix whether reach demo.default.svc.cluster.local ?


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] 504 Gateway Time-out [apisix]

Posted by "allenwzj (via GitHub)" <gi...@apache.org>.
allenwzj commented on issue #11271:
URL: https://github.com/apache/apisix/issues/11271#issuecomment-2126177664

   > The log reveal pod apisix can not reach 172.16.254.208:9010 . So please check pod network whether normal , For example try `curl -I http://172.16.254.208:9010/demo/getConfigName` in a pod .
   
   我是通过helm安装的apisix,里面yum命令都没有,也没有curl工具。有其他镜像吗?


-- 
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: notifications-unsubscribe@apisix.apache.org

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


Re: [I] 504 Gateway Time-out [apisix]

Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11271:
URL: https://github.com/apache/apisix/issues/11271#issuecomment-2126075987

   The log reveal pod  apisix can not  reach  172.16.254.208:9010 .
   So please check pod network whether  normal , 
   For example  try  `curl -I http://172.16.254.208:9010/demo/getConfigName` in a 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


Re: [I] 504 Gateway Time-out [apisix]

Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11271:
URL: https://github.com/apache/apisix/issues/11271#issuecomment-2126263972

   centos-pod.yaml
   ```
   ---
   apiVersion: v1
   kind: Pod
   metadata:
     name: centos-pod
   spec:
     containers:
       - image: centos:7
         imagePullPolicy: IfNotPresent
         name: centos-container
         command: ["/bin/bash", "-ce", "tail -f /dev/null"]
   ```
   kubectl apply -f  centos-pod.yaml
   then enter pod `  kubectl exec -it centos-pod bash`
   


-- 
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: notifications-unsubscribe@apisix.apache.org

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