Re: [QGIS-Developer] QGIS server logs

2020-07-09 Thread Régis Haubourg
Thanks Sylvain,

I tried -v /usr/bin/xdg-open:/usr/bin/xdg-open:ro with no success.

Bye

Le mer. 8 juil. 2020 à 14:26, Sylvain POULAIN 
a écrit :

> @Regis,
>
> For xdg open and docker, just map your X11 running session inside docker
> container and export DISPLAY like this :
>
> -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY
>
> It works with docker mundialis qgis 2. If not sufficient, you could map
> xdg-open to container :
>
> -v /usr/bin/xdg-open:/usr/bin/xdg-open:ro
>
>
> Why is it declared on the server version ?
>
>
> *Sylvain *
> 
>
>
> Le mer. 8 juil. 2020 à 12:19, Paolo Cavallini  a
> écrit :
>
>> Hi again,
>> on the same server I'm getting frequent:
>>
>> [Wed Jul 08 10:15:21.847370 2020] [fcgid:warn] [pid 23438] [client
>> 127.0.0.1:37450] mod_fcgid: error reading data, FastCGI server closed
>> connection
>> [Wed Jul 08 10:15:21.847989 2020] [core:error] [pid 23438] [client
>> 127.0.0.1:37450] End of script output before headers: qgis_mapserv.fcgi
>>
>> could this simply due to lack of resources (only 4Gb RAM) or there are
>> other explanations?
>> Cheers.
>>
>> Il 06/07/20 20:16, Régis Haubourg ha scritto:
>> > Hi Paolo, I have those messages too when running QGIS desktop from a
>> > docker. Xdg-runtime is used to open default app for files or urls on the
>> > system. I think this has no impact on a server use case.
>> > But I wish I could forward this xdg commands to my host so that I can
>> > open help pages from QGIS in a docker :). If someone knows some magic
>> > here please share !
>> > Cheers
>> > Régis
>> >
>> > Le lun. 6 juil. 2020 à 18:29, Paolo Cavallini > > > a écrit :
>> >
>> > Hi all,
>> > I'm getting some messages from the log file I do'nt understand[0]
>> > I couldn't find an explanation in the manual. Does anybody have some
>> > hints?
>> > Thanks in advance.
>> > ---
>> > [0]
>> > Application path not initialized
>> > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
>> > '/tmp/runtime-www-data'
>> > ...
>> > QNetworkDiskCache::prepare() unable to open temporary file
>> >
>> > --
>> > Paolo Cavallini
>> > www.faunalia.eu  - QGIS.org
>> > training, support, development on QGIS, PostGIS and more
>> > ___
>> > QGIS-Developer mailing list
>> > QGIS-Developer@lists.osgeo.org > QGIS-Developer@lists.osgeo.org>
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> > Unsubscribe:
>> https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> >
>>
>> --
>> Paolo Cavallini
>> www.faunalia.eu - QGIS.org
>> training, support, development on QGIS, PostGIS and more
>> ___
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS server logs

2020-07-08 Thread Paolo Cavallini
in my case, no docker, it's a real machine, with a xvfb
thanks Sylvain for comments

Il 08/07/20 13:10, Sylvain POULAIN ha scritto:
> @Regis,
> 
> For xdg open and docker, just map your X11 running session inside docker
> container and export DISPLAY like this :
> 
> -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY
> 
> It works with docker mundialis qgis 2. If not sufficient, you could map
> xdg-open to container :
> 
> -v /usr/bin/xdg-open:/usr/bin/xdg-open:ro
> 
> 
> Why is it declared on the server version ?
> 
> *Sylvain
> *
> 
> 
> 
> Le mer. 8 juil. 2020 à 12:19, Paolo Cavallini  > a écrit :
> 
> Hi again,
> on the same server I'm getting frequent:
> 
> [Wed Jul 08 10:15:21.847370 2020] [fcgid:warn] [pid 23438] [client
> 127.0.0.1:37450 ] mod_fcgid: error reading
> data, FastCGI server closed
> connection
> [Wed Jul 08 10:15:21.847989 2020] [core:error] [pid 23438] [client
> 127.0.0.1:37450 ] End of script output
> before headers: qgis_mapserv.fcgi
> 
> could this simply due to lack of resources (only 4Gb RAM) or there are
> other explanations?
> Cheers.
> 
> Il 06/07/20 20:16, Régis Haubourg ha scritto:
> > Hi Paolo, I have those messages too when running QGIS desktop from a
> > docker. Xdg-runtime is used to open default app for files or urls
> on the
> > system. I think this has no impact on a server use case. 
> > But I wish I could forward this xdg commands to my host so that I can
> > open help pages from QGIS in a docker :). If someone knows some magic
> > here please share !
> > Cheers
> > Régis
> >
> > Le lun. 6 juil. 2020 à 18:29, Paolo Cavallini
> mailto:cavall...@faunalia.it>
> > >> a
> écrit :
> >
> >     Hi all,
> >     I'm getting some messages from the log file I do'nt understand[0]
> >     I couldn't find an explanation in the manual. Does anybody
> have some
> >     hints?
> >     Thanks in advance.
> >     ---
> >     [0]
> >     Application path not initialized
> >     QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> >     '/tmp/runtime-www-data'
> >     ...
> >     QNetworkDiskCache::prepare() unable to open temporary file
> >
> >     --
> >     Paolo Cavallini
> >     www.faunalia.eu 
>  - QGIS.org
> >     training, support, development on QGIS, PostGIS and more
> >     ___
> >     QGIS-Developer mailing list
> >     QGIS-Developer@lists.osgeo.org
> 
>  >
> >     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >     Unsubscribe:
> https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> 
> -- 
> Paolo Cavallini
> www.faunalia.eu  - QGIS.org
> training, support, development on QGIS, PostGIS and more
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS server logs

