Welcome, Guest
Please Login or Register.
Lost Password?
PostgreSQL problem - Connection refused. (1 viewing)
Post Reply

TOPIC: PostgreSQL problem - Connection refused.

#10456
avedave (User)
Posts: 1
graphgraph
PostgreSQL problem - Connection refused. 2008/02/21 13:49  
Hello

I tried to connect to PostgreSQL from my simple java code (on the same server), but received following error:

Code:

Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.



What should I do to succesfully connect to the database?
PostgreSQL has been installed via Webmin and works properly (I can add tables etc. using virtualmin).

Few details:
Same error message for local and remote calls.
When I type: netstat -ln --tcp I don't see any open 5432 port. Does postgres installed by webmin run on another port?
I have a latest stack of virtualmin/webmin/usermin installed automatically on Debian 40 etch minimal.
Besides I know this is not a local/remote access problem I set this special "any network host" in webmin/servers/PostgreSQL Database Server/Allowed Hosts but there is no difference - error still exists.

Thanks in advance for help!
  The administrator has disabled public write access.
#12232
hobbes006 (User)
Posts: 15
graphgraph
Re:PostgreSQL problem - Connection refused. 2008/05/06 17:28  
Hi avedave,

I had a similar problem a while ago but I resolved it by modifying the pg_hba.conf file in my shell console.

If you could post up your pg_hba.conf, I might be able to tell you what is wrong with your configuration.

Regards,
Calvin
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.