-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
App won't start in engine unix when using node-postgres #2590
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
Comments
looks like your app (in your example repo at least) is establishing a single postgres connection & never closing it. you might want to try passing
or set a very short |
I've tried to close the client connection on sigterm (actually not only sigterm, also signint, exit and bunch of others), but it didn't help. It is not in the repo, but I tried something like But I'll try the pool, thanks for tip :-) |
Address issue mentioned in brianc/node-postgres#2590
Address issue mentioned in brianc/node-postgres#2590
closing unless I hear something else - @janliska hope you got everything worked out on your end! |
Hi guys,
I'm having issues starting application when using nginx unit.
Container starts but it ends in loop of
/usr/local/bin/docker-entrypoint.sh: Waiting for control socket to be removed...
and it never finishes.When I remove the postgres client all works well. I've tried to close the client connection on sigterm but with no luck.
Did anybody meet the same issue?
I've prepared simple demo app to reproduce the issue: https://github.com/janliska/pgsql-nginx-unit-issue
The text was updated successfully, but these errors were encountered: