<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Thomas,<br><br>That did it! I had tried removing the single quotes from the username, but not the db, but not both, I can't remember. By removing single quotes around<br>both the dbname and the username it started working.&nbsp; It's still strange to me that it works with single quotes on all my other sites.<br><br>Thanks for your suggestion!<br><br>Trent<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Fri, 3 Feb 2012 09:33:15 +0100<br>&gt; Subject: Re: [mapserver-users] PostGIS Connection String - Thread Issue?<br>&gt; From: thomas.bonfort@gmail.com<br>&gt; To: pintj@hotmail.com<br>&gt; CC: mapserver-users@lists.osgeo.org<br>&gt; <br>&gt; There were some changes to string quoting/escaping in version 6 (I think).<br>&gt; <br>&gt; Are the errors you are seeing intermittent, or is it reproducible<br>&gt; consistently on all requests?<br>&gt; What happens if you use<br>&gt; <br>&gt; CONNECTION "dbname=interlocken user=interlocken ..."<br>&gt; <br>&gt; instead of<br>&gt; <br>&gt; CONNECTION "dbname='interlocken' user='interlocken' ..."<br>&gt; <br>&gt; --<br>&gt; thomas<br>&gt; <br>&gt; On Thu, Feb 2, 2012 at 23:00, Trent Pingenot &lt;pintj@hotmail.com&gt; wrote:<br>&gt; &gt; Hi list,<br>&gt; &gt;<br>&gt; &gt; We recently upgraded from MapServer 5.x to 6.0.1 on Linux.&nbsp; We have 21 sites<br>&gt; &gt; running all running smoothly with identical configurations off this server.<br>&gt; &gt; On one site the MapServer connection to Postgres/PostGIS fails on all<br>&gt; &gt; layers.&nbsp; The MS debug message is as follows<br>&gt; &gt;<br>&gt; &gt; [Thu Feb  2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error.<br>&gt; &gt; Database connection failed (FATAL:  no pg_hba.conf entry for host "[local]",<br>&gt; &gt; user "interlocken", database "nterlocNken", SSL off<br>&gt; &gt; ) with connect string 'dbname='nterlocNken' user='interlocken'<br>&gt; &gt; password=*******************'<br>&gt; &gt;<br>&gt; &gt; And the entry in the map file<br>&gt; &gt;<br>&gt; &gt;     CONNECTIONTYPE postgis<br>&gt; &gt;     PROCESSING "CLOSE_CONNECTION=DEFER"<br>&gt; &gt;     CONNECTION "dbname='interlocken' user='interlocken'<br>&gt; &gt; password='**************'"<br>&gt; &gt;     DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING<br>&gt; &gt; srid=4326'<br>&gt; &gt;<br>&gt; &gt; I can log into psql on the server as the interlocken user and hit the DB<br>&gt; &gt; just fine so it's not the pg_hba.conf file settings which are set that the<br>&gt; &gt; db username and db name must match.&nbsp; My question is why<br>&gt; &gt; does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver<br>&gt; &gt; should present the connection items in a debug statement?&nbsp; I can use our old<br>&gt; &gt; copy 5.4 copy of mapserver and it runs the map file fine.&nbsp; One difference in<br>&gt; &gt; this build is that we don't have the --with-threads support. We are looking<br>&gt; &gt; at getting the build rebuilt with this thread locking option included.<br>&gt; &gt; Could threading be the problem? I'm not sure how/if threading might be<br>&gt; &gt; related but thought I would mention it.<br>&gt; &gt;<br>&gt; &gt; I've stripped out all layers from the mapfile except a single test layer.<br>&gt; &gt; I've got 60+ layers running in other map files and databases with identical<br>&gt; &gt; setups&nbsp; on the same server without problems, why this one?&nbsp; We even tried<br>&gt; &gt; wiping out the DB and associated user and reloading and still the same<br>&gt; &gt; problem.<br>&gt; &gt;<br>&gt; &gt; Thanks in advance for any help or tips you can provide.<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt;<br>&gt; &gt; Trent<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; mapserver-users mailing list<br>&gt; &gt; mapserver-users@lists.osgeo.org<br>&gt; &gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>&gt; &gt;<br></div>                                               </div></body>
</html>