Note that there are some explanatory texts on larger screens.

plurals
  1. POPostgresql server refuses connection despite authorizing it
    primarykey
    data
    text
    <p>I'm connecting to a Postgresql server (version 8.4) with a Spring application.</p> <p>My connection parameters are:</p> <pre><code>&lt;Environment name="/db/driver_class" value="org.postgresql.Driver" type="java.lang.String" override="false" /&gt; &lt;Environment name="/db/jdbc_url" value="jdbc:postgresql://test.server.com:5432/dev_database" type="java.lang.String" override="false" /&gt; &lt;Environment name="/db/user" value="user" type="java.lang.String" override="false" /&gt; &lt;Environment name="/db/password" value="password" type="java.lang.String" override="false" /&gt; </code></pre> <p>These parameters are correct (I can connect using, for example, PgAdminn), but I'm still receiving a <code>org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.</code> error.</p> <p>When checking database logs, it looks like it successfully authorizes the connection attempts:</p> <pre><code>LOG: 00000: connection authorized: user=user database=dev_database LOCATION: BackendInitialize, postmaster.c:3352 LOG: 00000: connection authorized: user=user database=dev_database LOCATION: BackendInitialize, postmaster.c:3352 LOG: 00000: connection authorized: user=user database=dev_database LOCATION: BackendInitialize, postmaster.c:3352 LOG: 00000: connection received: host=lyys.server.com port=51279 LOCATION: BackendInitialize, postmaster.c:3274 LOG: 00000: connection received: host=lyys.server.com port=51280 LOCATION: BackendInitialize, postmaster.c:3274 LOG: 00000: connection authorized: user=user database=dev_database LOCATION: BackendInitialize, postmaster.c:3352 LOG: 00000: connection authorized: user=user database=dev_database LOCATION: BackendInitialize, postmaster.c:3352 </code></pre> <p>What could be the problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload