-
Notifications
You must be signed in to change notification settings - Fork 58
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
postgres_db FATAL: database "dbuser" does not exist #1566
Comments
I have this issue as well, unsure of how to resolve it. |
You know, going back to the last human commit of that file, it still throws the same error. I wonder if there's some dbuser config you need to do manually that isn't mentioned? |
From what I know, the user is created by the postgres image startup script. Perhaps that changed at some version? You can always create the user manually, though. |
I encountered the same problem. To rule this issue out you can test by stopping all other Postgres containers before starting Sharry. If the same issue is confirmed you can just change the container name from docker-compose.yml |
I fixed this by updating the test case: db:
image: postgres:17.1
container_name: postgres_db
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_DB=dbname
- PGUSER=dbuser
healthcheck:
test: pg_isready -d dbname
interval: 15s
timeout: 60s
retries: 5
start_period: 15s @eikek can you please review and possibly fix this in main repo? |
@michnovka it looks good to me, thank you. You can open a PR with this change if you like (and it works for you) 🙏🏼 |
Hi,
Just running the app with docker, but this error keeps popping up.
I googled, but cant find any info.
postgres_db | 2024-12-19 11:41:37.292 UTC [199] FATAL: database "dbuser" does not exist
postgres_db | 2024-12-19 11:41:52.409 UTC [207] FATAL: database "dbuser" does not exist
postgres_db | 2024-12-19 11:42:07.534 UTC [215] FATAL: database "dbuser" does not exist
postgres_db | 2024-12-19 11:42:22.655 UTC [223] FATAL: database "dbuser" does not exist
Anything that could case a problem?
The text was updated successfully, but these errors were encountered: