<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body 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?<br>
    <br>
    Andreas<br>
    <br>
    <div class="moz-cite-prefix">On 25.11.2015 12:29, Jachym Cepicky
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAZUH4Gh1yiOaqs8Jxm03we2d=wk4ei7CCR_C7nz1VWE7HxA4Q@mail.gmail.com"
      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">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 moz-do-not-send="true"
            href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</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">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 moz-do-not-send="true"
                      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 moz-do-not-send="true"
                      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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>