-
Notifications
You must be signed in to change notification settings - Fork 75
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
kongfig fails when triyng to apply changes from a file #163
Comments
What's the error logged in the Kong logs, eg. |
Kong logs inside the container: Kong container logs: |
it could be a postgres max_connections config issue? kong=# show max_connections max_connections100 kongfig apply command is sending several request to the datastore over the api of kong(in my case postgresql 9.6) That could explain the "FATAL: sorry, too many clients already" message |
I had the exact same problem yesterday.
We’re still using a pre 1.0 version of Kong and I believe they fixed a connection keep-alive issue after 1.0, possibly related: Kong/kong#3423.
My resolution was to set the limit to 1000.
That’s an unreasonable high number according to PG best practices but we only use PG for Kong and are in progress of upgrading to 1.0+… After which I hope to reduce that number again or switch to using Kong without a data store …
|
i tested kong migrations up for update the datastore and run a new worker with kong 0.14.1 but does not work either, kong guys mention that a improvement was made to kong for scripting request over the admin api but it doesn't work |
Changing the max_connections to 1000 throw me the following errors: $ docker logs 2d0b2b7ce625 -f --since 10s | grep err |
What's the difference between those two error logs? |
setup:
step first error:
steps second error:
next steps:
|
Version of kong: 0.13
step to reproduce:
1.- kong admin running on docker toolbox, IP 192.168.99.100:8001
2.- file dump in the local directory
3.- Executing kongfig apply --path file.yml --host 192.168.99.100:8001
Error:
POST http://192.168.99.100:8001/consumers
{ username: 'si_re_td' }
201 Created { created_at: 1583255363000,
username: 'si_re_td',
id: '7b5b6f71-0166-42b8-ba6a-ed714ec8d777' }
(node:9272) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: http://192.168.99.100:8001/consumers/31b12b2c-160f-419c-a561-0b1cf2e20b28/hmac-auth: 500 Internal Server Error
(node:9272) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:9272) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: http://192.168.99.100:8001/consumers/a6c1d1a6-2038-41ce-95dd-ee842bd49187/oauth2: 500 Internal Server Error
Error: http://192.168.99.100:8001/consumers/a6c1d1a6-2038-41ce-95dd-ee842bd49187/acls: 500 Internal Server Error
Error: http://192.168.99.100:8001/consumers/a6c1d1a6-2038-41ce-95dd-ee842bd49187/acls: 500 Internal Server Error
at C:\Users\dgonzalezc\AppData\Roaming\npm\node_modules\kongfig\lib\adminApi.js:139:25
at
at process._tickCallback (internal/process/next_tick.js:188:7)
Testing ErrorCall with Curl:
Request:
curl http://192.168.99.100:8001/consumers/a6c1d1a6-2038-41ce-95dd-ee842bd49187/acls
Response:
{"total":1,"data":[{"group":"mc_cl_groupwhite_cau-api","created_at":1582580072000,"id":"13b57875-5a08-4ad9-a20d-dad6991afbb7","consumer_id":"a6c1d1a6-2038-41ce-95dd-ee842bd49187"}]}
The text was updated successfully, but these errors were encountered: