You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "coco961003 (via GitHub)" <gi...@apache.org> on 2023/09/14 12:35:17 UTC

[GitHub] [apisix] coco961003 commented on issue #10202: help request: how to solve the problem CONNECTION REFUSED, between APISIX and Vault

coco961003 commented on issue #10202:
URL: https://github.com/apache/apisix/issues/10202#issuecomment-1719368010

   > @coco961003 This looks like Apisix cannot reach Vault. You said the vault is on the VM but apisix is inside a container in the VM. Are you using host networking mode? Are you sure the apisix container can reach port 8200 on the VM?
   
   Well, I think it is in networking mode because I can use cURL to access a website, but it cannot reach port 8200.
   ```shell
   apisix@5bb46b874b48:/usr/local/apisix/deps/share/lua/5.1/resty$ curl --header "X-Vault-Token: $APPS_TOKEN"     --request GET     http://127.0.0.1:8200/v1/kv/apisix/consumer/jack
   curl: (7) Failed to connect to 127.0.0.1 port 8200: Connection refused
   apisix@5bb46b874b48:/usr/local/apisix/deps/share/lua/5.1/resty$ curl -X GET http://baidu.com
   <html>
   <meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
   </html>
   ```
   Could you give me some suggestions?


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