<div dir="ltr">Hi Andrea,<br><div><div class="gmail_extra"><br clear="all"><div>I suggest posting this to the dev list and asking Marco Hugentobler for assistance. I personally do not know enough about threading on Linux to help with that issue. Sorry.<br>
<br></div><div>You could also create an issue ticket and assign to Marco, though posting to the dev list should probably be the first step.<br><br></div><div>On a side note: is the log file populated with output when running the server with the OK project file?<br>
</div><div><br></div><div>Regards,<br></div><div><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota</div>
<br><br><div class="gmail_quote">On Sat, Jun 21, 2014 at 1:36 PM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi, Larry.<br>
<br>
Thx for hint.<br>
<br>
I set the two variables and the log file is create.<br>
:)<br>
<br>
But unfortunately it is absolutely empty.<br>
:(<br>
<br>
It seem the qgis-server will crash quite istantaneously.<br>
<br>
As I report before , I Guess this is something due to the qgis project<br>
because another project will work without any problem.<br>
<br>
So I set a local environment and run the qgis-server from a shell with<br>
a gdb debug to see effectively what it send to stdout.<br>
<br>
This is what it report:<br>
<br>
...................<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP<br>
environment variable.<br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP<br>
environment variable.<br>
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP<br>
environment variable.<br>
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP<br>
environment variable.<br>
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP<br>
environment variable.<br>
[New Thread 0x7fffe307c700 (LWP 823)]<br>
[New Thread 0x7fffe27ea700 (LWP 824)]<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x00007ffff0e50421 in __dynamic_cast ()<br>
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
(gdb)<br>
..................<br>
<br>
I see the version my linux run is the<br>
        libstdc++.so.6 (libc6,x86-64) =><br>
/usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
<br>
There is some know issue of qgis-server with the libstdc++.so.6<br>
?<br>
<br>
2014-06-21 20:53 GMT+02:00 Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>>:<br>
<div class=""><div class="h5">> Hi Andrea,<br>
><br>
> You can set the QGIS_LOG_FILE environment variable to have the<br>
> qgis_mapserv.fcgi process log to a file. It needs to be set within the<br>
> server process environment (if it has a loadable FCGI module) or within the<br>
> FCGI-spawning process environment, e.g. uWSGI or spawn-fcgi.<br>
><br>
> For Apache:<br>
><br>
> <IfModule mod_fastcgi.c>  (or mod_fcgid.c)<br>
>   ...<br>
>   SetEnv QGIS_LOG_FILE /path/to/qgis_server.log<br>
> </IfModule><br>
><br>
> Of course, the log needs to be writable by your Apache or FCGI-spawning<br>
> process user.<br>
><br>
> NOTE: if using latest master builds (or upcoming 2.4 release), the env var<br>
> is now QGIS_SERVER_LOG_FILE, with the new env var QGIS_SERVER_LOG_LEVEL to<br>
> define verbose level [0,1].<br>
><br>
> I haven't tested this, but the amount of debug output is usually relative to<br>
> the CMake build type, e.g. Release vs. RelWithDebInfo or Debug, like is the<br>
> case for the QGIS desktop output. Pretty sure that is always a compile-time<br>
> choice, and can't be be overridden at run-time. Your qgis_mapserv.fcgi<br>
> binary may need to be (re)built as RelWithDebInfo or Debug to trigger enough<br>
> output to debug your issue.<br>
><br>
> [0]<br>
> <a href="https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e" target="_blank">https://github.com/qgis/QGIS/commit/29c39b9f0209ddedd0d51eda1dc926e6e0f2ea9e</a><br>
> [1]<br>
> <a href="https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d" target="_blank">https://github.com/qgis/QGIS/commit/bdf1ac8d46d89869e58884c5f55ff711a1f5f76d</a><br>
><br>
> Regards,<br>
><br>
> Larry Shaffer<br>
> Dakota Cartography<br>
> Black Hills, South Dakota<br>
><br>
><br>
> On Sat, Jun 21, 2014 at 9:25 AM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> Our qgis-server is crashing on a project .<br>
>> This is quite strange because on the same project on a qi-desktop (on<br>
>> another machine) it run without any problem.<br>
>> And also the qgis-server run without any problem with another different<br>
>> project.<br>
>><br>
>> I try to read from the log of server web to see any useful information<br>
>> but the log none report of qgis.<br>
>> The web server ,og come from the stdout so perhaps there is some<br>
>> specific setting to say to QS to output to stdout log ?<br>
>><br>
>> Thx,<br>
>><br>
>><br>
>> --<br>
>> -----------------<br>
>> Andrea Peri<br>
>> . . . . . . . . .<br>
>> qwerty àèìòù<br>
>> -----------------<br>
>> _______________________________________________<br>
>> Qgis-user mailing list<br>
>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
-----------------<br>
Andrea Peri<br>
. . . . . . . . .<br>
qwerty àèìòù<br>
-----------------<br>
</div></div></blockquote></div><br></div></div></div>