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/16 08:02:48 UTC

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

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