Unable to translate hostname of PostgreSql database server into IP address

java.net.UnknownHostException
at java.net.AbstractPlainSocketImpl.connect
at java.net.SocksSocketImpl.connect
at java.net.Socket.connect
at org.postgresql.core.PGStream.<init>
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
org.postgresql.util.PSQLException
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
5 frames hidden

Typical Exception Messages

  1. The connection attempt failed.
  2. Unable to obtain physical connection to org.postgresql.ds.PGPoolingDataSource@759390f8
  3. IJ031084: Unable to create connection
  4. Timeout after 5004ms of waiting for a connection.
  5. Der Verbindungsversuch schlug fehl.
  6. Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: The connection attempt failed.
  7. Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:postgresql://postgres:5432/ogn?currentSchema=ogn_owner) for user 'ogn_owner': The connection attempt failed.
  8. Unable to obtain connection: Cannot create PoolableConnectionFactory (The connection attempt failed.)
  9. Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is java.lang.reflect.UndeclaredThrowableException

Origin

ConnectionFactoryImpl.openConnectionImpl() has thrown an UnknownHostException

java.net.UnknownHostException
4 frames hidden
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
5Web pages

Similar

Specific cases

External results for this pattern (5)

  1. mjames-upcvia GitHub2 months ago
    Unable to obtain connection: Cannot create PoolableConnectionFactory (The connection attempt failed.)
    Show stack trace
  2. The connection attempt failed.
    Show stack trace
  3. Druxvia Stack Overflow5 months ago
  4. IJ031084: Unable to create connection
    Show stack trace