You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/12/15 03:00:04 UTC

[GitHub] [apisix] sunyu-2020 opened a new issue #5814: bug: java plugin error permission denied

sunyu-2020 opened a new issue #5814:
URL: https://github.com/apache/apisix/issues/5814


   ### Issue description
   
   Use java to develop extension plug-ins,se docker as a container,when the network is abnormal or the container restarts,the sock file in the container reports an error:permission denied
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   
   
   ### Steps to reproduce
   
   Use java to develop extension plug-ins,se docker as a container,when the network is abnormal or the container restarts,the sock file in the container reports an error:permission denied
   
   ### Actual result
   
   The container restarts or the network is abnormal and no longer reports an error permission problem
   
   ### Error log
   
   2021/12/13 09:21:40 [error] 49#49: *1748952 [lua] init.lua:689: phase_func(): failed to connect to the unix socket unix:/usr/local/apisix/conf/apisix-46.sock: permission denied, 
   
   ### Expected result
   
   _No response_


-- 
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-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] leslie-tsang commented on issue #5814: bug: java plugin error permission denied

Posted by GitBox <gi...@apache.org>.
leslie-tsang commented on issue #5814:
URL: https://github.com/apache/apisix/issues/5814#issuecomment-1003258203


   > 
   
   @juzhiyuan Consider solved. Feel free to reopen it if need.


-- 
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-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] dyrnq commented on issue #5814: bug: java plugin error permission denied

Posted by GitBox <gi...@apache.org>.
dyrnq commented on issue #5814:
URL: https://github.com/apache/apisix/issues/5814#issuecomment-994254764


   open  user  configuration, such as `root` or other user with permission
   
   ```yaml
   apisix:
     nginx_config:                   # config for render the template to generate nginx.conf
       user: root                    # specifies the execution user of the worker process.
                                     # the "user" directive makes sense only if the master process runs with super-user privileges.
                                     # if you're not root user,the default is current user.
   ```


-- 
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-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5814: bug: java plugin error permission denied

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #5814:
URL: https://github.com/apache/apisix/issues/5814#issuecomment-996356616


   @sunyu-2020 If you verify this is complete, would you be willing to submit a PR to add documentation about this?


-- 
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-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] juzhiyuan closed issue #5814: bug: java plugin error permission denied

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #5814:
URL: https://github.com/apache/apisix/issues/5814


   


-- 
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-unsubscribe@apisix.apache.org

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