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

Error nc: bad address 'host1,host2' waiting PostgreSQL if set more one node in parameter externalPostgresql: host: #4872

Open
ofigenov opened this issue Aug 20, 2024 · 1 comment

Comments

@ofigenov
Copy link

What went wrong?

What happened:

During installation raise error "nc: bad address 'host1,host2' waiting PostgreSQL" if set more one node in parameter externalPostgresql: host: host1,host2

What did you expect to happen:

According to the documentation (https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-MULTIPLE-HOSTS), Postgres clients and drivers must accept multiple hosts in the connect string as "host". Since libpq is eventually used here too, you should just skip the parameter as is, without trying to use its contents in a check with nc command, which doesn't understand multiple hosts.

this check raises error

{{- else if eq .Values.database.type "postgresql" }}

How do we reproduce it?

  1. Launch installation with set
    externalPostgresql: host: host1,host2
    more then one host

Grafana OnCall Version

v1.7.2

Product Area

Helm/Kubernetes/Docker

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

@ofigenov
Copy link
Author

ofigenov commented Sep 9, 2024

Maybe there is some workaround how to bypass this check on installation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant