Postgresql Connection Error

Five Stars

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 

 

Employee

Re: Postgresql Connection Error

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 :-)

Five Stars

Re: Postgresql Connection Error

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, 

 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog