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/09/13 06:28:00 UTC

[GitHub] [apisix] matthew188 opened a new issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

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

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



[GitHub] [apisix] spacewander edited a comment on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander edited a comment on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917999822


   Can you confirm the process in the container has the right to access the sock file created by Go runner?
   Does it work if you put the Go runner inside the container?


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



[GitHub] [apisix] matthew188 removed a comment on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
matthew188 removed a comment on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917952081


    容器里面确实有报错,2021/09/13 08:15:39 [error] 45#45: *4332 connect() to unix:/tmp/runner.sock failed (111: Connection refused), client: 172.23.0.1, server: _, request: "GET /get HTTP/1.1", host: "127.0.0.1:9080"


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



[GitHub] [apisix] matthew188 commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
matthew188 commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-918912657


   > Can you confirm the process in the container has the right to access the sock file created by Go runner?
   > Does it work if you put the Go runner inside the container?
   
   > Check the running status of the runner by executing the `ps` command in the container?
   
   ![image](https://user-images.githubusercontent.com/14805513/133219796-e0dd7029-f578-47c9-8f25-9084cfb2f7d7.png)
   
   


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



[GitHub] [apisix] spacewander closed issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #5049:
URL: https://github.com/apache/apisix/issues/5049


   


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



[GitHub] [apisix] spacewander commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-940028997


   Closed as lack of response. Feel free to reopen it if need.


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



[GitHub] [apisix] spacewander commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-985351227


   @GhangZh 
   Could you open a new issue? Thanks!


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



[GitHub] [apisix] spacewander commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-918965032


   BTW, what's your version of Go runner?


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



[GitHub] [apisix] matthew188 commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
matthew188 commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917953433


   > any logs about this in `error.log`?
   
   容器里面确实有报错,2021/09/13 08:15:39 [error] 45#45: *4332 connect() to unix:/tmp/runner.sock failed (111: Connection refused), client: 172.23.0.1, server: _, request: "GET /get HTTP/1.1", host: "127.0.0.1:9080"


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



[GitHub] [apisix] GhangZh commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
GhangZh commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-985268821


   I have the same problem 


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



[GitHub] [apisix] spacewander commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-918960549


   You can use `docker cp` to copy it into container


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



[GitHub] [apisix] spacewander commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917999822


   Can you confirm the process in the container has the right to access the sock file created by Go runner?


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



[GitHub] [apisix] tzssangglass commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917926349


   any logs about this in `error.log`?


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



[GitHub] [apisix] matthew188 commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
matthew188 commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-917952081


    容器里面确实有报错,2021/09/13 08:15:39 [error] 45#45: *4332 connect() to unix:/tmp/runner.sock failed (111: Connection refused), client: 172.23.0.1, server: _, request: "GET /get HTTP/1.1", host: "127.0.0.1:9080"


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



[GitHub] [apisix] matthew188 commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
matthew188 commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-918913568


   > Can you confirm the process in the container has the right to access the sock file created by Go runner?
   > Does it work if you put the Go runner inside the container?
   
   how to put the Go runner inside the container?


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



[GitHub] [apisix] shuaijinchao commented on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
shuaijinchao commented on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-918754081


   Check the running status of the runner by executing the `ps` command in the container?


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



[GitHub] [apisix] GhangZh edited a comment on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
GhangZh edited a comment on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-985268821


   I have the same problem 
   ![image](https://user-images.githubusercontent.com/92301646/144560426-10b9998d-d8d8-424d-8177-4ba3e7815780.png)
   ![image](https://user-images.githubusercontent.com/92301646/144560520-4c54b2bd-b102-4f97-b0fb-2fb0d4a1c397.png)
   ![image](https://user-images.githubusercontent.com/92301646/144560734-e1679bcd-0c8d-4636-9ec8-81777ced0b80.png)
   ![image](https://user-images.githubusercontent.com/92301646/144560832-6a39be12-7e63-43eb-bd0a-02b3a7d11517.png)
   
   
   


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



[GitHub] [apisix] GhangZh edited a comment on issue #5049: request help: 运行golang plugin的say插件之后,服务报错 503 Service Temporarily Unavailable

Posted by GitBox <gi...@apache.org>.
GhangZh edited a comment on issue #5049:
URL: https://github.com/apache/apisix/issues/5049#issuecomment-985268821






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