-
Notifications
You must be signed in to change notification settings - Fork 254
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
Failure to generate userlist.txt #33
Comments
I've worked around it by building my own image with a custom userlist, like the doc suggests:
|
Same here: 2021-01-23 22:28:25.477 UTC [1] ERROR could not open auth_file /etc/pgbouncer/userlist.txt: No such file or directory Sorry to bother you, but all my containers just crashed, if you have time to fix it I appreciate it. Thank you |
It appears recent changes caused Any workaround that places |
@cheungpat The new code was pushed on the same tags which created existing containers to fail as well. I made a Dockerfile from the sha of the working one and pushed it to my own docker repository.
|
Our systems went down as well, pinning the image to this exact SHA fixes it for us. |
Thanks for pointing out the cause of this problem. I mounted an empty file in a volume as a workaround.
|
Same happened to us. Can confirm #33 (comment) fixes it for now. |
The same happened with our deployment, pgbouncer does not start anymore after such an update ! |
Agreed, this was a painful commit: it updated the existing tags which borked working deployments, and it was half-baked (there are other references to |
I appreciate all the work maintainers do but in the future please tag releases using semver. It would have helped us as we were targeting 1.14.0, not latest, so I would not have expected that to update. |
Dodged a bullet with this one. Anyone need help with tests? Seems like this image might be at a point that its warranted. |
@esalter I think the images are indeed properly tagged using semver, and you should still be getting EDIT: See #35 for proposal for immutable tags |
Hi, |
@grizim-power Ordinarily, yes, but not feasible for a project like |
IMO, even if we have a bug or security vulnerabilities - we should not push a new image with the same tag. |
@grizim-power Yeah, completely agree, image tags should be immutable. |
Yikes! I've reverted the I personally don't think immutable docker tags are feasible, as security updates are generally published under the same tag (e.g. rebuilding on top of a newer base image). However, I think these things are bigger then me. If some of you (or a group) would like to implement this, you're more then welcome to take up maintainer-ship, and take this project to a next level. I don't want to be a limiting factor here. |
That is my understanding too. Official docker hub images are updated with the same tag from time to time.
Thank you for providing this docker image and I think it makes configuring pgbouncer much easier. |
I created a PR with a fix that should work for creating userlist.txt if it doesn't exist while not touching one that does. |
And here's another PR with the fix that I previously suggested as well as a bit of new code to allow for ENV variables to create admin and stats users by providing an equal number of passwords as users to ADMIN_PASSWORDS and STATS_PASSWORDS ENV variables using the same comma delimiter. This one's a bit more out there but should work well for many use cases. Only one of the two needs to be used to fix this issue though. |
Reading the script "'entrypoint.sh" the question is, you need to inform the variable DATABASE_URL then, "entrypoint.sh" will work and generate userlist.txt |
When I try to mount a volume with an empty userlist.txt file I get the following error: |
@MathiasDrapier Did you find a solution to the |
@DustinJSilk Yep take a look on my "tuto"
|
Very detailed, thank you @MathiasDrapier! |
When I mount the file using the kubernetes example I get the following error:
|
Yes this still exists, but not unsolvable. You can get around it by mounting a modified entrypoint into the container using a mounted folder which is not created in advance. The issue comes from the folder having no group write permissions: I haven't found another way to override the Ref:s
|
Steps to reproduce:
Gives the following error:
Subsequently, connecting to the database fails:
Shouldn't that be done automatically?
The text was updated successfully, but these errors were encountered: