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


   > 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']
   > ```
   
   日志文件打印以下:
   2021/07/31 10:28:42 [crit] 28450#28450: *10171284 connect() to 
unix:/tmp/runner. sock failed (13: Permission denied), client: 127.0.0.1, 
server: _, request: "GET /get HTTP/1.1", host: "127.0.0.1:9080" 
   2021/07/31 10:28:42 [error] 28450#28450: *10171284 [lua] init. lua:553: 
phase_func(): failed to connect to the unix socket unix:/tmp/runner. sock: 
permission denied, client: 127.0.0.1, server: _, request: "GET /get HTTP/1.1", 
host: "127.0.0.1:9080" 
   2021/07/31 10:28:42 [warn] 28450#28450: *10171284 [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


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