Kong on MacOS - Openssl error

Hi

I am new to Kong and trying to install it on MacOS.

I installed it fine but when I try to do the database migration as outlined here - Install Kong Gateway on macOS - v2.8.x | Kong Docs - I get this error :


kong migrations bootstrap -c ./kong.conf

2022/03/03 14:46:45 [warn] ulimit is currently set to “256”. For better performance set it to at least “4096” using “ulimit -n”

Error: module ‘openssl.rand’ not found:

no field package.preload[‘openssl.rand’]

no file ‘./openssl/rand.lua’

no file ‘./openssl/rand/init.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand/init.lua’

no file ‘./openssl/rand.lua’

no file ‘./openssl/rand/init.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand.lua’

no file ‘/opt/homebrew/share/lua/5.1/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand/init.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand/init.ljbc’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand/init.lua’

no file ‘./openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/luajit-2.1.0-beta3/openssl/rand.lua’

no file ‘/usr/local/share/lua/5.1/openssl/rand.lua’

no file ‘/usr/local/share/lua/5.1/openssl/rand/init.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/lua/5.1/openssl/rand.lua’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/share/lua/5.1/openssl/rand/init.lua’

no file ‘/opt/homebrew/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl/rand.so’

no file ‘./openssl/rand.so’

no file ‘/usr/local/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/lib/lua/5.1/openssl/rand.so’

no file ‘/usr/local/lib/lua/5.1/loadall.so’

no file ‘/opt/homebrew/lib/lua/5.1/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/site/lualib/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/lualib/openssl.so’

no file ‘./openssl.so’

no file ‘/usr/local/lib/lua/5.1/openssl.so’

no file ‘/usr/local/Cellar/openresty@1.19.3.2/1.19.3.2/openresty/luajit/lib/lua/5.1/openssl.so’

no file ‘/usr/local/lib/lua/5.1/loadall.so’

I can’t seem to figure out what this error is or how to resolve it. openssl is installed so unsure of how bes to troubleshoot. Any suggestions greatly appreciated.

Did you manage to fix this issue?