2020-07-08 Thread Sylvain POULAIN
@Regis,

For xdg open and docker, just map your X11 running session inside docker
container and export DISPLAY like this :

-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY

It works with docker mundialis qgis 2. If not sufficient, you could map
xdg-open to container :

-v /usr/bin/xdg-open:/usr/bin/xdg-open:ro


Why is it declared on the server version ?


*Sylvain *



Le mer. 8 juil. 2020 à 12:19, Paolo Cavallini  a
écrit :

> Hi again,
> on the same server I'm getting frequent:
>
> [Wed Jul 08 10:15:21.847370 2020] [fcgid:warn] [pid 23438] [client
> 127.0.0.1:37450] mod_fcgid: error reading data, FastCGI server closed
> connection
> [Wed Jul 08 10:15:21.847989 2020] [core:error] [pid 23438] [client
> 127.0.0.1:37450] End of script output before headers: qgis_mapserv.fcgi
>
> could this simply due to lack of resources (only 4Gb RAM) or there are
> other explanations?
> Cheers.
>
> Il 06/07/20 20:16, Régis Haubourg ha scritto:
> > Hi Paolo, I have those messages too when running QGIS desktop from a
> > docker. Xdg-runtime is used to open default app for files or urls on the
> > system. I think this has no impact on a server use case.
> > But I wish I could forward this xdg commands to my host so that I can
> > open help pages from QGIS in a docker :). If someone knows some magic
> > here please share !
> > Cheers
> > Régis
> >
> > Le lun. 6 juil. 2020 à 18:29, Paolo Cavallini  > > a écrit :
> >
> > Hi all,
> > I'm getting some messages from the log file I do'nt understand[0]
> > I couldn't find an explanation in the manual. Does anybody have some
> > hints?
> > Thanks in advance.
> > ---
> > [0]
> > Application path not initialized
> > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> > '/tmp/runtime-www-data'
> > ...
> > QNetworkDiskCache::prepare() unable to open temporary file
> >
> > --
> > Paolo Cavallini
> > www.faunalia.eu  - QGIS.org
> > training, support, development on QGIS, PostGIS and more
> > ___
> > QGIS-Developer mailing list
> > QGIS-Developer@lists.osgeo.org  QGIS-Developer@lists.osgeo.org>
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
>
> --
> Paolo Cavallini
> www.faunalia.eu - QGIS.org
> training, support, development on QGIS, PostGIS and more
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] QGIS server logs

2020-07-08 Thread Paolo Cavallini
Hi again,
on the same server I'm getting frequent:

[Wed Jul 08 10:15:21.847370 2020] [fcgid:warn] [pid 23438] [client
127.0.0.1:37450] mod_fcgid: error reading data, FastCGI server closed
connection
[Wed Jul 08 10:15:21.847989 2020] [core:error] [pid 23438] [client
127.0.0.1:37450] End of script output before headers: qgis_mapserv.fcgi

could this simply due to lack of resources (only 4Gb RAM) or there are
other explanations?
Cheers.

Il 06/07/20 20:16, Régis Haubourg ha scritto:
> Hi Paolo, I have those messages too when running QGIS desktop from a
> docker. Xdg-runtime is used to open default app for files or urls on the
> system. I think this has no impact on a server use case. 
> But I wish I could forward this xdg commands to my host so that I can
> open help pages from QGIS in a docker :). If someone knows some magic
> here please share !
> Cheers
> Régis
> 
> Le lun. 6 juil. 2020 à 18:29, Paolo Cavallini  > a écrit :
> 
> Hi all,
> I'm getting some messages from the log file I do'nt understand[0]
> I couldn't find an explanation in the manual. Does anybody have some
> hints?
> Thanks in advance.
> ---
> [0]
> Application path not initialized
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
> '/tmp/runtime-www-data'
> ...
> QNetworkDiskCache::prepare() unable to open temporary file
> 
> -- 
> Paolo Cavallini
> www.faunalia.eu  - QGIS.org
> training, support, development on QGIS, PostGIS and more
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org 
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

-- 
Paolo Cavallini
www.faunalia.eu - QGIS.org
training, support, development on QGIS, PostGIS and more
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer