I’ve followed the install from source instructions found at https://docs.konghq.com/install/source/?_ga=2.234524765.2119030850.1568223517-418784151.1568223517 and I get the following error when I try to use the command $ kong migrations bootstrap [-c /path/to/kong.conf]
Error:
/usr/local/share/lua/5.1/kong/pdk/service.lua:107: module ‘resty.kong.tls’ not found:No LuaRocks module found for resty.kong.tls
no field package.preload[‘resty.kong.tls’]
no file ‘./resty/kong/tls.lua’
no file ‘./resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.ljbc’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls/init.ljbc’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.ljbc’
no file ‘/usr/local/openresty/lualib/resty/kong/tls/init.ljbc’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.lua’
no file ‘/usr/local/openresty/lualib/resty/kong/tls/init.lua’
no file ‘/home/jkarr/.luarocks/share/lua/5.1/resty/kong/tls.lua’
no file ‘/home/jkarr/.luarocks/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘/usr/local/share/lua/5.1/resty/kong/tls.lua’
no file ‘/usr/local/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘./resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/lua/5.1/resty/kong/tls.lua’
no file ‘/usr/local/openresty/luajit/share/lua/5.1/resty/kong/tls/init.lua’
no file ‘/usr/local/openresty/site/lualib/resty/kong/tls.so’
no file ‘/usr/local/openresty/lualib/resty/kong/tls.so’
no file ‘/home/jkarr/.luarocks/lib/lua/5.1/resty/kong/tls.so’
no file ‘/usr/local/lib/lua/5.1/resty/kong/tls.so’
no file ‘./resty/kong/tls.so’
no file ‘/usr/local/openresty/luajit/lib/lua/5.1/resty/kong/tls.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
no file ‘/usr/local/openresty/site/lualib/resty.so’
no file ‘/usr/local/openresty/lualib/resty.so’
no file ‘/home/jkarr/.luarocks/lib/lua/5.1/resty.so’
no file ‘/usr/local/lib/lua/5.1/resty.so’
no file ‘./resty.so’
no file ‘/usr/local/openresty/luajit/lib/lua/5.1/resty.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
I’ve seen where some others have had this issue and I am unable to follow what they are trying to see if it works. I have attempted to use the openresty-build-tools with the following command
./kong-ngx-build -p build \
--openresty 1.15.8.1 \
--openssl 1.1.1c \
--luarocks 3.1.3 \
--pcre 8.43
and it still doesn’t work. I am just trying to make a fresh kong install I am not upgrading from another version of kong. Can someone please tell me what I’m doing wrong.