<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body fpstyle="1" ocsi="0" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Hi,<br>
<br>
I followed your advices on my Lizmap Server :<br>
    1 - Create a new directory /srv/qgis/profile/QGIS<br>
    2 - Add 2 new variables to /etc/environment  file <br>
        HOME=/srv/qgis<br>
        QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile<br>
    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 :<br>
        [proxy]<br>
        proxyEnabled=true<br>
        proxyHost=myproxy ip<br>
        proxyPort=myport<br>
        proxyType=HttpProxy<br>
<br>
Saddly I still have the same behaviour on my lizmap-web-client when I add a WMS layer.<br>
<br>
I noticed that my proxy was already stored in /etc/environment  with several variables http_proxy / https_proxy / HTTP_PROXY / HTTPS_PROXY<br>
<br>
Thanks to follow my issue.<br>
<br>
Antoine.
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<table cellpadding="0" border="0">
<tbody>
<tr style="height:89.7pt" height="149">
<td style="height:89.7pt; padding:7.5pt 7.5pt 0 0" valign="top"><br>
</td>
<td style="height:89.7pt; padding:0.75pt 7.5pt 0.75pt 0.75pt" valign="top"><br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF1859" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>De :</b> Lizmap [lizmap-bounces@lists.osgeo.org] de la part de René-Luc Dhont [rldhont@gmail.com]<br>
<b>Envoyé :</b> mercredi 30 octobre 2019 10:06<br>
<b>À :</b> lizmap@lists.osgeo.org<br>
<b>Objet :</b> Re: [Lizmap] Can't open a map with WMS in it.<br>
</font><br>
</div>
<div></div>
<div>Hi Antoine,<br>
<br>
QGIS Server needs a profile directory in which it can create cache directories and read the QGIS3.ini file.<br>
<br>
To do so you have to add a environment variable : HOME or QGIS_CUSTOM_CONFIG_PATH<br>
<br>
If you add the HOME variable, QGIS Server will create the default profile path in it: .local/share/QGIS/QGIS3/profiles/default/<br>
In this profile path, it will create all needed files and directory<br>
In this profile path it will search the file QGIS3.ini in the QGIS directory.<br>
<br>
For exemple, if you set HOME=/srv/qgis<br>
QGIS server will create /srv/qgis/.local/share/QGIS/QGIS3/profiles/default/<br>
In this directory, it will create all needed files and directory<br>
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<br>
<br>
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.<br>
<br>
For exemple, if you set QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile<br>
If you need to define some config, you have to create /srv/qgis/profile/QGIS directory and /srv/qgis/profile/QGIS/QGIS3.ini file<br>
<br>
You can define the both like that:<br>
* HOME=/srv/qgis<br>
* QGIS_CUSTOM_CONFIG_PATH=/srv/qgis/profile<br>
<br>
If you have a proxy, you have to define the QGIS3.ini<br>
<br>
Regards,<br>
René-Luc<br>
<br>
<div class="moz-cite-prefix">Le 29/10/2019 à 17:35, DAUCE Antoine a écrit :<br>
</div>
<blockquote type="cite"><style type="text/css" id="owaParaStyle">
<!--
-->
</style>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi,<br>
I'm new on a lizmap server administration.<br>
The one I have to maintain is on the folowing configuration :<br>
- Linux<br>
- QGIS-SERVER : 3.4.12<br>
- LIZMAP-WEB-CLIENT : 3.4pre.190808<br>
<br>
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.<br>
Every time we try to open such map it's loading continuously.<br>
<br>
Here is below what I found in the different logs files :<br>
<br>
# Logs from lizmap client administration<br>
<br>
2019-10-28 16:41:54    194.250.123.209    warning    2019-10-28 16:41:54    [2]    file_get_contents(<a class="moz-txt-link-freetext" href="redir.aspx?REF=uB-nrzZrBIUfW-Wcuvt8K1WrFiOXq_i01XbDRx0rxE5g2tb3WV3XCAFodHRwOi8vMTI3LjAuMC4xOjgyMDA_c2VydmljZT1XTVMmYW1wO3JlcXVlc3Q9R2V0Q2FwYWJpbGl0aWVzQXRsYXMmYW1wO21hcD1teW1hcCUyRXFncw.." target="_blank">http://127.0.0.1:8200?service=WMS&amp;request=GetCapabilitiesAtlas&amp;map=mymap%2Eqgs</a>):
 failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out<br>
    /srv/lizmap-web-client/lizmap/modules/lizmap/classes/lizmapProxy.class.php    236<br>
<br>
# Logs NGINX "error.log"<br>
<br>
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:
<a class="moz-txt-link-rfc2396E" href="redir.aspx?REF=CvdsGHeiecnY8dH_JKxTcR1zV4S3137nftlvJvnjN2Fg2tb3WV3XCAFodHRwczovL215c2VydmVyL2luZGV4LnBocC92aWV3L21hcC8_cmVwb3NpdG9yeT0xJnByb2plY3Q9bXlwcm9qZWN0" target="_blank">
"https://myserver/index.php/view/map/?repository=1&project=myproject"</a><br>
<br>
# Logs NGINX "qgis.access"<br>
<br>
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"<br>
<br>
# Logs NGINX "qgis.error"<br>
<br>
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"<br>
<br>
# Logs QGIS "qgis-server.log"<br>
<br>
16:41:54 WARNING WMS[1837]: Download of capabilities failed: Operation canceled<br>
16:41:54 WARNING Network[1837]: Network request <a class="moz-txt-link-freetext" href="redir.aspx?REF=wiuqY_Y_amSyDF04vLJSqb22PDa7nohNvOi8_prrV3dg2tb3WV3XCAFodHRwczovL3RpbGUuZ2VvYnJldGFnbmUuZnIvZ3djMDIvc2VydmljZS93bXM_dGlsZWQ9dHJ1ZSZTRVJWSUNFPVdNUyZSRVFVRVNUPUdldENhcGFiaWxpdGllcw.." target="_blank">
https://tile.geobretagne.fr/gwc02/service/wms?tiled=true&SERVICE=WMS&REQUEST=GetCapabilities</a> timed out<br>
<br>
I tried several WMS server and it's always the same behavior.<br>
<br>
So my server is unable to access WMS url and I don't know how to fix it. If anyone could help me.<br>
<br>
Antoine (Lorient, France)<br>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<table cellpadding="0" border="0">
<tbody>
<tr style="height:89.7pt" height="149">
<td style="height:89.7pt; padding:7.5pt 7.5pt 0 0" valign="top"><br>
</td>
<td style="height:89.7pt; padding:0.75pt 7.5pt
                      0.75pt 0.75pt" valign="top">
<br>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset>
<pre class="moz-quote-pre">_______________________________________________
Lizmap mailing list
<a class="moz-txt-link-abbreviated" href="redir.aspx?REF=aqcWllOBc_2YeYfzkJUEEbik8TH-Kj5rWHvsZVv1OiNg2tb3WV3XCAFtYWlsdG86TGl6bWFwQGxpc3RzLm9zZ2VvLm9yZw.." target="_blank">Lizmap@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="redir.aspx?REF=Ed7ngba7utq1VSO8LYJfwocAloYWkuRXwcwrSmMW1Otg2tb3WV3XCAFodHRwczovL2xpc3RzLm9zZ2VvLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2xpem1hcA.." target="_blank">https://lists.osgeo.org/mailman/listinfo/lizmap</a>
</pre>
</blockquote>
<br>
<br>
<br>
<font style="background-color:#ffffff">
<p align="center"><font style="background-color:#ffffff">Cliquez <a href="redir.aspx?REF=WCz4xfKLfAYct2NOorFQnBrKR4-7Un23WumFjas5Xjxg2tb3WV3XCAFodHRwczovL3d3dy5tYWlsY29udHJvbC5jb20vc3IvWmJ6WUFfa2hvZTNHWDJQUVBPbXZVZzBRMUZYSTdBYWJPbVZIQ0N6RnNKajQtQmFCcG9DS1Yxbnh3ZU9TcDh6NTRyLW9JNXpLVEtLY3JmTWVMMWZQanc9PQ.." target="_blank">
ici</a> pour signaler ce message comme étant du spam.</font></p>
</font></div>
</div>
</div>
</body>
</html>