[Mapserver-users] connection string

Johan Duflost jduflost at ben.vub.ac.be
Thu Apr 1 04:21:22 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0050_01C417F4.9B7BAFD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I think I found the source of the problem. The libpq.dll (postgresql =
client interface) included in the binary distribution of mapserver =
contains a bug listed in pgsql-bugs mailing list.
Does anybody know where I can find a new version of that library ?

Thanks

Johan

  ----- Original Message -----=20
  From: Johan Duflost=20
  To: mapserver-users at lists.gis.umn.edu=20
  Sent: Thursday, April 01, 2004 11:24 AM
  Subject: [Mapserver-users] connection string



  Hi all,

  I installed mapserver in tomcat under windows and I need to connect to =
a postgis db on another host but the following error message is returned =
:

  msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with =
connect string 'user=3Dpgmap password=3Dpgmap dbname=3Dgis host=3Dcanis =
port=3D5432'.=20
  Error reported was 'unknown host name: canis '.=20
  This error occured when trying to make a connection to the specified =
postgresql server.=20
  Most commonly this is caused by=20
  (1) incorrect connection string=20
  (2) you didnt specify a 'user=3D...' in your connection string=20
  (3) the postmaster (postgresql server) isnt running=20
  (4) you are not allowing TCP/IP connection to the postmaster=20
  (5) your postmaster is not running on the correct port - if its not on =
5432 you must specify a 'port=3D...'=20
  (6) the security on your system does not allow the webserver (usually =
user 'nobody') to make socket connections to the postmaster=20
  (7) you forgot to specify a 'host=3D...' if the postmaster is on a =
different machine
  (8) you made a typo=20

  I checked all these possibilities but all of them seem to be right. Is =
this a bug of mapserver on windows ?

  Does anybody have an idea ?

  Thanks in advance,

  Johan Duflost

  Johan Duflost
  Analyst Programmer
  Belgian Biodiversity Information Facility (BeBIF)
  Universite Libre de Bruxelles (ULB)
  Boulevard du Triomphe - campus de la plaine
  B-1050 Bruxelles
  http://gis.bebif.be

------=_NextPart_000_0050_01C417F4.9B7BAFD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I think I found the source of the =
problem. The=20
libpq.dll (postgresql client interface) included in the binary =
distribution of=20
mapserver contains a bug listed in pgsql-bugs mailing list.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Does anybody know where I can find a =
new version of=20
that library ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Johan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Djduflost at ben.vub.ac.be =
href=3D"mailto:jduflost at ben.vub.ac.be">Johan=20
  Duflost</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  title=3Dmapserver-users at lists.gis.umn.edu=20
  =
href=3D"mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.g=
is.umn.edu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 01, 2004 =
11:24=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Mapserver-users] =
connection=20
  string</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT><BR></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>I installed mapserver in tomcat under =
windows and=20
  I need to connect to a postgis db on another host but the following =
error=20
  message is returned :</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV>msPOSTGISLayerOpen(): Query error. couldnt make connection to DB =
with=20
  connect string 'user=3Dpgmap password=3Dpgmap dbname=3Dgis =
host=3Dcanis port=3D5432'.=20
  <BR>Error reported was 'unknown host name: canis '. <BR>This error =
occured=20
  when trying to make a connection to the specified postgresql server. =
<BR>Most=20
  commonly this is caused by <BR>(1) incorrect connection string <BR>(2) =
you=20
  didnt specify a 'user=3D...' in your connection string <BR>(3) the =
postmaster=20
  (postgresql server) isnt running <BR>(4) you are not allowing TCP/IP=20
  connection to the postmaster <BR>(5) your postmaster is not running on =
the=20
  correct port - if its not on 5432 you must specify a 'port=3D...' =
<BR>(6) the=20
  security on your system does not allow the webserver (usually user =
'nobody')=20
  to make socket connections to the postmaster <BR>(7) you forgot to =
specify a=20
  'host=3D...' if the postmaster is on a different machine<BR>(8) you =
made a typo=20
  </DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>I checked all these possibilities but =
all of them=20
  seem to be right. Is this a bug of mapserver on windows ?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Does anybody have an idea =
?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Johan Duflost</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
  <DIV><FONT face=3DArial size=3D2>Johan Duflost<BR>Analyst =
Programmer<BR>Belgian=20
  Biodiversity Information Facility (BeBIF)<BR>Universite Libre de =
Bruxelles=20
  (ULB)<BR>Boulevard du Triomphe - campus de la plaine<BR>B-1050 =
Bruxelles<BR><A=20
  =
href=3D"http://gis.bebif.be">http://gis.bebif.be</A><BR></FONT></DIV></BL=
OCKQUOTE></BODY></HTML>

------=_NextPart_000_0050_01C417F4.9B7BAFD0--





More information about the MapServer-users mailing list