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 2022/02/21 09:37:40 UTC

[GitHub] [apisix] Belyenochi opened a new issue #6398: [Run Test Error]

Belyenochi opened a new issue #6398:
URL: https://github.com/apache/apisix/issues/6398


   ### Issue description
   
   My test step
   1. cd apisix
   2. sudo PERL5LIB=.:$PERL5LIB TEST_NGINX_BINARY=/usr/local/bin/openresty prove -I/Users/jasonzhu/third-dep/test-nginx/lib -r t 
   ```
   t/admin/api.t ................................... nginx: [emerg] getgrnam("root") failed in /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf:364
   nginx: [emerg] getgrnam("root") failed in /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf:364
   nginx: [emerg] getgrnam("root") failed in /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf:364
   nginx: [emerg] getgrnam("root") failed in /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf:364
   nginx: [emerg] getgrnam("root") failed in /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf:364
   
   ```
   ```
   # nginx.conf
   user root;
   ```
   
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.12.0
   - OS (cmd: `uname -a`): Darwin jasonzhudeMacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):  openresty/1.19.9.1


-- 
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] spacewander edited a comment on issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

Posted by GitBox <gi...@apache.org>.
spacewander edited a comment on issue #6398:
URL: https://github.com/apache/apisix/issues/6398#issuecomment-1046705646


   The CI doesn't run test-nginx with `sudo`:
   https://github.com/apache/apisix/blob/9bdee14dc77e0076960f2b943822fe7507c5f1d2/ci/linux_openresty_common_runner.sh#L95


-- 
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] spacewander commented on issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

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


   We don't need to run test-nginx with `sudo`?


-- 
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] Belyenochi closed issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

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


   


-- 
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] spacewander commented on issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

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


   The CI does'nt run test-nginx with `sudo`:
   https://github.com/apache/apisix/blob/9bdee14dc77e0076960f2b943822fe7507c5f1d2/ci/linux_openresty_common_runner.sh#L95


-- 
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] Belyenochi commented on issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

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


   > The CI doesn't run test-nginx with `sudo`:
   > 
   > https://github.com/apache/apisix/blob/9bdee14dc77e0076960f2b943822fe7507c5f1d2/ci/linux_openresty_common_runner.sh#L95
   
   If remove sudo, error log follow
   ```
   t/admin/api.t ................................... cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/config.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/config.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/debug.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/debug.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/config-default.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/config-default.yaml: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix_ecc.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix_ecc.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/test2.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/test2.key: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix_ecc.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix_ecc.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/test2.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/test2.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert/apisix.crt: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot remove directory for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/cert: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf/nginx.conf: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot remove directory for /Users/jasonzhu/opensource/2022/apisix/t/servroot/conf: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot unlink file for /Users/jasonzhu/opensource/2022/apisix/t/servroot/html/index.html: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot restore permissions to 0100644 for /Users/jasonzhu/opensource/2022/apisix/t/servroot/html/index.html: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot remove directory for /Users/jasonzhu/opensource/2022/apisix/t/servroot/html: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 736.
   cannot remove directory for /Users/jasonzhu/opensource/2022/apisix/t/servroot/logs: Permission denied at /Users/jasonzhu/third-dep/test-nginx/lib/Test/Nginx/Util.pm line 753.
   Bailout called.  Further testing stopped:  Can't remove /Users/jasonzhu/opensource/2022/apisix/t/servroot (not empty?): Directory not empty
   FAILED--Further testing stopped: Can't remove /Users/jasonzhu/opensource/2022/apisix/t/servroot (not empty?): Directory not empty
   ```


-- 
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] Belyenochi edited a comment on issue #6398: [Run Test Error]nginx: [emerg] getgrnam("root") failed in

Posted by GitBox <gi...@apache.org>.
Belyenochi edited a comment on issue #6398:
URL: https://github.com/apache/apisix/issues/6398#issuecomment-1046758882


   Thanks, resolve it.


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