[Lizmap] Plugin fails to retrieve metadata

Nicolas Godet nicolas.godet at outlook.fr
Sun Jul 10 01:26:02 PDT 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20220710/203a58ef/attachment.htm>


More information about the Lizmap mailing list