Rdebu commented on issue #54:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/54#issuecomment-890283199


   > I think the java code and the apisix configuration are fine, this should 
be apisix not being able to access the java runner, you need to look at the 
apisix logs.
   > 
   > pls take a look at: 
https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/how-it-works.md#run
   > 
   > check that the below configuration is correct
   > 
   > ```
   > ext-plugin:
   >   cmd: ['java', '-jar', '-Xmx4g', '-Xms4g', 
'/path/to/apisix-runner-bin/apisix-java-plugin-runner.jar']
   > ```
   
   找到原因了,按照官网说的打开sock权限  但是继续报以下错误:
   2021/07/31 11:15:29 [error] 28453#28453: *10356096 [lua] init.lua:553: 
phase_func(): failed to receive RPC_HTTP_REQ_CALL: closed, client: 127.0.0.1, 
server: _, request: "GET /get HTTP/1.1", host: "127.0.0.1:9080"
   2021/07/31 11:15:29 [warn] 28453#28453: *10356096 [lua] plugin.lua:646: 
run_plugin(): ext-plugin-pre-req exits with http status code 503, client: 
127.0.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: [email protected]

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


Reply via email to