kong
kong copied to clipboard
bootstrap failure inside the container: migrations.lua:212: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused
Is there an existing issue for this?
- [X] I have searched the existing issues
Kong version ($ kong version
)
Kong Enterprise 3.7.1.2
Current Behavior
this issue I am seeing using local docker setup
kong migrations bootstrap --vv
Error:
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:212: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/cmd/migrations.lua:212: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:38: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:38>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:38: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:22>
(command line -e):7: in function 'inline_gen'
init_worker_by_lua(nginx.conf:122):44: in function <init_worker_by_lua(nginx.conf:122):43>
[C]: in function 'xpcall'
init_worker_by_lua(nginx.conf:122):52: in function <init_worker_by_lua(nginx.conf:122):50>
$
Expected Behavior
this should success the migration
Steps To Reproduce
just follow the main docker install doc https://docs.konghq.com/gateway/latest/install/docker/
Anything else?
nothing this is the issue