[Lizmap] Map publishing blocked since Lizmap version 3.6

Lorenzo Moretti lorenzo.moretti at me.com
Sun Mar 24 04:13:25 PDT 2024


Hi Etienne

Thanks for the information

> Il giorno 11 mar 2024, alle ore 14:34, Etienne Trimaille via Lizmap <lizmap at lists.osgeo.org> ha scritto:
> 
> Hi,
> 
> No, it's not possible to disable this check.
> 


Ok

> Lizmap relies more and more on the QGIS server side plugin. Some features will be broken without the plugin.
> 
> I don't know how it works on MacOS. You should be able to set a path where you store on QGIS server plugins. (either default folder or a custom one).
> 

I have installed three versions of Lizmap: 3.5.x, 3.6.x and 3.7.x. on both macOS and Ubuntu 22.04 and also the necessary plugins.

I installed them without any problems on Apache server with PHP 8.2
Lizmap 3.5.x works on both macOS and Ubuntu.

The other two versions do not allow me to see the maps because Lizmap does not see what version is present.
However, I also have this problem in Ubuntu and I don't understand why.
I have entered all the possible variables inside Apache but Lizmap does not see them.
The Lizmap server plugins and others I have installed but Lizmap does not see the path I gave it. Unfortunately even in Ubuntu.

When I enter this link I have some information:

http://127.0.0.1/maps/lizmap/lizmap/www/index.php/view/app/metadata


