I’m having trouble connecting to my managed postgres DB via jdbc.
protocol=sql
host=db-postgresql-nyc3-dbnum-do-user-accnum-0.b.db.ondigitalocean.com
port=25060
sql-url=jdbc:postgresql://db-postgresql-nyc3-dbnum-do-user-accnum-0.b.db.ondigitalocean.com/datomic
sql-user=u
sql-password=p
sql-driver-class=org.postgresql.Driver
sql-driver-params=ssl=true
I’m leaning towards it being something with ssl or jdbc, but I don’t know what. I’m currently not using any trusted sources or security of any type.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
As you are hitting a timeout error, this indicates that the problem might be related to the Postgres trusted sources. Where is the Datomic instance running on? You might have to add the IP address of the server where the Datomic instance is running on to your Postgres trusted sources list.
As a quick test, you could also extend the SSL parameter to:
Let me know how it goes!
Best,
Bobby