org.postgresql.util.PSQLException: Connection to :7432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

talendforge.org | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    org.postgresql.util.PSQLException: Connection to server:port refused. (Page 1) / Big Data - Configuration, usage and feedback / Talend Community Forum

    talendforge.org | 6 months ago
    org.postgresql.util.PSQLException: Connection to :7432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  2. 0

    org.postgresql.util.PSQLException: Connection to server:port refused. (Page 1) / Big Data - Configuration, usage and feedback / Talend Community Forum

    talendforge.org | 6 months ago
    org.postgresql.util.PSQLException: Connection to :7432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  3. 0

    connection refused in centOS with postgresql

    Stack Overflow | 4 years ago | MichaƂ
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    My SQL queries in JSP won't work on server environments

    Stack Overflow | 1 year ago | Hans
    org.postgresql.util.PSQLException: Connection to postgres.ctmidyquyj6t.eu-central-1.rds.amazonaws.com:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  6. 0

    ru.yandex.qatools.embed.postgresql.TestPostgresStarter.java fails

    GitHub | 2 years ago | harishkannarao
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    8 frames
  3. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.core.PGStream.<init>(PGStream.java:61)
    2. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:129)
    3. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
    4. org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:149)
    5. org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:35)
    6. org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
    7. org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:47)
    8. org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:30)
    9. org.postgresql.Driver.makeConnection(Driver.java:414)
    10. org.postgresql.Driver.connect(Driver.java:282)
    10 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:664)
    2. java.sql.DriverManager.getConnection(DriverManager.java:208)
    2 frames
  5. org.apache.spark
    ResolvedDataSource$.apply
    1. org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$getConnector$1.apply(JDBCRDD.scala:188)
    2. org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$getConnector$1.apply(JDBCRDD.scala:181)
    3. org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:121)
    4. org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:91)
    5. org.apache.spark.sql.execution.datasources.jdbc.DefaultSource.createRelation(DefaultSource.scala:60)
    6. org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158)
    6 frames
  6. Spark Project SQL
    DataFrameReader.load
    1. org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)
    1 frame
  7. local_project.hawqload_0_1
    HawqLoad.main
    1. local_project.hawqload_0_1.HawqLoad.tJDBCInput_1Process(HawqLoad.java:1489)
    2. local_project.hawqload_0_1.HawqLoad.run(HawqLoad.java:1950)
    3. local_project.hawqload_0_1.HawqLoad.runJobInTOS(HawqLoad.java:1754)
    4. local_project.hawqload_0_1.HawqLoad.main(HawqLoad.java:1641)
    4 frames