cws1981 edited a comment on issue #78:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/78#issuecomment-981078931


   This is my Dockerfile:
   ```
   FROM apache/apisix:2.10.0-alpine
   
   RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" 
/etc/apk/repositories && apk add --no-cache openjdk11-jre-headless
   
   ADD apisix-java-plugin-runner.jar /usr/local/apisix-java-plugin-runner.jar
   ```
   I rebuild docker images add apisix-java-plugin-runner.jar, so the 
java-plugin will in the same container with apisix, but it still outputs errors 
in the error.log:
   ```
   2021/11/25 06:33:31 [crit] 44#44: *2280 connect() to 
unix:/usr/local/apisix/conf/apisix-1.sock failed (13: Permission denied)
   ```
   
   this is the processes in the container:
   ```
   PID   USER     TIME  COMMAND
       1 root      0:00 {openresty} nginx: master process 
/usr/local/openresty/bin/openresty -p /usr/local/apisix -g daemon off;
      44 nobody    0:00 {openresty} nginx: worker process
      45 nobody    0:00 {openresty} nginx: worker process
      46 nobody    0:00 {openresty} nginx: worker process
      47 nobody    0:00 {openresty} nginx: worker process
      48 nobody    0:00 {openresty} nginx: cache manager process
      49 nobody    0:00 {openresty} nginx: cache loader process
      50 root      0:00 {openresty} nginx: privileged agent process
      56 root      0:15 java -jar -Xmx4g -Xms4g 
/usr/local/apisix-runner-bin/apisix-java-plugin-runner.jar
   ```
   pid 44 user is nobody so not Permission


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to