zhlu001 opened a new issue, #216: URL: https://github.com/apache/apisix-java-plugin-runner/issues/216
### Issue description Follow java based plugin guide to try | develop plugin. In debug mode is OK. but engaged failure during deployment "io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: No such file or directory" https://github.com/tzssangglass/java-plugin-runner-demo-1 ### Environment * your apisix-java-plugin-runner version centOS 7 1. Apisix 3.0 via rpm installation following APISIX site 2. APIsix-dashboard via rpm installation following APISIX offical site 3. etcd installation following APISIX offical site 4. use mvn clean package to get jar file - 1 5. use ./mvwn package to get jar files - 2 config.yaml as follow: deployment: role: traditional role_traditional: config_provider: etcd # etcd: # host: # - "http://192.168.65.134:2379" admin: admin_key: - name: admin key: edd1c9f034335f136f87ad84b625c8f1 role: admin ext-plugin: #path_for_test: /tmp/runner.sock # devlopment #cmd: ['java', '-jar', '-Xmx1g', '-Xms1g', '/usr/bin/apisix-plugin-1.0.0-SNAPSHOT.jar'] # production cmd: ['java', '-jar', '-Xmx1g', '-Xms1g', '/usr/local/apisix/ext_plugins/demo-0.0.1-SNAPSHOT.jar'] # production POM as Follow: ... <dependency> <groupId>org.apache.apisix</groupId> <artifactId>apisix-runner-starter</artifactId> <version>0.4.0</version> </dependency> ... Trace the error.log Got exception: **Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: No such file or directory** I've checked steps carefully. still got above issue. Any suggestions? Thanks in advance. 2022/11/25 02:46:42 [warn] 13720#13720: *177 [lua] init.lua:955: 2022-11-25 02:46:42.184 INFO 23260 --- [ main] c.e.d.DemoApplication : Starting DemoApplication v0.0.1-SNAPSHOT using Java 11.0.2 on k8s3.com with PID 23260 (/usr/local/apisix/ext_plugins/demo-0.0.1-SNAPSHOT.jar started by root in /opt/projects/java-plugin-runner-demo-1-main/target) , context: ngx.timer 2022/11/25 02:46:42 [warn] 13720#13720: *177 [lua] init.lua:955: 2022-11-25 02:46:42.188 INFO 23260 --- [ main] c.e.d.DemoApplication : No active profile set, falling back to 1 default profile: "default" , context: ngx.timer 2022/11/25 02:46:42 [warn] 13720#13720: *177 [lua] init.lua:955: 2022-11-25 02:46:42.976 INFO 23260 --- [ main] c.e.d.DemoApplication : Started DemoApplication in 1.471 seconds (JVM running for 2.779) , context: ngx.timer 2022/11/25 02:46:45 [warn] 13720#13720: *177 [lua] init.lua:955: 2022-11-25 02:46:45.249 INFO 23260 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. , context: ngx.timer 2022/11/25 02:46:45 [warn] 13720#13720: *177 [lua] init.lua:955: 2022-11-25 02:46:45.267 ERROR 23260 --- [ main] o.s.b.SpringApplication : Application run failed java.lang.IllegalStateException: Failed to execute CommandLineRunner at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:774) ~[spring-boot-2.7.1.jar!/:2.7.1] at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755) ~[spring-boot-2.7.1.jar!/:2.7.1] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.7.1.jar!/:2.7.1] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164) ~[spring-boot-2.7.1.jar!/:2.7.1] at com.example.demo.DemoApplication.main(DemoApplication.java:14) ~[classes!/:0.0.1-SNAPSHOT] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[demo-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[demo-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[demo-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[demo-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT] Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: No such file or directory -- 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]
