Skip to content

Failed to load the 'resty.core' module #130

@makorne

Description

@makorne
 git clone https://github.com/tarantool/nginx_upstream_module
 cd nginx_upstream_module
 docker build -t tarantool/tarantool-nginx .

 docker-compose build && docker-compose up
tarantool_1  | 2019-08-21 16:26:03.053 [11] main/107/checkpoint_daemon I> scheduled the next snapshot at Wed Aug 21 18:09:20 2019
tarantool_1  | 2019-08-21 16:26:03.054 [11] main/101/tarantool-entrypoint.lua I> tcp_server: remove dead UNIX socket: /var/run/tarantool/tarantool.sock
tarantool_1  | 2019-08-21 16:26:03.070 [11] main/112/console/unix/:/var/run/tarantool I> started
tarantool_1  | 2019-08-21 16:26:03.070 [11] main C> entering the event loop
nginx_1      | 2019/08/21 16:26:04 [notice] 10#10: Tarantool upstream module, version: 'v2.5-rc2' in /etc/nginx/nginx.conf:13
nginx_1      | 2019/08/21 16:26:04 [alert] 10#10: detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx_1      | nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx_1      | 2019/08/21 16:26:04 [alert] 10#10: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
nginx_1      | 	no field package.preload['resty.core']
nginx_1      | 	no file './resty/core.lua'
nginx_1      | 	no file '/usr/local/share/luajit-2.0.5/resty/core.lua'
nginx_1      | 	no file '/usr/local/share/lua/5.1/resty/core.lua'
nginx_1      | 	no file '/usr/local/share/lua/5.1/resty/core/init.lua'
nginx_1      | 	no file './resty/core.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/resty/core.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/loadall.so'
nginx_1      | 	no file './resty.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/resty.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/loadall.so') in /etc/nginx/nginx.conf:31
nginx_1      | nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
nginx_1      | 	no field package.preload['resty.core']
nginx_1      | 	no file './resty/core.lua'
nginx_1      | 	no file '/usr/local/share/luajit-2.0.5/resty/core.lua'
nginx_1      | 	no file '/usr/local/share/lua/5.1/resty/core.lua'
nginx_1      | 	no file '/usr/local/share/lua/5.1/resty/core/init.lua'
nginx_1      | 	no file './resty/core.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/resty/core.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/loadall.so'
nginx_1      | 	no file './resty.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/resty.so'
nginx_1      | 	no file '/usr/local/lib/lua/5.1/loadall.so') in /etc/nginx/nginx.conf:31
nginx_1      | /bin/sh: EOF: not found
nginx_upstream_module_nginx_1 exited with code 127

lua_load_resty_core off; Did not help.
How to build a working image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions