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/03/04 06:09:04 UTC
[GitHub] [apisix] apchee opened a new issue #3751: bug:
apchee opened a new issue #3751:
URL: https://github.com/apache/apisix/issues/3751
### Issue description
```
$ apisix start
/usr/local/openresty/luajit/bin/luajit /usr/local/apisix/apisix/cli/apisix.lua start
/usr/local/openresty/luajit/bin/luajit: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' n
no field package.preload['apisix.cli.env']
no file '/usr/local/apisix/deps/share/lua/5.1/apisix/cli/env.lua'
no file './apisix/cli/env.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/apisix/cli/env.lua'
no file '/usr/local/share/lua/5.1/apisix/cli/env.lua'
no file '/usr/local/share/lua/5.1/apisix/cli/env/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/apisix/cli/env.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/apisix/cli/env/init.lua'
no file '/usr/local/apisix/deps/lib64/lua/5.1/apisix/cli/env.so'
no file '/usr/local/apisix/deps/lib/lua/5.1/apisix/cli/env.so'
no file './apisix/cli/env.so'
no file '/usr/local/lib/lua/5.1/apisix/cli/env.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/apisix/cli/env.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/apisix/deps/lib64/lua/5.1/apisix.so'
no file '/usr/local/apisix/deps/lib/lua/5.1/apisix.so'
no file './apisix.so'
no file '/usr/local/lib/lua/5.1/apisix.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/apisix.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/local/apisix/apisix/cli/apisix.lua:31: in main chunk
[C]: at 0x00404d60
```
### Environment
* apisix version (cmd: `apisix version`):
* OS: CentOS 7, 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
* OpenResty / Nginx version: openresty/1.19.3.1
* etcd version: 3.4.13
* apisix-dashboard version, if have:
### Minimal test code / Steps to reproduce the issue
1. Install APISIX from source code
2. $ apisix start
### What's the actual result? (including assertion message & call stack if applicable)
Just checked the source, the line below is missing in the file apisix/cli/apisix.lua:
```package.path = "/usr/local/apisix/?.lua;" .. package.path
```
### What's the expected result?
----------------------------------------------------------------
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 #3751: bug: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' not found
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3751:
URL: https://github.com/apache/apisix/issues/3751
----------------------------------------------------------------
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 edited a comment on issue #3751: bug: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' not found
Posted by GitBox <gi...@apache.org>.
spacewander edited a comment on issue #3751:
URL: https://github.com/apache/apisix/issues/3751#issuecomment-790361515
If you install APISIX from source, run `./bin/apisix start` instead.
----------------------------------------------------------------
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 commented on issue #3751: bug: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' not found
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3751:
URL: https://github.com/apache/apisix/issues/3751#issuecomment-790367534
Please read the https://github.com/apache/apisix#configure-and-installation, "Source code compilation"
----------------------------------------------------------------
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] apchee commented on issue #3751: bug:
Posted by GitBox <gi...@apache.org>.
apchee commented on issue #3751:
URL: https://github.com/apache/apisix/issues/3751#issuecomment-790323835
```
package.path = "/usr/local/apisix/?.lua;" .. package.path
```
----------------------------------------------------------------
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 commented on issue #3751: bug: /usr/local/apisix/apisix/cli/apisix.lua:31: module 'apisix.cli.env' not found
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3751:
URL: https://github.com/apache/apisix/issues/3751#issuecomment-790361515
If you install APISIX from source, run `./bin/apisix start` instead. All our docs mention that `./bin/apisix start` instead of `apisix start`.
----------------------------------------------------------------
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