nerowangtc opened a new issue #1669:
URL: https://github.com/apache/incubator-apisix/issues/1669
### Issue description
when i use make start cmd after make init, logs/error.log shows error
message like this:
init_worker_by_lua error:
/root/work/code/incubator-apisix/apisix/init.lua:72: module
'resty.worker.events' not found:
no field package.preload['resty.worker.events']
no file
'/root/work/code/incubator-apisix//deps/share/lua/5.1/resty/worker/events.lua'
no file
'/root/work/code/incubator-apisix//deps/share/lua/5.1/resty/worker/events/init.lua'
no file '/root/work/code/incubator-apisix/resty/worker/events.lua'
no file
'/root/work/code/incubator-apisix/resty/worker/events/init.lua'
no file '/usr/local/openresty/site/lualib/resty/worker/events.ljbc'
no file
'/usr/local/openresty/site/lualib/resty/worker/events/init.ljbc'
no file '/usr/local/openresty/lualib/resty/worker/events.ljbc'
no file '/usr/local/openresty/lualib/resty/worker/events/init.ljbc'
no file '/usr/local/openresty/site/lualib/resty/worker/events.lua'
no file
'/usr/local/openresty/site/lualib/resty/worker/events/init.lua'
no file '/usr/local/openresty/lualib/resty/worker/events.lua'
no file '/usr/local/openresty/lualib/resty/worker/events/init.lua'
no file './resty/worker/events.lua'
no file
'/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/worker/events.lua'
no file '/usr/local/share/lua/5.1/resty/worker/events.lua'
no file '/usr/local/share/lua/5.1/resty/worker/events/init.lua'
no file
'/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events.lua'
no file
'/usr/local/openresty/luajit/share/lua/5.1/resty/worker/events/init.lua'
no file './resty/worker/events.lua'
no file '/usr/share/lua/5.1/resty/worker/events.lua'
no file '/usr/share/lua/5.1/resty/worker/events/init.lua'
no file '/usr/lib64/lua/5.1/resty/worker/events.lua'
no file '/usr/lib64/lua/5.1/resty/worker/events/init.lua'
no file
'/root/work/code/incubator-apisix//deps/lib64/lua/5.1/resty/worker/events.so'
no file
'/root/work/code/incubator-apisix//deps/lib/lua/5.1/resty/worker/events.so'
no file '/usr/local/openresty/site/lualib/resty/worker/events.so'
no file '/usr/local/openresty/lualib/resty/worker/events.so'
no file './resty/worker/events.so'
no file '/usr/local/lib/lua/5.1/resty/worker/events.so'
no file
'/usr/local/openresty/luajit/lib/lua/5.1/resty/worker/events.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty/worker/events.so'
no file '/usr/lib64/lua/5.1/resty/worker/events.so'
no file '/usr/lib64/lua/5.1/loadall.so'
no file
'/root/work/code/incubator-apisix//deps/lib64/lua/5.1/resty.so'
no file '/root/work/code/incubator-apisix//deps/lib/lua/5.1/resty.so'
no file '/usr/local/openresty/site/lualib/resty.so'
no file '/usr/local/openresty/lualib/resty.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/lib64/lua/5.1/resty.so'
no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/root/work/code/incubator-apisix/apisix/init.lua:72: in function
'http_init_worker'
init_worker_by_lua:2: in main chunk
2020/06/08 21:33:29 [error] 15459#0: *10 lua entry thread aborted: runtime
error: /root/work/code/incubator-apisix/apisix/init.lua:560: attempt to index
upvalue 'router' (a nil value)
stack traceback:
coroutine 0:
/root/work/code/incubator-apisix/apisix/init.lua: in function
'http_admin'
content_by_lua(nginx.conf:144):2: in main chunk, client: 127.0.0.1,
server: , request: "GET /apisix/admin/routes?api_key=abcdefghijklmnopqrstuvwxyz
HTTP/1.1", host: "127.0.0.1:9080"
I can't curl dashboard with 500 error
### Environment
* apisix version (cmd: `apisix version`):latest
* OS:centos
----------------------------------------------------------------
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:
[email protected]