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 2020/01/15 01:54:20 UTC

[GitHub] [incubator-apisix] yangyitl opened a new issue #1058: bug: apisixe start fail

yangyitl opened a new issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058
 
 
   ### Issue description
   apisixe start fail
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS: Mac OS
   
   ### Minimal test code / Steps to reproduce the issue
   1.sudo apisix start
   2.
   3.
   
   ### What's the actual result? (including assertion message & call stack if applicable)
   
   lua: ./apisix:77: module 'tinyyaml' not found:
   	no field package.preload['tinyyaml']
   	no file '/usr/local/Cellar/apache-apisix/bin/lua/tinyyaml.lua'
   	no file '/usr/local/Cellar/apache-apisix/bin/deps/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.3/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.3/tinyyaml/init.lua'
   	no file '/usr/local/lib/lua/5.3/tinyyaml.lua'
   	no file '/usr/local/lib/lua/5.3/tinyyaml/init.lua'
   	no file './tinyyaml.lua'
   	no file './tinyyaml/init.lua'
   	no file '/usr/local/Cellar/apache-apisix/bin/deps/lib64/lua/5.1/tinyyaml.so'
   	no file '/usr/local/lib/lua/5.3/tinyyaml.so'
   	no file '/usr/local/lib/lua/5.3/loadall.so'
   	no file './tinyyaml.so'
   stack traceback:
   	[C]: in function 'require'
   	./apisix:77: in main chunk
   	[C]: in ?
   
   
   ### 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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-574468254
 
 
   How did you install the APISIX? please provide more install details.

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575520992
 
 
   @cyxinda if you installed by yum, you can start or stop APISIX by command like this:
   
   ![image](https://user-images.githubusercontent.com/6814606/72594904-95615f00-3943-11ea-94ab-643380cd4539.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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] cyxinda edited a comment on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
cyxinda edited a comment on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575031071
 
 
   When I run "/usr/bin/apisix start ",the error log is:
   /usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua
   /usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:78: module 'tinyyaml' not found:
   	no field package.preload['tinyyaml']
   	no file '/usr/local/openresty/nginx/conf/lua/tinyyaml.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/apisix/lua/tinyyaml.lua'
   	no file './tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/lib64/lua/5.1/tinyyaml.so'
   	no file './tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/openresty/luajit/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
   	[C]: in function 'require'
   	/usr/bin/apisix:78: in main chunk
   	[C]: at 0x00404bb0
   
   my OS is centos7.5
   I changed the code
    `if script_path:sub(1, 17) == '/usr/local/apisix' or script_path:sub(1, 4) == '/bin' then` 
   to 
   `if script_path:sub(1, 17) == '/usr/bin/apisix' or script_path:sub(1, 4) == '/bin' then`
    in '/usr/bin/apisix'
   ,And it do work.

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis closed issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis closed issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058
 
 
   

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] cyxinda commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
cyxinda commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575604842
 
 
   @membphis OK,thank you .

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] cyxinda edited a comment on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
cyxinda edited a comment on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575031071
 
 
   When I run "/usr/bin/apisix start ",the error log is:
   /usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua
   /usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:78: module 'tinyyaml' not found:
   	no field package.preload['tinyyaml']
   	no file '/usr/local/openresty/nginx/conf/lua/tinyyaml.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/apisix/lua/tinyyaml.lua'
   	no file './tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/lib64/lua/5.1/tinyyaml.so'
   	no file './tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/openresty/luajit/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
   	[C]: in function 'require'
   	/usr/bin/apisix:78: in main chunk
   	[C]: at 0x00404bb0
   
   my OS is centos7.5
   I changed the code `if script_path:sub(1, 17) == '/usr/**local**/apisix' or script_path:sub(1, 4) == '/bin' then` to `if script_path:sub(1, 17) == '/usr/bin/apisix' or script_path:sub(1, 4) == '/bin' then` in '/usr/bin/apisix',And it do work.

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575402268
 
 
   @moonming please take a look

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575519649
 
 
   @yangyitl That is a bug for version 1.0 . We'll release a new version later.
   
   And I advise you to fetch branch v1.0 which has fixed this bug.
   
   `git clone -b v1.0 https://github.com/apache/incubator-apisix.git`

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] cyxinda commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
cyxinda commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575031071
 
 
   When I run "/usr/bin/apisix start ",the error log is:
   `/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua
   /usr/local/openresty/luajit/bin/luajit: /usr/bin/apisix:78: module 'tinyyaml' not found:
   	no field package.preload['tinyyaml']
   	no file '/usr/local/openresty/nginx/conf/lua/tinyyaml.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/apisix/lua/tinyyaml.lua'
   	no file './tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml.lua'
   	no file '/usr/local/openresty/luajit/share/lua/5.1/tinyyaml/init.lua'
   	no file '/usr/local/openresty/nginx/conf/deps/lib64/lua/5.1/tinyyaml.so'
   	no file './tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/openresty/luajit/lib/lua/5.1/tinyyaml.so'
   	no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
   	[C]: in function 'require'
   	/usr/bin/apisix:78: in main chunk
   	[C]: at 0x00404bb0`
   
   my OS is centos7.5
   I changed the code `if script_path:sub(1, 17) == '/usr/**local**/apisix' or script_path:sub(1, 4) == '/bin' then` to `if script_path:sub(1, 17) == '/usr/bin/apisix' or script_path:sub(1, 4) == '/bin' then` in '/usr/bin/apisix',And it do work.

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] membphis commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575093356
 
 
   How did you install the APISIX?

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] cyxinda commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
cyxinda commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575165435
 
 
   I downloaded apisix of the version1.0 to my local host.Then I runned `yum -y install apisix-1.0-0.el7.noarch.rpm ` ,finished the install.
   And that is all.

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


With regards,
Apache Git Services

[GitHub] [incubator-apisix] yangyitl commented on issue #1058: bug: apisixe start fail

Posted by GitBox <gi...@apache.org>.
yangyitl commented on issue #1058: bug: apisixe start fail
URL: https://github.com/apache/incubator-apisix/issues/1058#issuecomment-575503953
 
 
   > How did you install the APISIX? please provide more install details.
   
   ![image](https://user-images.githubusercontent.com/14830899/72591562-6941e000-393b-11ea-8734-3d4f8acb6490.png)
   I installed from source  AND make init success

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


With regards,
Apache Git Services