<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-09-18 16:12 GMT+02:00 Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</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 bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I am still trying to find out why QGIS server crashes on one of my
machines (master version).<br>
<br>
If I run qgis_mapserv.fcgi on the command line I get the following
output:<br>
<br>
-------------------<br>
<div>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">an@laotop:~/cgi$
./qgis_mapserv.fcgi </span><br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.
<br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.
<br>
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.
<br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.
<br>
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.
<br>
Content-Length: 206
<br>
Content-Type: text/xml; charset=utf-8
<br>
<br>
<ServiceExceptionReport version="1.3.0"
xmlns=<a href="http://www.opengis.net/ogc" target="_blank">"http://www.opengis.net/ogc"</a>>
<br>
<ServiceException code="Service configuration
error">Service unknown or
unsupported</ServiceException>
<br>
</ServiceExceptionReport><br>
------------------<br>
<br>
Could it be that my ECW/JP2 warning are causing the crash (500
http error code)? Is this the problem?<br>
<br>
--------------<br>
<br>
On another matter:<br>
QGIS_SERVER_LOG_FILE / _LEVEL never worked for me. I specified
the following in /etc/apache2/mods-enabled/fcgid.conf:<br>
<br>
</span><br>
<span style="font-family:monospace">
<div>
<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
FcgidInitialEnv QGIS_SERVER_LOG_FILE </span><span style="font-weight:bold;color:rgb(255,84,255);background-color:rgb(255,255,255)">"/var/log/apache2/qgis_server.log"</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0<br>
<br>
</span></div>
I created the file /var/log/apache2/qgis_server.log and made
sure it is writable by everyone - however, it always stays
empty. Is level 0 the most verbose code? Why is it not working?<br>
<br>
Thanks for any ideas,<br>
Andreas<br>
</span></div>
<br>
</div><br clear="all"></blockquote></div><br><br></div><div class="gmail_extra">Hello Andreas,<br><br></div><div class="gmail_extra">to convince QGIS server to log is black magic... if you are working from the command line, you should set the env vars by exporting them or directly in the command, this works for me from the cmd line:<br><br><br>QGIS_SERVER_LOG_LEVEL=0 QGIS_SERVER_LOG_FILE=/tmp/qgis-000.log ./qgis_mapserv.fcgi<br><br></div><div class="gmail_extra">The <span style="font-family:monospace">ECW/JP2 are probably unrelated to your crash.<br></span></div><br><br><div class="gmail_extra">-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3: <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div>