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

I am getting error while I am parsing my own pgbouncer.ini #28

Closed
nikcy-b opened this issue Sep 30, 2020 · 2 comments
Closed

I am getting error while I am parsing my own pgbouncer.ini #28

nikcy-b opened this issue Sep 30, 2020 · 2 comments

Comments

@nikcy-b
Copy link

nikcy-b commented Sep 30, 2020

I am completely new to docker, I might be doing some small mistake though

root@docker:/# docker run --name=pgbouncer_2 -e DB_USER=postgres -e DB_PASSWORD=test -e DB_HOST=192.168.0.102 -e DB_NAME=postgres -v pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini -p 5432:5432 edoburu/pgbouncer
Wrote authentication credentials to /etc/pgbouncer/userlist.txt
Create pgbouncer config in /etc/pgbouncer
grep: /etc/pgbouncer/userlist.txt: No such file or directory
/entrypoint.sh: line 58: can't create /etc/pgbouncer/pgbouncer.ini: Is a directory

When I start with only username and password it works, however I want this to take multiple users hence I was trying to run this with external configuration file option.

@vdboor
Copy link
Member

vdboor commented Jan 23, 2021

Thanks, I've fixed this issue. As the entrypoint.sh tried to setup pgbouncer, it also tried to insert the credentials into /etc/pgbouncer/userlist.txt if those were missing. In your case, you likely picked a different file location. The script checks for this now.

@vdboor vdboor closed this as completed Jan 23, 2021
@vdboor vdboor reopened this Jan 26, 2021
@vdboor
Copy link
Member

vdboor commented Jan 26, 2021

I've reverted this issue, as it caused many other installations to fail (see #33)

@jflambert jflambert closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants