-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cannot connect to 9.4 server once it is running #140
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
I've noticed that bringing the image itself up lets me connect as the
|
After much digging I discovered that the issue is that apt upgrades postgresql to the latest version and overrides the
|
Thanks for the digging, but for whatever reason that doesn't seem to have fixed our issue. |
Connect to the tuning container check to see what the postgresql.conf looks
like. The listen_address should be '*'
|
Thanks @snopoke . I didn't find the time to debug it further along your suggestions, but apparently whatever broke is fixed in the most recent image. Closing |
Re-opening, as the issue appears to be back |
I'm trying to look at the configuration, after applying the same dockerfile as above (with postgresql.conf:
pg_hba.conf:
I'll try to compare these to the base image |
What's surprising is that I changed the Dockerfile to
so that listen_addresses would be re-set correctly if the apt-get changed anything, but when I look at the file in the container, the added line isn't there. |
after looking at the changes in #127 a bit closer, I found that The following Dockerfile demonstrates a functional workaround:
I'm not sure if this project is wrong for making the symlink, or if postgres-plperl is wrong for overwriting it. |
got hit by this too. Has anyone found a workaround that could be in the original dockerfile ? |
Sorry for the delay -- I'm inclined to think that it's very odd for If this is still an issue, I'd recommend checking with upstream to see if they have any suggestions as to what's going on here. If they've got a better method for us to adjust Since there's not really anything we can actionably do here right now, I'm going to close. |
about 6 hours ago my automated tests started failing because we could no longer connect to the database once the docker container came up and reported that it was accepting connections.
Further testing revealed that it was because we were pulling a new version of the official postgres:9.4 image.
A known good image we have is ad2fc7b9d681
The failing image seems to be 25add771b79e
I can switch back and forth between the 2 images and reproduce the bug consistently.
We do run some initialization scripts, but they're all sql commands to create our users and build our schemas and tables, not anything touching hba or similar.
The text was updated successfully, but these errors were encountered: