Re: [Qgis-developer] QGIS Server crashes and logging

2015-09-18 Thread René-Luc Dhont

Hi Andreas,

ECW is not causing crash.

You can add QGIS log to have more logs

 FcgidInitialEnv QGIS_LOG_FILE "/var/log/apache2/qgis.log"
 FcgidInitialEnv QGIS_LOG_LEVEL 0

Regards,
René-Luc

Le 18/09/2015 16:12, Andreas Neumann a écrit :

Hi,

I am still trying to find out why QGIS server crashes on one of my 
machines (master version).


If I run qgis_mapserv.fcgi on the command line I get the following output:

---
Konsole output
an@laotop:~/cgi$ ./qgis_mapserv.fcgi
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP 
environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP 
environment variable.

Content-Length: 206
Content-Type: text/xml; charset=utf-8

xmlns="http://www.opengis.net/ogc;>
Service unknown 
or unsupported


--

Could it be that my ECW/JP2 warning are causing the crash (500 http 
error code)? Is this the problem?


--

On another matter:
QGIS_SERVER_LOG_FILE / _LEVEL never worked for me. I specified the 
following in /etc/apache2/mods-enabled/fcgid.conf:



Konsole output
 FcgidInitialEnv QGIS_SERVER_LOG_FILE "/var/log/apache2/qgis_server.log"
 FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

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?


Thanks for any ideas,
Andreas



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS Server crashes and logging

2015-09-18 Thread Alessandro Pasotti
2015-09-18 16:12 GMT+02:00 Andreas Neumann :

> Hi,
>
> I am still trying to find out why QGIS server crashes on one of my
> machines (master version).
>
> If I run qgis_mapserv.fcgi on the command line I get the following output:
>
> ---
> an@laotop:~/cgi$ ./qgis_mapserv.fcgi
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
> environment variable.
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
> environment variable.
> Content-Length: 206
> Content-Type: text/xml; charset=utf-8
>
> http://www.opengis.net/ogc;
> >
> Service unknown or
> unsupported
> 
> --
>
> Could it be that my ECW/JP2 warning are causing the crash (500 http error
> code)? Is this the problem?
>
> --
>
> On another matter:
> QGIS_SERVER_LOG_FILE / _LEVEL never worked for me. I specified the
> following in /etc/apache2/mods-enabled/fcgid.conf:
>
>
>  FcgidInitialEnv QGIS_SERVER_LOG_FILE "/var/log/apache2/qgis_server.log"
>  FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>
> 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?
>
> Thanks for any ideas,
> Andreas
>
>
>

Hello Andreas,

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:


QGIS_SERVER_LOG_LEVEL=0 QGIS_SERVER_LOG_FILE=/tmp/qgis-000.log
./qgis_mapserv.fcgi

The ECW/JP2 are probably unrelated to your crash.


-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer