<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-11-25 13:48 GMT+01:00 Jachym Cepicky <span dir="ltr"><<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Andreas: yes, it's 2.12,<div><br></div><div>command line works:</div><div><br></div><div>QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs<br></div><div>QUERY_STRING="SERVICE=WFS&REQUEST=GetFeature&TYPENAME=vrstva"<br></div><div><br></div><div>/var/www/cgi-bin/qgis_mapserv.fcgi<br></div><div><br></div><div>response as expected</div><div><br></div><div>Is it possible, that it's related to DISPLAY variable? I've seen it in some documentation .. if set to :0 or :99 server returns ServerError</div></div></blockquote><div><br>You need a fake-X server too listening on that display.<br><br></div><div>And if that is your case, the server segfaults.<br><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks</div><div><br></div><div>Jachym</div><br><div class="gmail_quote"><div dir="ltr">st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> napsal:<br></div></div><div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Since your are now the third person who has the same problem, within
the couple of days, I suspect that there really is a bug in QGIS
server in this particular release.<br>
<br>
Is this on 2.12?</div><div text="#000000" bgcolor="#FFFFFF"><br>
<br>
Andreas</div><div text="#000000" bgcolor="#FFFFFF"><br>
<br>
<div>On 25.11.2015 12:29, Jachym Cepicky
wrote:<br>
</div>
</div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite">
<div dir="ltr">hi Stefan,
<div><br>
</div>
<div>apache runs as www-data</div>
<div><br>
</div>
<div>the file is accessible via <a href="http://localhost/tmp/pokus/vrstva.shp" target="_blank">http://localhost/tmp/pokus/vrstva.shp</a> -
so I assume, it is readable by www-data</div>
<div><br>
</div>
<div>GetMap request as WMS works</div>
<div>GetFeatureType as WFS does not</div>
<div><br>
</div>
<div>thanks</div>
<div><br>
</div>
<div>Jachym</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">st 25. 11. 2015 v 11:38 odesílatel Blumentrath,
Stefan <<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>>
napsal:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="NO-BOK">
<div>
<p class="MsoNormal"><span lang="EN-US">Is
/var/www/html/tmp/pokus/vrstva.shp readable for user
“www-data” (which is the default user for accessing
QGIS Server I assume)? Or is that the ‘apache user’
you referred to or did you configure apache to
explicitly access through another user than
‘www-data’?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers</span></p>
<p class="MsoNormal"><span lang="EN-US">Stefan</span><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)" lang="EN-US"> </span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="EN-US"> Qgis-user [mailto:<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank"></a><a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Jachym Cepicky<br>
<b>Sent:</b> 25. november 2015 11:28<br>
<b>To:</b> <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>
<b>Subject:</b> [Qgis-user] qgis server does not
return any data from WFS</span></p>
</div>
</div>
<div link="blue" vlink="purple" lang="NO-BOK">
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Hi,</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">several days, I'm fighting QGIS
server - on lightttpd now on Apache server with
*same* result: WFS GetFeatureType request does not
return any data.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I created project, set all
necessary metadat, coordinate systems, made sure
data are in readable path etc...</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I've published the service using
qgis_mapserver.fcgi - WMS works (GetCapabilitiers,
GetMap, GetFeatureInfo), but WFS works just for
GetCapabilitiers, GetFeatureType request returns
just the first response element</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><wfs:FeatureCollection
xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"
xmlns:ogc="h .....></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">and that's all - not even the
closing tag. It seems, the server refuses to work in
the middle of construction of the response :-(</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I have</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<div>
<p class="MsoNormal"><span> </span>FcgidInitialEnv
QGIS_AUTH_DB_DIR_PATH /var/www/qgis</p>
</div>
<div>
<p class="MsoNormal"><span> </span>FcgidInitialEnv
QGIS_DEBUG 1</p>
</div>
<div>
<p class="MsoNormal"><span> </span>FcgidInitialEnv
QGIS_SERVER_LOG_FILE /tmp/qgis-server.log</p>
</div>
<div>
<p class="MsoNormal"><span> </span>FcgidInitialEnv
QGIS_SERVER_LOG_LEVEL 1</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">but /tmp/qgis-server.log is
empty (even created)</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">In the apache error log, only
following lines can be found:</p>
</div>
<div>
<div>
<p class="MsoNormal">Warning 1: Unable to find
driver ECW to unload from GDAL_SKIP environment
variable.</p>
</div>
<div>
<p class="MsoNormal">Warning 1: Unable to find
driver ECW to unload from GDAL_SKIP environment
variable.</p>
</div>
<div>
<p class="MsoNormal">Warning 1: Unable to find
driver JP2ECW to unload from GDAL_SKIP environment
variable.</p>
</div>
<div>
<p class="MsoNormal">Warning 1: Unable to find
driver ECW to unload from GDAL_SKIP environment
variable.</p>
</div>
<div>
<p class="MsoNormal">Warning 1: Unable to find
driver JP2ECW to unload from GDAL_SKIP environment
variable.</p>
</div>
<div>
<p class="MsoNormal">ERROR 4: Unable to open
/var/www/html/tmp/pokus/vrstva.shp or
/var/www/html/tmp/pokus/vrstva.SHP.</p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">BUT, accessing the file
vrstva.shp from <a href="http://localhost/tmp/pokus/vrstva.shp" target="_blank">
http://localhost/tmp/pokus/vrstva.shp</a> works,
apache user can read it and, as I already said: WMS
GetMap and GetFeatureInfo works</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I've tested QGIS mapserver 2.12
and 2.8 on lightttpd as well as apache, with old
projects as well as completely new with just one
line in shapefile - same result all the time.
Ubuntu 15.10 btw. </p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Any hint?</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Thanks</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Jachym</p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<br>
</blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div></div></div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>