<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Jachym,<br>
<br>
I believe this is a bug in the 2.12 release - or in the 2.12 ubuntu
QGIS package. Because 3 people reported it almost at the same time.<br>
<br>
I just compiled master on my server and WFS works fine. So it's most
likely fixed in master but would have to be backported to 2.12.x
release and 2.8.4 release.<br>
<br>
However, I don't know which commit fixed this issue.<br>
<br>
Andreas<br>
<br>
<div class="moz-cite-prefix">On 25.11.2015 14:37, Jachym Cepicky
wrote:<br>
</div>
<blockquote
cite="mid:CAAZUH4FLtKg0aVgyDRy0Qs=XcpRJZZ4h-_v88AXaEGJqqBHccA@mail.gmail.com"
type="cite">
<div dir="ltr">Andreas,
<div><br>
</div>
<div>thanks for clarification: I've not tedste GetPrint yet.
Yes, GetMap works (without DISPLAY set)</div>
<div><br>
</div>
<div>about location of .qgs file - I just use it locally, try to
get owslib to work along with QGIS-WFS Server, so just for
testing so far, but thanks for reminding me</div>
<div><br>
</div>
<div>Jachym</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">st 25. 11. 2015 v 14:02 odesílatel Andreas
Neumann <<a moz-do-not-send="true"
href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>>
napsal:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi Jachym,<br>
<br>
If WMS works (from the same project) and even GetPrint
works, it shouldn't be the problem of the XServer or the
DISPLAY variable.<br>
<br>
The XServer is required for printing as PDF (getPrint) and I
believe also for rendering SVG symbols or patterns. X-Server
(or an X-Server replacement, such XVNC) is required for QGIS
Server - even if it is quite uncommon that an X-Server runs
on a machine that also runs the Webserver.<br>
<br>
BTW: you should never put your .qgs project files in a path
readable by the Webserver, but always outside. Just because
you list /var/www/html - which is often the Server Root.<br>
<br>
.qgs files may contain sensitive information (such as db
connections, passwords, etc.) and it shouldn't be
downloadable from a web client.</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<br>
Andreas</div>
<div text="#000000" bgcolor="#FFFFFF"><br>
<br>
<div>On 25.11.2015 13:48, Jachym Cepicky wrote:<br>
</div>
<blockquote type="cite">
<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><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 moz-do-not-send="true"
href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>>
napsal:<br>
</div>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;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
moz-do-not-send="true"
href="http://localhost/tmp/pokus/vrstva.shp"
target="_blank"><a class="moz-txt-link-freetext" href="http://localhost/tmp/pokus/vrstva.shp">http://localhost/tmp/pokus/vrstva.shp</a></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
moz-do-not-send="true"
href="mailto:Stefan.Blumentrath@nina.no"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a></a>>
napsal:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;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:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"
lang="EN-US"></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"
lang="EN-US"> </span></p>
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> Qgis-user [mailto:<a
moz-do-not-send="true"
href="mailto:qgis-user-bounces@lists.osgeo.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a></a>]
<b>On Behalf Of </b>Jachym Cepicky<br>
<b>Sent:</b> 25. november 2015 11:28<br>
<b>To:</b> <a
moz-do-not-send="true"
href="mailto:qgis-user@lists.osgeo.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a></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
moz-do-not-send="true"
href="http://www.opengis.net/wfs"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a></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
moz-do-not-send="true"
href="http://localhost/tmp/pokus/vrstva.shp"
target="_blank">
<a class="moz-txt-link-freetext" href="http://localhost/tmp/pokus/vrstva.shp">http://localhost/tmp/pokus/vrstva.shp</a></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 moz-do-not-send="true" href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a moz-do-not-send="true" href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a moz-do-not-send="true" 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 moz-do-not-send="true"
href="mailto:Qgis-user@lists.osgeo.org"
target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
</blockquote>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>