PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 25th, 2008, 05:25 PM
Arnold123 Arnold123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 Arnold123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 27 sec
Reputation Power: 0
Unhappy Novice having trouble getting started

All, we've installed postgres 8.3 on a server running Windows Server 2003. When working directly on that server, I was able to connect with the database through PGAdminIII. So far so good ...

Next we tried to access the database remotely via LAN using the local machine's Windows XP ODBC configuration service, which asks for the database name, server name, user name, port, and password. The server kept refusing access, saying our request had been "actively refused" . The error message echoed our remote machine's IP address, followed by a colon and the default postgres database port number (5432). What are we doing wrong?

The other problem now is that the postgres service keeps shutting down by itself in Windows Server 2003. For the first several days after installing postgres on the server, the postgres service ran just fine. But now it won't run properly. We had this experience once before with another server but thought the problem was on that server. But the current server is clean, no other database server programs installed.

Any help will be very much appreciated!!!

Reply With Quote
  #2  
Old April 25th, 2008, 06:02 PM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 971 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 44 m 25 sec
Reputation Power: 57
Quote:
Originally Posted by Arnold123
Next we tried to access the database remotely via LAN using the local machine's Windows XP ODBC configuration service, which asks for the database name, server name, user name, port, and password. The server kept refusing access, saying our request had been "actively refused" . The error message echoed our remote machine's IP address, followed by a colon and the default postgres database port number (5432). What are we doing wrong?
I can think of two things:
1) Is there a firewall on the server?
2) Your Postgres service is only accepting connections from localhost (which is the default setting)

Check your postgresql.conf

There is a setting called "listen_addresses" if that does is commented out (# at the start of the line) the Postgres service will only accept connections from localhost.
You have to uncomment the line and then put * into the value, e.g.
Code:
listen_addresses = '*'
For more details see the manual:
http://www.postgresql.org/docs/8.3/static/runtime-config-connection.html

Reply With Quote
  #3  
Old April 25th, 2008, 07:19 PM
Arnold123 Arnold123 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 2 Arnold123 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 27 sec
Reputation Power: 0
OK, next problem

Thanks very much for the advice. Now, trying to start postgres locally on the server, I get a rejection of the pg_hba.conf entry. The configuration line reads:

host all all (IP address) trust

According to the log file, the rejection is based on the keyword "trust". I've tried using the word with and without quotation marks, and I've tried the md5 option. The same error message each time, the pg_hba.conf file is missing or erroneous.

Any ideas here?

Reply With Quote
  #4  
Old April 26th, 2008, 03:05 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 971 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 44 m 25 sec
Reputation Power: 57
Quote:
Originally Posted by Arnold123
According to the log file, the rejection is based on the keyword "trust". I've tried using the word with and without quotation marks, and I've tried the md5 option. The same error message each time, the pg_hba.conf file is missing or erroneous.

You did read the manual, did you?

Quote from the manual at: http://www.postgresql.org/docs/8.3/static/auth-methods.html#AUTH-TRUST

"trust authentication is appropriate and very convenient for local connections on a single-user workstation"

I guess you want some kind of password protection. So make sure your user has a password assigned and change the method to md5 (no quotes)
Comments on this post
pabloj agrees!

Last edited by shammat : April 26th, 2008 at 03:35 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Novice having trouble getting started


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway