-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
panic: dial tcp [::1]:5432: connect: connection refused #769
Comments
Thanks, Can you post your Also are you using our official image or your custom build? |
gotify/server:2.5.0 & gotify/server:2.6.1 were the images used, assume these are the official ones. gotify/server:2.5.0(working) |
Very likely gotify/website#91 , your docker compose environment variables must be entirely quoted or written in the key-value (dictionary) format, see gotify/website#91 (comment) for the fix and explanation. It worked before because of a silent 'repair' mechanism present in our previous configuration parsing library that was removed when we moved back to the canonical implementation. Now the database URL wasn't being interpreted correctly. |
Thanks 👍 resolved by removing the quotes on connection properties. Changed: image: gotify/server:2.6.1
environment:
- TZ='Europe/Berlin'
- GOTIFY_DATABASE_DIALECT=postgres
- GOTIFY_DATABASE_CONNECTION="host=postgres15 port=5432 user=gotify dbname=gotify password='XXX' sslmode=disable" to: image: gotify/server:2.6.1
environment:
- TZ='Europe/Berlin'
- GOTIFY_DATABASE_DIALECT=postgres
- GOTIFY_DATABASE_CONNECTION=host=postgres15 port=5432 user=gotify dbname=gotify password='XXX' sslmode=disable |
with versions 2.6.0 & 2.6.1 deployment fails with below error.
same compose works fine with 2.5.0
using postgres as DB.
The text was updated successfully, but these errors were encountered: