Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Postgresql Connection Error

Hi talend community, 

 

I am getting the following error 

 

Exception in component tDBConnection_5 (testconnection)

org.postgresql.util.PSQLException: The connection attempt failed.

at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292)

at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)

at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)

at org.postgresql.Driver.makeConnection(Driver.java:454)

at org.postgresql.Driver.connect(Driver.java:256)

at java.sql.DriverManager.getConnection(DriverManager.java:664)

at java.sql.DriverManager.getConnection(DriverManager.java:247)

at moonfare.testconnection_0_1.testconnection.tDBConnection_5Process(testconnection.java:1428)

at moonfare.testconnection_0_1.testconnection.runJobInTOS(testconnection.java:1962)

at moonfare.testconnection_0_1.testconnection.main(testconnection.java:1570)

Caused by: java.net.UnknownHostException: XXXXXXXXXXXXXXXXX

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at org.postgresql.core.PGStream.<init>(PGStream.java:70)

at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:91)

at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)

... 9 more

 

 

Could you please advise? 

 

Thank you in advance for your help 

 

Labels (1)
2 Replies
Anonymous
Not applicable
Author

Hi,

 

    Could you please check the below link?

 

https://community.talend.com/t5/Migration-Configuration-and/Unable-to-connect-to-PostgreSQL-JDBC-Dat...

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Hi Nikhil, 

 

Thanks for getting back to me. Unfortunately I have not been able to solve the issue. I am still getting the same error.  When I test the connection the result is "Connection successful" but when i run the job I constantly get connection to db refused. 

 

Any ideas?

 

Best,