Migrations ERROR: attempt to get length of local 'pem' (a nil value)

Hi,

I am new to Kong and I’m trying to install it on my Linux Ubuntu VM. I have installed postgres and I will be running Kong on top of it. During the installation/migrations, I get the error below. Not sure if this has been resolved already but does anyone know how to resolve it?

2022/08/15 14:02:39 [verbose] prefix in use: /usr/local/kong
2022/08/15 14:02:39 [verbose] preparing nginx prefix directory at /usr/local/kong
2022/08/15 14:02:39 [verbose] SSL enabled on
2022/08/15 14:02:39 [verbose] proxy SSL certificate found at /usr/local/kong/ssl/kong-default.crt
2022/08/15 14:02:39 [verbose] proxy SSL certificate found at /usr/local/kong/ssl/kong-default-ecdsa.crt
2022/08/15 14:02:39 [verbose] SSL enabled on
2022/08/15 14:02:39 [verbose] admin SSL certificate found at /usr/local/kong/ssl/admin-kong-default.crt
2022/08/15 14:02:39 [verbose] admin SSL certificate found at /usr/local/kong/ssl/admin-kong-default-ecdsa.crt
2022/08/15 14:02:39 [verbose] SSL enabled on
2022/08/15 14:02:39 [verbose] admin_gui SSL certificate found at /usr/local/kong/ssl/admin-gui-kong-default.crt
2022/08/15 14:02:39 [verbose] admin_gui SSL certificate found at /usr/local/kong/ssl/admin-gui-kong-default-ecdsa.crt
2022/08/15 14:02:39 [verbose] generating trusted certs combined file in
Error:
/usr/local/openresty/lualib/ngx/ssl.lua:378: attempt to get length of local ‘pem’ (a nil value)
stack traceback:
/usr/local/openresty/lualib/ngx/ssl.lua:378: in function ‘parse_pem_priv_key’
/usr/local/share/lua/5.1/pgmoon/init.lua:978: in function ‘__init’
/usr/local/share/lua/5.1/pgmoon/init.lua:995: in function ‘new’
…/share/lua/5.1/kong/db/strategies/postgres/connector.lua:951: in function ‘new’
/usr/local/share/lua/5.1/kong/db/strategies/init.lua:37: in function ‘new’
/usr/local/share/lua/5.1/kong/db/init.lua:93: in function ‘new’
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:226: in function ‘cmd_exec’
/usr/local/share/lua/5.1/kong/cmd/init.lua:97: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:97>
[C]: in function ‘xpcall’
/usr/local/share/lua/5.1/kong/cmd/init.lua:97: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:54>
/usr/local/bin/kong:9: in function ‘file_gen’
init_worker_by_lua:50: in function <init_worker_by_lua:48>
[C]: in function ‘xpcall’
init_worker_by_lua:57: in function <init_worker_by_lua:55>