apache / apisix-java-plugin-runner

APISIX Plugin Runner in Java
https://apisix.apache.org/
Apache License 2.0
128 stars 95 forks source link

apisix-java-plugin-runner running success,but unable to connect by /usr/local/apisix/conf/apisix-1.sock #225

Open forget99 opened 1 year ago

forget99 commented 1 year ago

hello,my apisix-java-plugin-runner is running success,java runner is listening on the socket file: /usr/local/apisix/conf/apisix-1.sock,but unable to connect,project filter logs is not print。

runing logs as follows: . _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.7.1)

, context: ngx.timer 2023/01/14 05:16:31 [warn] 47#47: 16 [lua] init.lua:955: 2023-01-14 05:16:31.099 INFO 57 --- [ main] c.e.d.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 11.0.17 on 2d1dc15a24af with PID 57 (/opt/apisix-runner-bin/demo-0.0.1-SNAPSHOT.jar started by root in /usr/local/apisix) 2023-01-14 05:16:31.113 INFO 57 --- [ main] c.e.d.DemoApplication : No active profile set, falling back to 1 default profile: "default" , context: ngx.timer 2023/01/14 05:16:32 [warn] 47#47: 16 [lua] init.lua:955: 2023-01-14 05:16:32.644 INFO 57 --- [ main] c.e.d.DemoApplication : Started DemoApplication in 2.817 seconds (JVM running for 5.27) , context: ngx.timer 2023/01/14 05:16:33 [warn] 47#47: *16 [lua] init.lua:955: 2023-01-14 05:16:33.173 WARN 57 --- [ main] o.a.a.p.r.s.ApplicationRunner : java runner is listening on the socket file: /usr/local/apisix/conf/apisix-1.sock , context: ngx.timer

nic-chen commented 1 year ago

Hi, please make sure APISIX and java plugin runner listen to the same file, and both have permissions for the file.