[Lizmap] Can't open a map with WMS in it.

DAUCE Antoine a.dauce at audelor.com
Wed Oct 30 09:57:51 PDT 2019


Hi,

I followed your advices on my Lizmap Server :
    1 - Create a new directory /srv/qgis/profile/QGIS
    2 - Add 2 new variables to /etc/environment  file
        HOME=/srv/qgis
        QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile
    3 - Create a new QGIS3.ini file into /srv/qgis/profile/QGIS and /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/QGIS/ with the content bellow :
        [proxy]
        proxyEnabled=true
        proxyHost=myproxy ip
        proxyPort=myport
        proxyType=HttpProxy

Saddly I still have the same behaviour on my lizmap-web-client when I add a WMS layer.

I noticed that my proxy was already stored in /etc/environment  with several variables http_proxy / https_proxy / HTTP_PROXY / HTTPS_PROXY

Thanks to follow my issue.

Antoine.



________________________________
De : Lizmap [lizmap-bounces at lists.osgeo.org] de la part de René-Luc Dhont [rldhont at gmail.com]
Envoyé : mercredi 30 octobre 2019 10:06
À : lizmap at lists.osgeo.org
Objet : Re: [Lizmap] Can't open a map with WMS in it.

Hi Antoine,

QGIS Server needs a profile directory in which it can create cache directories and read the QGIS3.ini file.

To do so you have to add a environment variable : HOME or QGIS_CUSTOM_CONFIG_PATH

If you add the HOME variable, QGIS Server will create the default profile path in it: .local/share/QGIS/QGIS3/profiles/default/
In this profile path, it will create all needed files and directory
In this profile path it will search the file QGIS3.ini in the QGIS directory.

For exemple, if you set HOME=/srv/qgis
QGIS server will create /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/
In this directory, it will create all needed files and directory
If you need to define some config, you have to create /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/QGIS directory and /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/QGIS/QGIS3.ini file

If you add the QGIS_CUSTOM_CONFIG_PATH variable, QGIS Server does not create the default profile path and use the directory as the profile path.

For exemple, if you set QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile
If you need to define some config, you have to create /srv/qgis/profile/QGIS directory and /srv/qgis/profile/QGIS/QGIS3.ini file

You can define the both like that:
* HOME=/srv/qgis
* QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile

If you have a proxy, you have to define the QGIS3.ini

Regards,
René-Luc

Le 29/10/2019 à 17:35, DAUCE Antoine a écrit :
Hi,
I'm new on a lizmap server administration.
The one I have to maintain is on the folowing configuration :
- Linux
- QGIS-SERVER : 3.4.12
- LIZMAP-WEB-CLIENT : 3.4pre.190808

Since QGIS-SERVER and LIZMAP-WEB-CLIENT have been updated, it's not possible to open a map with a WMS layer in it anymore.
Every time we try to open such map it's loading continuously.

Here is below what I found in the different logs files :

# Logs from lizmap client administration

2019-10-28 16:41:54    194.250.123.209    warning    2019-10-28 16:41:54    [2]    file_get_contents(http://127.0.0.1:8200?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs<redir.aspx?REF=uB-nrzZrBIUfW-Wcuvt8K1WrFiOXq_i01XbDRx0rxE5g2tb3WV3XCAFodHRwOi8vMTI3LjAuMC4xOjgyMDA_c2VydmljZT1XTVMmYW1wO3JlcXVlc3Q9R2V0Q2FwYWJpbGl0aWVzQXRsYXMmYW1wO21hcD1teW1hcCUyRXFncw..>): failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out
    /srv/lizmap-web-client/lizmap/modules/lizmap/classes/lizmapProxy.class.php    236

# Logs NGINX "error.log"

2019/10/28 16:41:54 [error] 1675#1675: *7760 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.128.153.9, server: myserver, request: "GET /index.php/lizmap/service/getProjectConfig?repository=1&project=myproject HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "myserver", referrer: "https://myserver/index.php/view/map/?repository=1&project=myproject"<redir.aspx?REF=CvdsGHeiecnY8dH_JKxTcR1zV4S3137nftlvJvnjN2Fg2tb3WV3XCAFodHRwczovL215c2VydmVyL2luZGV4LnBocC92aWV3L21hcC8_cmVwb3NpdG9yeT0xJnByb2plY3Q9bXlwcm9qZWN0>

# Logs NGINX "qgis.access"

127.0.0.1 - - [28/Oct/2019:16:41:54 +0100] "GET /?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs HTTP/1.1" 504 192 "-" "Lizmap"

# Logs NGINX "qgis.error"

2019/10/28 16:41:54 [error] 1675#1675: *7769 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 127.0.0.1, server: qgis, request: "GET /?service=WMS&request=GetCapabilitiesAtlas&map=mymap%2Eqgs HTTP/1.1", upstream: "fastcgi://127.0.0.1:7200", host: "127.0.0.1:8200"

# Logs QGIS "qgis-server.log"

16:41:54 WARNING WMS[1837]: Download of capabilities failed: Operation canceled
16:41:54 WARNING Network[1837]: Network request https://tile.geobretagne.fr/gwc02/service/wms?tiled=true&SERVICE=WMS&REQUEST=GetCapabilities<redir.aspx?REF=wiuqY_Y_amSyDF04vLJSqb22PDa7nohNvOi8_prrV3dg2tb3WV3XCAFodHRwczovL3RpbGUuZ2VvYnJldGFnbmUuZnIvZ3djMDIvc2VydmljZS93bXM_dGlsZWQ9dHJ1ZSZTRVJWSUNFPVdNUyZSRVFVRVNUPUdldENhcGFiaWxpdGllcw..> timed out

I tried several WMS server and it's always the same behavior.

So my server is unable to access WMS url and I don't know how to fix it. If anyone could help me.

Antoine (Lorient, France)






_______________________________________________
Lizmap mailing list
Lizmap at lists.osgeo.org<redir.aspx?REF=aqcWllOBc_2YeYfzkJUEEbik8TH-Kj5rWHvsZVv1OiNg2tb3WV3XCAFtYWlsdG86TGl6bWFwQGxpc3RzLm9zZ2VvLm9yZw..>
https://lists.osgeo.org/mailman/listinfo/lizmap<redir.aspx?REF=Ed7ngba7utq1VSO8LYJfwocAloYWkuRXwcwrSmMW1Otg2tb3WV3XCAFodHRwczovL2xpc3RzLm9zZ2VvLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xpem1hcA..>





Cliquez ici<redir.aspx?REF=WCz4xfKLfAYct2NOorFQnBrKR4-7Un23WumFjas5Xjxg2tb3WV3XCAFodHRwczovL3d3dy5tYWlsY29udHJvbC5jb20vc3IvWmJ6WUFfa2hvZTNHWDJQUVBPbXZVZzBRMUZYSTdBYWJPbVZIQ0N6RnNKajQtQmFCcG9DS1Yxbnh3ZU9TcDh6NTRyLW9JNXpLVEtLY3JmTWVMMWZQanc9PQ..> pour signaler ce message comme étant du spam.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20191030/5b099856/attachment-0001.html>


More information about the Lizmap mailing list