{"info":{
	"version":"3.7.5","date":"2024-02-27"},
"dependencies":{
	"jelix":{"version":"1.8.7","minversion":"1.8.7","maxversion":"1.8.7"}},
	"api":{"dataviz":{"version":"1.0.0"}},
"repositories":
{"earthquake":{
"label":"Earthquake","path":"\/Applications\/MAMP\/htdocs\/qgismap\/lizmap-demo\/earthquake\/",
"authorized_groups":["__anonymous","admins","publishers","users"],
"editing_authorized_groups":["__anonymous","admins","publishers","users"],
"projects":{"time_manager_earthquake":{"title":"Earthquakes \u2265 4 MMI in Indonesia in 2020"}}
}},
"lizmap_desktop_plugin_version":"4.1.8",
"acl":{
	"groups":{"publishers":{"label":"Publishers"},
	"admins":{"label":"admins"},
	"users":{"label":"users"}}
	},
"qgis_server_info":{"error":"HTTP_ERROR","error_http_code":400,"error_message":"[{\"code\":\"Bad request error\",\"description\":\"Invalid request\"}]"},
"qgis_server":{
	"test":"OK",
	"mime_type":"text\/xml; charset=utf-8",
	"http_code":200,
	"response":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n
<WMS_Capabilities xmlns=\"http:\/\/www.opengis.net\/wms\" xmlns:sld=\"http:\/\/www.opengis.net\/sld\" xsi:schemaLocation=\"http:\/\/www.opengis.net\/wms http:\/\/schemas.opengis.net\/wms\/1.3.0\/capabilities_1_3_0.xsd http:\/\/www.opengis.net\/sld http:\/\/schemas.opengis.net\/sld\/1.1.0\/sld_capabilities.xsd http:\/\/www.qgis.org\/wms http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetSchemaExtension\" version=\"1.3.0\" xmlns:qgs=\"http:\/\/www.qgis.org\/wms\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\">\n 
	<Service>\n  
		<Name>WMS<\/Name>\n  
		<Title>Untitled<\/Title>\n  
		<KeywordList>\n   
			<Keyword vocabulary=\"ISO\">infoMapAccessService<\/Keyword>\n  
		<\/KeywordList>\n  
		<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n  
		<Fees>None<\/Fees>\n  
		<AccessConstraints>None<\/AccessConstraints>\n 
	<\/Service>\n 
	<Capability>\n  
		<Request>\n   
			<GetCapabilities>\n    
				<Format>text\/xml<\/Format>\n    
				<DCPType>\n     
					<HTTP>\n      
						<Get>\n       
							<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n      
						<\/Get>\n     
					<\/HTTP>\n    
				<\/DCPType>\n   
			<\/GetCapabilities>\n   
			<GetMap>\n    
				<Format>image\/jpeg<\/Format>\n    
				<Format>image\/png<\/Format>\n    
				<Format>image\/png; mode=16bit<\/Format>\n    
				<Format>image\/png; mode=8bit<\/Format>\n    
				<Format>image\/png; mode=1bit<\/Format>\n    
				<Format>application\/dxf<\/Format>\n    
				<DCPType>\n     
					<HTTP>\n      
					<Get>\n       
						<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n      
					<\/Get>\n     
					<\/HTTP>\n    
				<\/DCPType>\n   
			<\/GetMap>\n   
			<GetFeatureInfo>\n    
			<Format>text\/plain<\/Format>\n    
			<Format>text\/html<\/Format>\n    
			<Format>text\/xml<\/Format>\n    
			<sld:GetLegendGraphic>\n    
				<Format>image\/jpeg<\/Format>\n    
				<Format>image\/png<\/Format>\n    
				<Format>application\/json<\/Format>\n    
					<DCPType>\n     
						<HTTP>\n      
							<Get>\n       
								<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n      
							<\/Get>\n     
						<\/HTTP>\n    
					<\/DCPType>\n   
			<\/sld:GetLegendGraphic>\n   
			<sld:DescribeLayer>\n    
				<Format>text\/xml<\/Format>\n    
				<DCPType>\n     
					<HTTP>\n      
						<Get>\n       
							<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n      
						<\/Get>\n     
					<\/HTTP>\n    
				<\/DCPType>\n   
			<\/sld:DescribeLayer>\n   
			<qgs:GetStyles>\n    
				<Format>text\/xml<\/Format>\n    
				<DCPType>\n     
					<HTTP>\n      
						<Get>\n       
							<OnlineResource xlink:href=\"http:\/\/127.0.0.1\/qgis-mapserv\/qgis_mapserv.fcgi?\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:type=\"simple\"\/>\n      
						<\/Get>\n     
					<\/HTTP>\n    
				<\/DCPType>\n   
			<\/qgs:GetStyles>\n  
		<\/Request>\n  
		<Exception>\n   
			<Format>XML<\/Format>\n  
		<\/Exception>\n  
		<sld:UserDefinedSymbolization UserStyle=\"1\" RemoteWFS=\"0\" SupportSLD=\"1\" InlineFeature=\"0\" UserLayer=\"0\" RemoteWCS=\"0\"\/>\n  
		<Layer queryable=\"0\">\n   
			<Title>Untitled<\/Title>\n   
			<KeywordList>\n    
				<Keyword vocabulary=\"ISO\">infoMapAccessService<\/Keyword>\n   
			<\/KeywordList>\n   
			<CRS>CRS:84<\/CRS>\n  
		<\/Layer>\n 
	<\/Capability>\n
<\/WMS_Capabilities>\n"}}



There is some information but Lizmap does not see it



I cannot find on your site a simple documentation on how to enter the variables. Do they have to be assigned via Terminal?

It is also difficult to understand why Lizmap does not see what is already installed and working, QGIS and QGIS server.

Moreover I get the same thing in macOS and Ubuntu with different error messages but in the end map viewing is disabled in both operating systems.

If in version 3.5.x everything worked perfectly why then in later versions map viewing is disabled for something Lizmap doesn't see, not that it doesn't work.

Lizmap is easy in installation but to make it work gets really complicated and it should not be that way.

Insert very detailed instructions please because now it is a headache.


> Or switch to docker ? It works well on MacOS.
> 

It is OK but I like it better in the server

> 
> Regards,
> 
> 
> 

Please an help

Regards

Lorenzo

> 
> On 15/02/2024 16:30, Lorenzo Moretti via Lizmap wrote:
>> Hi everyone,
>> 
>> Until version 3.5.x I was able to publish maps. Since version 3.6.x and then 3.7.x Lizmap blocks publishing maps if you don't meet some configuration parameters. I can't publish the maps.
>> 
>> I use a Mac server with Apache 2.4 and the QGIS for Mac application downloadable from the QGIS site. It is a simple Drag and Drop application installed inside the "/Applications" folder. There is no installar and everything is inside the application, even the Server part. So desktop and server are inside the QGIS application.
>> 
>> Up to version 3.5.x Lizmap in the configuration panel sees the Lizamp version and the message "Unable to retrieve details about your QGIS Server installation (version, plugins, etc.)" but map publishing was not being blocked.
>> From version 3.6 onward the warning message is always there but now map publishing is not allowed with a message at the top.
>> 
>> The Server part of QGIS is inside the application and from the terminal I have some information:
>> mbpm:~ loren$ /Applications/QGIS.app/Contents/MacOS/fcgi-bin/qgis_mapserv.fcgi
>> Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.
>> Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment variable.
>> Warning 1: Unable to find JP2ECW driver to unload from GDAL_SKIP environment variable.
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/liblandingpage.so"
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/libwcs.so"
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/libwfs.so"
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/libwfs3.so"
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/libwms.so"
>> "Loading native module /Applications/QGIS.app/Contents/MacOS/fcgi-bin/../lib/qgis/server/libwmts.so"
>> Content-Length: 0
>> Location: http:/index.json <http://index.json/>
>> Server: QGIS FCGI server - QGIS version 3.34.3-Prizren
>> Status: 302
>> 
>> Instead, QGIS plugins (desktop and server) are installed in a different directory in the user area.
>> 
>> QGIS Server works perfectly, and Lizmap up to version 3.5.x also worked perfectly. The server plugins are all installed and working.
>> I put all the options in the Apache configuration but they are not the ones that change things.
>> 
>> QGIS server in my macOS works with this link:
>> http://127.0.0.1/qgis-mapserv/qgis_mapserv.fcgi
>> but Lizmap, in its Log, cannot see the information.
>> 
>> I think the check is done in the Linux version which has a different path and also the server part is separate from the rest.  From version 3.6 onwards you have put a block to have the versions and plugins aligned.
>> However, there are also installations of QGIS in other operating systems with different paths for plugins as well. 
>> 
>> I ask if you can disable the map publishing block, as there was before until version 3.5.x, or at least leave it only as a warning.
>> 
>> QGIS server with Lizmap in macOS works very well and is fast, up to version 3.5.16, the last one I can use.
>> 
>> Thanks
>> Lorenzo
>> 
>> 
>> 
>> _______________________________________________
>> Lizmap mailing list
>> Lizmap at lists.osgeo.org <mailto:Lizmap at lists.osgeo.org>
>> https://lists.osgeo.org/mailman/listinfo/lizmap
> --
> Etienne Trimaille 
> Géomaticien 
> www.3liz.com <http://www.3liz.com/> 
> 
> Tel. 06 12 93 11 39 
> Bureau 
> 31, rue de l'Argenterie 
> 34000 Montpellier 
> Siège social 
> 73, allée Kleber 
> Boulevard de Strasbourg 
> 34000 Montpellier
> 
> 
> 
> _______________________________________________
> Lizmap mailing list
> Lizmap at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/lizmap

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/lizmap/attachments/20240324/85999c31/attachment-0001.htm>


More information about the Lizmap mailing list