GeoServer times out (504 Gateway Time-Out) when accessed from OpenLayers via nginx webserver -


i have developed openlayers web app uses geoserver. using nginx webserver proxy_pass setup geoserver. works expected when use "localhost" when switch ip address 504 gateway time-out error for

http://98.153.141.207/geoserver/cite/wfs.   

i can access geoserver at

http://98.153.141.207/geoserver/web 

via browser without problem appear proxy continues work expected.

the geoserver log shows when problem occurs:

request: describefeaturetype     service = wfs     version = 1.1.0     baseurl = http://98.153.141.207:80/geoserver/     typename[0] = {http://www.opengeospatial.net/cite}mylayer     outputformat = text/xml; subtype=gml/3.1.1 

then after minute, 504 gateway time-out in javascript console , shows in geoserver log:

09 may 06:02:15 warn [geotools.xml] - error parsing: http://98.153.141.207/geoserver/wfs/describefeaturetype?version=1.1.0&typename=cite:mylayer 

i have tried supposed problem url in browser , works fine.

the nginx erorr log contains this:

2013/05/09 06:02:15 [error] 420#3844: *54 upstream timed out (10060: connection attempt failed because connected party did not respond after period of time, or established connection failed because connected host has failed respond) while reading response header upstream, client: 98.153.141.207, server: localhost, request: "get /geoserver/wfs/describefeaturetype?version=1.1.0&typename=cite:mylayer http/1.1", upstream: "http://127.0.0.1:8080/geoserver/wfs/describefeaturetype?version=1.1.0&typename=cite:mylayer", host: "98.153.141.207" 

further investigation reveals problem seems restrict wfs layers only. wms layers work fine. here declaration of wfs layer fails:

mylayer = new openlayers.layer.vector("mylayer",                                     {                                       strategies: [new openlayers.strategy.bbox(),savestrategy],                                       projection: "epsg:2276",                                       protocol: new openlayers.protocol.wfs(                                       {                                         version: "1.1.0",                                         url: "http://" + hostip + "/geoserver/cite/wfs",                                         featurens: "http://www.opengeospatial.net/cite",                                         srsname: "epsg:2276",                                         featuretype: "mylayer",                                         geometryname: "poly",                                         schema: "http://" + hostip + "/geoserver/wfs/describefeaturetype?version=1.1.0&typename=cite:mylayer"                                       })                                     }); 

any appreciated. thanks

i managed working remove "schema" property openlayer.protocol.wfs of layer. can explain why problem?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -