zhangchaoyanggit opened a new issue, #10865:
URL: https://github.com/apache/apisix/issues/10865
### Current Behavior
docker desktop 通过 docker-compose 启动apisix 并配置config.yaml
ext-plugin:
path_for_test: "/usr/local/apisix/x.sock" # without 'unix:' prefix
在docker-compose中挂在宿主机下的x.sock 本地idea启动加入环境变量APISIX_LISTEN_ADDRESS
赋予宿主机地址,插件正常启动.但是apisix无法找到这个文件,导致apisix执行路由的时候无法到我本地的插件代码.
### Expected Behavior
通过访问apisix路由地址,能走到我本地的插件代码中
### Error Logs
phase_func(): failed to connect to the unix socket
unix:/usr/local/apisix/x.sock: connection refused, client: 172.20.0.1, server:
_, request: "GET /order2/test HTTP/1.1", host: "localhost:9080"
### Steps to Reproduce
创建一个路由,并配置插件,然后访问这个路由,正常应该走入我本地的插件代码,但是现在连接失败,以上配置参考apisix官网的文档,在windows环境下按照windows的配置方式可以正常到我本地.
参考https://apache-apisix.netlify.app/zh/docs/apisix/next/external-plugin/
### Environment
- APISIX version 3.6
- mac os m1
- 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 3.0
- Plugin runner version, for issues related to plugin runners: java
1.8,使用的是0.4版本,自己降级jdk
--
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]