AW: [postgis-users] No connection?

Roman Meier mapserver at gismap.ch
Sat Aug 9 01:43:39 PDT 2003


Hi Dave
I took another 4.0 mapserver. Here is the new message, that mapserver gives:

================

msDrawMap(): Image handling error. Failed to draw layer named 'great_lakes'.
msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with
connect string 'user=postgres dbname=myGISdb host=localhost'.
Error reported was 'could not connect to server: Connection refused
(0x0000274D/10061) Is the server running on host localhost and accepting
TCP/IP connections on port 5432? '.
This error occured when trying to make a connection to the specified
postgresql server.
Most commonly this is caused by
(1) incorrect connection string
(2) you didnt specify a 'user=...' in your connection string
(3) the postmaster (postgresql server) isnt running
(4) you are not allowing TCP/IP connection to the postmaster
(5) your postmaster is not running on the correct port - if its not on 5432
you must specify a 'port=...'
(6) the security on your system does not allow the webserver (usually user
'nobody') to make socket connections to the postmaster
(7) you forgot to specify a 'host=...' if the postmaster is on a different
machine
(8) you made a typo

=================

Maybe, that helps...
Roman



-----Ursprüngliche Nachricht-----
Von: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net]Im Auftrag von
David Blasby
Gesendet: Freitag, 8. August 2003 20:45
An: PostGIS Users Discussion
Betreff: Re: [postgis-users] No connection?


Roman Meier wrote:
> --> msDrawMap(): Image handling error. Failed to draw layer named
> 'great_lakes'.

This sounds like you're using the mapserver 4.0 that "eats" error messages.

This is probably a mapserver->posgresql connection problem - is your
connection information correct?  Is the postgresql server setup to
accept TCP/IP connections?

dave


_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users





More information about the postgis-users mailing list