adairll opened a new issue, #263:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/263

   ### Issue description
   hello,
   I deployed to Apisix according to the 
[https://github.com/tzssangglass/java-plugin-runner-demo-1](url) tutorial
   Error log keeps restarting the jar service
   Could you please help me see what caused it
   
   apisix   config.yaml:
   `deployment:
     role: traditional
     role_traditional:
       config_provider: etcd
     admin:
       admin_key:
         - name: admin
           key: edd1c9f034335f136f87ad84b625c8f1  # using fixed API token has 
security risk, please update it when you deploy to production environment
           role: admin
   apisix:
     node_listen: 8000 # APISIX listening port
   
   ext-plugin:
     cmd: ['java', '-jar', '-Xmx1g', '-Xms1g', 
'/path/to/apisix-runner-bin/demo-0.0.1-SNAPSHOT.jar']`
   
   error.log
   `  .   ____          _            __ _ _
    /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
   ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
     '  |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot ::                (v2.7.1)
   
   , context: ngx.timer
   2023/08/23 14:55:02 [warn] 17365#17365: *17 [lua] init.lua:953: 2023-08-23 
14:55:02.117  INFO 17413 --- [           main] c.e.d.DemoApplication            
        : Starting DemoApplication v0.0.1-SNAPSHOT using Java 11.0.18 on 
ubuntu20-test with PID 17413 (/opt/apisix/plugin/demo-0.0.1-SNAPSHOT.jar 
started by root in /usr/local/apisix/logs)
   , context: ngx.timer
   2023/08/23 14:55:02 [warn] 17365#17365: *17 [lua] init.lua:953: 2023-08-23 
14:55:02.132  INFO 17413 --- [           main] c.e.d.DemoApplication            
        : No active profile set, falling back to 1 default profile: "default"
   , context: ngx.timer
   2023/08/23 14:55:03 [warn] 17365#17365: *17 [lua] init.lua:953: 2023-08-23 
14:55:03.026  INFO 17413 --- [           main] c.e.d.DemoApplication            
        : Started DemoApplication in 1.717 seconds (JVM running for 3.056)
   , context: ngx.timer
   2023/08/23 14:55:05 [warn] 17365#17365: *17 [lua] init.lua:953: 2023-08-23 
14:55:05.263  INFO 17413 --- [           main] 
ConditionEvaluationReportLoggingListener : 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   , context: ngx.timer
   2023/08/23 14:55:05 [warn] 17365#17365: *17 [lua] init.lua:953: 2023-08-23 
14:55:05.296 ERROR 17413 --- [           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`
   
   ### Environment
   
   * your apisix-java-plugin-runner version
   apisix version:3.4.1
   apisix-runner-starter:0.4.0


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