Unix Technical Forum

Connecting to a remote database

This is a discussion on Connecting to a remote database within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> When I connect to a remote database I get this message: "An error has occured: Error connecting to the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 07:07 PM
Nigel Horne
 
Posts: n/a
Default Connecting to a remote database

When I connect to a remote database I get this message:

"An error has occured:

Error connecting to the server: FATAL: Missing or erroneous ph_hba.conf
file, see postmaster log for details."

Naturally I have something wrong, this is NOT a bug report for
that, rather it is a plea (RFE) for a more informative message.

This message falls down in a number of ways:

1) Is it missing or is it erroneous? Why doesn't pgadmin know the
difference?
2) Is the file on the local system or remote system?
3) Where is the ph_hba.conf file?
4) What is erroneous about it?
5) Where is the postmaster log file, on which machine, and what details
am I looking for?
6) Why doesn't this box allow me to view the log file?
7) Last and least: occurred has two 'r's ;-)

-Nigel Horne


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 07:07 PM
Tino Wildenhain
 
Posts: n/a
Default Re: Connecting to a remote database

Nigel Horne schrieb:
> When I connect to a remote database I get this message:
>
> "An error has occured:
>
> Error connecting to the server: FATAL: Missing or erroneous ph_hba.conf
> file, see postmaster log for details."
>
> Naturally I have something wrong, this is NOT a bug report for
> that, rather it is a plea (RFE) for a more informative message.
>
> This message falls down in a number of ways:
>
> 1) Is it missing or is it erroneous? Why doesn't pgadmin know the
> difference?


Ah well, the message comes from the server, so guess what
pgadmin can really know about it :-)

> 2) Is the file on the local system or remote system?


postmaster is the server. So look there (or ask your DBA)

> 3) Where is the ph_hba.conf file?


Again, ask your sysadmin of the server. If you set up yourself,
you would have read the documenation, right? ) *hint*

> 4) What is erroneous about it?


It told you to read the logfile on the server to find out

> 5) Where is the postmaster log file, on which machine, and what details
> am I looking for?


See above :-)

> 6) Why doesn't this box allow me to view the log file?


Because you cant connect? And there is no fileaccess to joe
average anyway

> 7) Last and least: occurred has two 'r's ;-)


Try to mess up your /etc/passwd on a unix box
and then connect via ssh. Compare the messages
you get and what to do :-)


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:28 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com