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

Unable to connect to a postgres database that requires SSL/TLS #3025

Closed
JasoonS opened this issue Dec 1, 2021 · 5 comments
Closed

Unable to connect to a postgres database that requires SSL/TLS #3025

JasoonS opened this issue Dec 1, 2021 · 5 comments

Comments

@JasoonS
Copy link

JasoonS commented Dec 1, 2021

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Unable to connect to a hosted postgresql database in Digital ocean. On connection the graph node prints the following:

Failed to connect notification listener: error performing TLS handshake: no TLS implementation configured, retry_delay_s: 1, attempt: 0, channel: chain_head_updates, component: ChainHeadUpdateListener > NotificationListener
ERRO Postgres connection error, error: FATAL:  remaining connection slots are reserved for non-replication superuser connections, pool: main, shard: primary, component: ConnectionPool

This is using that latest graph-node master branch release.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

This error occurs using the standard hosted postgresql database from Digital Ocean.

What is the expected behavior?

It should be able to connect to a database that requires SSL.

@azf20
Copy link
Contributor

azf20 commented Dec 2, 2021

Thanks @JasoonS - to confirm, this is a general bug, not a regression with the new 0.25.0 graph-node? @lutter any ideas on this?

@JasoonS
Copy link
Author

JasoonS commented Dec 3, 2021

@azf20 - I have tried both on a very recent stable release and on current master.

It is the first time I have tried to use digital ocean's postgres offering for the graph. Before I have always used the standard postgres docker image without any ssl settings.

So my guess is it is a general bug, and I think it is somehow related to how the posgres rust library you are using is configured.

@leoyvens
Copy link
Collaborator

leoyvens commented Dec 3, 2021

This is #2097

@azf20
Copy link
Contributor

azf20 commented Jan 7, 2022

Thanks @JasoonS! Closing as duplicate of #2097 ,

@azf20 azf20 closed this as completed Jan 7, 2022
@JasoonS
Copy link
Author

JasoonS commented Jan 7, 2022

Thanks!

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