[GitHub] [apisix-java-plugin-runner] cws1981 commented on issue #61: bug: Can not connect java plugin with apache apisix container

2021-11-28 Thread GitBox


cws1981 commented on issue #61:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/61#issuecomment-981081360


   > Obviously this is a permissions issue with docker. I would recommend 
developing under linux.
   
   
   
   > Obviously this is a permissions issue with docker. I would recommend 
developing under linux.
   
   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 nobody0:00 {openresty} nginx: worker process
  45 nobody0:00 {openresty} nginx: worker process
  46 nobody0:00 {openresty} nginx: worker process
  47 nobody0:00 {openresty} nginx: worker process
  48 nobody0:00 {openresty} nginx: cache manager process
  49 nobody0: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 no 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




[GitHub] [apisix-java-plugin-runner] cws1981 commented on issue #61: bug: Can not connect java plugin with apache apisix container

2021-11-24 Thread GitBox


cws1981 commented on issue #61:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/61#issuecomment-978884628


   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,but when i 
running, it 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 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