matthew188 opened a new issue #5049:
URL: https://github.com/apache/apisix/issues/5049


   ### Issue description
   
   我的docker-compose.yml是用的这个: 
https://github.com/apache/apisix-docker/blob/master/example/docker-compose.yml, 
其中apisix版本改成了2.9, image: apache/apisix:2.9-alpine
   
   然后执行: `APISIX_LISTEN_ADDRESS=unix:/tmp/runner.sock 
APISIX_CONF_EXPIRE_TIME=3600  ./go-runner run`
   
   apisix_conf/config.yaml 末尾增加了插件:
   ext-plugin:
     path_for_test: /tmp/runner.sock
   
   
   添加路由也显示成功:
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
     "uri": "/get",
     "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {"name":"say", "value":"{\"body\":\"hello\"}"}
         ]
       }
     },
     "upstream": {
           "type": "roundrobin",
           "nodes": {
               "httpbin.org:80": 1
           }
       }
   }
   '
   
![image](https://user-images.githubusercontent.com/14805513/133033897-9ae355e5-efc4-446b-a7ff-4ffa0ab2e0ef.png)
   
   
   然后请求新增的路由,报错503:  curl "http://127.0.0.1:9080/get"; :    503 Service 
Temporarily Unavailable
   
   
![image](https://user-images.githubusercontent.com/14805513/133033768-05825dfc-a153-4aac-9b07-c254190380e5.png)
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):  2.9-alpine
   - OS (cmd: `uname -a`):   Darwin hahaha.lan 19.6.0 Darwin Kernel Version 
19.6.0: Thu May  6 00:48:39 PDT 2021; root:xnu-6153.141.33~1/RELEASE_X86_64 
x86_64
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - luarocks version, if the issue is about installation (cmd: `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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to