[Lizmap] Plugin fails to retrieve metadata

Peter Berger peter.berger at bluewin.ch
Mon Jul 11 21:43:17 PDT 2022


Hi

 

I succesfully run Lizmap on Ubuntu 22.04 LTS with QGIS Server 3.22.

 

Peter

 

Von: Lizmap <lizmap-bounces at lists.osgeo.org> Im Auftrag von Nicolas Godet
Gesendet: Montag, 11. Juli 2022 19:47
An: lizmap at lists.osgeo.org
Betreff: Re: [Lizmap] Plugin fails to retrieve metadata

 

Hi again

 

It seems that php8.1 was the issue. Switching to php7.4 made Lizmap plugin happy ! :) 





Le 10 juil. 2022 à 10:26, Nicolas Godet <nicolas.godet at outlook.fr <mailto:nicolas.godet at outlook.fr> > a écrit :

 

Hi, 

 

I recently tried to install qgis-server and lizmap on a debian server.

 

In https://docs.lizmap.com/current/fr/install/pre_requirements.html, I, indeed, have <ServerException>Project file error</ServerException> which is a 500 http error.

Env var : QGIS_PROJECT_FILE is not defined.

 

This error is propagated in https://host/index.php/view/app/metadata which cause an error in plugin.

Full output : 

{"info":{"version":"3.5.4","date":"2022-07-01"},"dependencies":{"jelix":{"minversion":"1.1.6","maxversion":"1.6.*"}},"qgis_server":{"test":"OK","mime_type":"text\/xml; charset=utf-8","http_code":500,"response":"<ServerException>Project file error. For OWS services: please provide a SERVICE and a MAP parameter pointing to a valid QGIS project file<\/ServerException>\n"},"qgis_server_info":{"metadata":{"commit_id":"8d5e9761df","name":"Bia\u0142owie\u017ca","py_qgis_server":false,"py_qgis_server_version":"","version":"3.22.8","version_int":32208},"plugins":{"atlasprint":{"commitNumber":"unknown","commitSha1":"unknown","dateTime":"unknown","version":"3.3.1"},"lizmap_server":{"commitNumber":"1","commitSha1":"063960540d85f30099519dccb8913a1eba2f5c0a","dateTime":"2022-06-29T05:49:09Z","version":"1.0.2"},"wfsOutputExtension":{"commitNumber":"1","commitSha1":"d94b53f82946a1f289b05214a0e64e4d0471d38d","dateTime":"2022-03-24T10:48:18Z","version":"1.7.0"}},"services":["WMS","WFS","WCS","WMTS","ATLAS","EXPRESSION","LIZMAP"]}}

 

 

In Lizmap administration panel, no error reported : https://prnt.sc/6pLgR4LR3zCt

 

 

Python code used in plugin:

>>>fetcher=QgsNetworkContentFetcher() 

>>>fetcher.fetchContent(QUrl("https://host/index.php/view/app/metadata"), auth_id)

>>>reply=fetcher.reply()

>>>reply.error()

401  # QNetworkReply::InternalServerError

 

On docker-compose install, I notice it returns a slightly different message : "qgis_server":{"test":"OK","mime_type":"text\/xml; charset=utf-8","http_code":400,"response":"<ServerException>No project defined. For OWS services: please provide a SERVICE and a MAP parameter<\/ServerException>\n"

 

I wonder what I missed during configuration.

But Lizmap web client works fine.

 

Regards

 

Nicolas

 

P.S.: We can speak on Matrix / libera #osgeo/#osgeo-fr if needed



-- 
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220712/79b901aa/attachment.htm>


More information about the Lizmap mailing list