Skip site navigation (1) Skip section navigation (2)

Cannot Connect To Db From Local Server

From: "Rickard, David" <drickard1967(at)library(dot)ucla(dot)edu>
To: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Cannot Connect To Db From Local Server
Date: 2012-04-18 22:12:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
We have a legacy PostgresSQL 7.3.4 db on Solaris  which has recently (as in last 24 hours or so) begun refusing TCP/IP (JDBC) connections from the same server the db is on.
The db is up and running-psql connects; I can access the db via pgAdmin III from a PC; I can connect via JDBC from a PC.
However: any JDBC call (whether command-line app or web app) running on the db server fails with this message:
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
And the postmaster log contains the following message:
                FATAL:  unsupported frontend protocol
Mind you... I am using the same JDBC jar (pg74.216.jdbc2.jar) and connection URL in code on my PC and the Solaris server.
Our pg_hba.conf file contains the following lines:
local   all         all                                                                        password
host    all         all   password
host    all         all                         password
And "tcpip_socket = true" is enabled in postgresql.conf.

Any ideas?

David Rickard
UCLA Library Information Technology


pgsql-admin by date

Next:From: Scott MeadDate: 2012-04-18 22:17:33
Subject: Re: Cannot Connect To Db From Local Server
Previous:From: Scott WhitneyDate: 2012-04-18 19:16:01
Subject: Clarification on start/stop backup

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group