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/02/19 13:59:13 UTC

[GitHub] [apisix] gxthrj opened a new issue #3611: bug: Error will be reported when apisix starts , if which is not installed

gxthrj opened a new issue #3611:
URL: https://github.com/apache/apisix/issues/3611


   ### Issue description
   If which is not installed, the logic will be wrong and it does not match expectations.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`): master
   * OS (cmd: `uname -a`): centos
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):openresty/1.19.3.1
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.4.13
   
   ### Minimal test code / Steps to reproduce the issue
   After APISIX installed, use `apisix start`
   
   get error
   
   ![image](https://user-images.githubusercontent.com/4413028/108513442-952d5300-72fd-11eb-8763-6cad434ad00a.png)
   
   


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

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



[GitHub] [apisix] tokers commented on issue #3611: bug: Error will be reported when apisix starts , if which is not installed

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


   So we should detect whether the utility `which` exists in the system.
   
   ```shell
   OR_BIN=$(which openresty || exit 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.

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



[GitHub] [apisix] tokers edited a comment on issue #3611: bug: Error will be reported when apisix starts , if which is not installed

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


   So we should detect whether the utility `which` exists in the system.
   
   https://github.com/apache/apisix/blob/master/bin/apisix#L35
   
   ```shell
   OR_BIN=$(which openresty || exit 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.

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



[GitHub] [apisix] spacewander closed issue #3611: bug: Error will be reported when apisix starts , if which is not installed

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


   


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

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