<div dir="ltr"><div>Thanks for responding. Would you please tell me how to check that? When I go to Network Proxy on the VM, "Direct Connection to internet" is selected.<br><br><br></div><div>Both Mapserver and Postgres on the same VM. Do you think something might still be blocking the port? I am able to open a psql connection just fine using the same port. What is even more confusing is a Mapserver application outside the VM is able to connect to the Database on the VM just fine. <br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 10:18 AM, Humberto Cereser Ibanez <span dir="ltr"><<a href="mailto:humberto@pastoraldacrianca.org.br" target="_blank">humberto@pastoraldacrianca.org.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Krishna,<br>
<div class=""><br>
On Tue, 2014-06-24 at 09:35 -0400, Krishna Priya Patury wrote:<br>
> Just wanted to add, when I do a service iptables status, it is says<br>
> Firewall is not running.<br>
><br>
><br>
> On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury<br>
> <<a href="mailto:krishna.patury@gmail.com">krishna.patury@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> Any other ideas?<br>
><br>
> The map server application installed outside of my Centos VM<br>
> can connect to the Postgres database on the VM. I can also<br>
> connect to the database both from within and outside the VM<br>
> using psql.<br>
><br>
> I believe the Mapserver installation on my VM is fine too as<br>
> my shp2img and running the mapserver through command line work<br>
> just fine. The issue is only when I try to connect to the<br>
> database through the application from my VM.<br>
> I do not see anything additional in the logs.<br>
<br>
</div>I think that the requisition from your application is not achieving your<br>
VM.<br>
Is the request sent by your application pass through a proxy that blocks<br>
the 5432 port or there is a bridge over which the requests flow<br>
directly?<br>
<div class=""><br>
> I can see that the database logs are not updated when I hit it<br>
> though the application within the VM, understandably so with<br>
> the error message in the browser.<br>
><br>
> The only difference between running shp2img and the<br>
> application is perhaps the user? I was able to open a<br>
> succesful connection through psql as an 'apache' user as<br>
> well(User which is running the Apache server). So am not sure<br>
> what is missing.<br>
><br>
> Thanks,<br>
> Krishna.<br>
><br>
</div>Best regards,<br>
<br>
Humberto Cereser Ibanez<br>
<div class="im HOEnZb">><br>
><br>
> On Mon, Jun 23, 2014 at 5:24 PM, Krishna<br>
> <<a href="mailto:krishna.patury@gmail.com">krishna.patury@gmail.com</a>> wrote:<br>
> Yes I can connect to Postgres using the same<br>
> connection information through psql both from within<br>
> and outside my vm.<br>
><br>
> Sent from my iPhone<br>
><br>
> > On Jun 23, 2014, at 5:20 PM, Paul Ramsey<br>
> <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> wrote:<br>
> ><br>
> > Did you restart your postgresql after making the<br>
> changes to pg_hba and postgresql.conf? Can you telnet<br>
> to port 5432? Can you connect with psql? Just ignore<br>
> mapserver for now, you have a connection issue.<br>
> ><br>
> > P.<br>
> ><br>
> ><br>
> > --<br>
> > <a href="http://postgis.net" target="_blank">http://postgis.net</a><br>
> > <a href="http://cleverelephant.ca" target="_blank">http://cleverelephant.ca</a><br>
> ><br>
> ><br>
> > On June 23, 2014 at 2:17:19 PM, Krishna<br>
> (<a href="mailto:krishna.patury@gmail.com">krishna.patury@gmail.com</a>) wrote:<br>
> >>> As I mentioned I have disabled the firewall. Or so<br>
> I think. When<br>
> >> I login as 'root' and click firewall it says<br>
> disabled. Any way<br>
> >> I can confirm/ test this?<br>
> ><br>
><br>
><br>
><br>
><br>
><br>
</div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br></div>