Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kong initialize postgres error #698

Open
China-OU opened this issue Mar 21, 2024 · 4 comments
Open

kong initialize postgres error #698

China-OU opened this issue Mar 21, 2024 · 4 comments
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@China-OU
Copy link

China-OU commented Mar 21, 2024

Hi there:

I've tried to connect Kong to external DB Postgre.
The scenario:

Error: 
/usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:28: 
stack traceback:
        [C]: in function 'assert'
        /usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:28: in function 'load_conf'
        /usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:85: in function </usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:84>
        [C]: in function 'xpcall'
        /usr/local/bin/kong:99: in function 'file_gen'
        init_worker_by_lua(nginx.conf:117):48: in function <init_worker_by_lua(nginx.conf:117):46>
        [C]: in function 'xpcall'
        init_worker_by_lua(nginx.conf:117):55: in function <init_worker_by_lua(nginx.conf:117):53>

kong version 3.6.1
postgres 13.0

This is me running the docker command:
docker run --rm --network=kong-net -e "KONG_DATABASE=postgres" -e "KONG_PG_HOST=8.0.88.64" -e "KONG_PG_USER=kong" -e "KONG_PG_PASSWORD=kong12345" -e "KONG_CASSANDRA_CONTACT_POINTS=kong" kong:latest kong migrations bootstrap

Any helps, please!
Thank you.
Fran

@chronolaw
Copy link

Could you add option --v or --vv for kong starting? then we would get more useful log messages.

@pengxu38
Copy link

Hello, Have you solved this issue? I'm facing the same problem!

@gszr
Copy link
Member

gszr commented Oct 23, 2024

Hello, Have you solved this issue? I'm facing the same problem!

Please share the output of --vv as requested by Chrono. Thanks!

@gszr gszr added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Oct 23, 2024
@pengxu38
Copy link

Hello, Have you solved this issue? I'm facing the same problem!

Please share the output of --vv as requested by Chrono. Thanks!

192:config px$ docker run --rm --network=kong-net -e "KONG_DATABASE=postgres" -e "KONG_PG_USER=root" -e "KONG_PG_HOST=pgsql" -e "KONG_PG_PASSWORD=qwer1234" -e "KONG_PASSWORD=pengx" kong:latest kong migrations bootstrap --vv
Error:
/usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:28:
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:28: in function 'load_conf'
/usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:85: in function </usr/local/share/lua/5.1/kong/cmd/utils/inject_confs.lua:84>
[C]: in function 'xpcall'
/usr/local/bin/kong:99: in function 'file_gen'
init_worker_by_lua(nginx.conf:117):48: in function <init_worker_by_lua(nginx.conf:117):46>
[C]: in function 'xpcall'
init_worker_by_lua(nginx.conf:117):55: in function <init_worker_by_lua(nginx.conf:117):53>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

4 participants