question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In 3.6.0 the projects previously served in 3.5.8 are not visible

See original GitHub issue

What is the bug?

In 3.6.0 none of the projects previously served in 3.5.8 are displayed in the log message lizmap come with the error --> Spatialite is not available, But I never get Spatialite on my server or Spatialite php module before now in previous config, and my installation is PostgreSQL based, and the Administrator Dashboard iit works fine, so the connection to existing database it works

Steps to reproduce the issue

  1. update to 3.6.0
  2. set permissions tho ‘user’ www-data
  3. try to open a project previously served with the 3.5.8 version are not loaded in LWC 3.6.0
  4. on QGIS side all the configurations previously setted by Lizmap plugin appear to be deleted/unsetted
  5. when downgrade to 3.5.8 version all works fine see the screenshot for error message

Schermata del 2022-12-12 11-10-59

Versions

Versione di QGIS 3.28.1-Firenze Revisione codice QGIS fde3b8fbb8
Versione Qt 5.15.3
Versione Python 3.10.6
Versione GDAL/OGR 3.4.1
Versione PROJ 8.2.1
Versione database del Registro EPSG v10.041 (2021-12-03)
Versione GEOS 3.10.2-CAPI-1.16.0
Versione SQLite 3.37.2
Versione PDAL 2.3.0
Versione client PostgreSQL unknown
Versione SpatiaLite 5.0.1
Versione QWT 6.1.4
Versione QScintilla2 2.11.6
Versione SO Ubuntu 22.04.1 LTS
Plugins Python attivi
postgisQueryBuilder 2.0.1
lizmap 3.9.8
DataPlotly 3.9.2
Cluster-Analysis-plugin-main 1.0.1
go2streetview 8.6
clusterpoints 5.1
dissect_dissolve_overlaps 0.3
pg_raster_import 3.1.0
corrector_vector 0.3.1
lizmap_server 1.2.1
HouseNumbering3 version 0.0.5
MultiJoin 1.0
quick_map_services 0.19.32
Qgis2threejs 2.7.1
postgis_geoprocessing 0.9
splitmultipart 1.0.0
qquake 1.4
DeepLearningTools 0.2.0
QuickOSM 2.1.1
shapetools 3.4.9
qProf 0.5.0
GeometryShapes 0.7
PostGISQueries 0.2
svir 3.15.1
QuickWKT 3.1
valuetool 3.0.15
plugin_reloader 0.9.2
otbprovider 2.12.99
grassprovider 2.12.99
MetaSearch 0.3.6
sagaprovider 2.12.99
processing 2.12.99
db_manager 0.1.20
</body></html>Versione di QGIS 3.28.1-Firenze Revisione codice QGIS [fde3b8fbb8](https://github.com/qgis/QGIS/commit/fde3b8fbb8) Versione Qt 5.15.3 Versione Python 3.10.6 Versione GDAL/OGR 3.4.1 Versione PROJ 8.2.1 Versione database del Registro EPSG v10.041 (2021-12-03) Versione GEOS 3.10.2-CAPI-1.16.0 Versione SQLite 3.37.2 Versione PDAL 2.3.0 Versione client PostgreSQL unknown Versione SpatiaLite 5.0.1 Versione QWT 6.1.4 Versione QScintilla2 2.11.6 Versione SO Ubuntu 22.04.1 LTS

Plugins Python attivi postgisQueryBuilder 2.0.1 lizmap 3.9.8 DataPlotly 3.9.2 Cluster-Analysis-plugin-main 1.0.1 go2streetview 8.6 clusterpoints 5.1 dissect_dissolve_overlaps 0.3 pg_raster_import 3.1.0 corrector_vector 0.3.1 lizmap_server 1.2.1 HouseNumbering3 version 0.0.5 MultiJoin 1.0 quick_map_services 0.19.32 Qgis2threejs 2.7.1 postgis_geoprocessing 0.9 splitmultipart 1.0.0 qquake 1.4 DeepLearningTools 0.2.0 QuickOSM 2.1.1 shapetools 3.4.9 qProf 0.5.0 GeometryShapes 0.7 PostGISQueries 0.2 svir 3.15.1 QuickWKT 3.1 valuetool 3.0.15 plugin_reloader 0.9.2 otbprovider 2.12.99 grassprovider 2.12.99 MetaSearch 0.3.6 sagaprovider 2.12.99 processing 2.12.99 db_manager 0.1.20

Check Lizmap plugin

  • I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.

QGIS server version, only if the section above doesn’t mention the QGIS Server version

3.28.1

Operating system

Ubuntu 22.04

Browsers

Chrome

Browsers version

Chrome 108.0.5359.94

Relevant log output

2022-12-12 10:06:05	127.0.0.1	error	Spatialite is not available
2022-12-12 10:25:29	127.0.0.1	notice	2022-12-12 10:25:29	[8]	jAuth::isConnected(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;cDaoRecord_lizmap_Jx_user_Jx_pgsql&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition	/var/www/lizmap/lizmap/vendor/jelix/jelix/lib/jelix/auth/jAuth.class.php	584

2022-12-12 10:25:29	127.0.0.1	notice	2022-12-12 10:25:29	[8]	jAuth::isConnected(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;cDaoRecord_lizmap_Jx_user_Jx_pgsql&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition	/var/www/lizmap/lizmap/vendor/jelix/jelix/lib/jelix/auth/jAuth.class.php	584

2022-12-12 10:26:04	127.0.0.1	error	Spatialite is not available
2022-12-12 10:26:19	160.97.xx.xxx	notice	2022-12-12 10:26:19	[8]	Undefined index: metadata	/var/www/lizmap/lizmap/modules/lizmap/lib/Server/Server.php	62

2022-12-12 10:26:19	160.97.xx.xxx	notice	2022-12-12 10:26:19	[8]	Trying to access array offset on value of type null	/var/www/lizmap/lizmap/modules/lizmap/lib/Server/Server.php	62

2022-12-12 10:26:19	160.97.xx.xxx	error	Spatialite is not available
2022-12-12 10:26:19	160.97.xx.xxx	error	Spatialite is not available
2022-12-12 10:26:19	160.97.xx.xxx	error	Spatialite is not available
2022-12-12 10:26:19	160.97.xx.xxx	error	Spatialite is not available
2022-12-12 10:26:19	160.97.xx.xxx	error	Spatialite is not available

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:55 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
Antoviscomicommented, Dec 20, 2022

I was going to ask you, are you sure that your environment variable are read by QGIS server. They are many ways to add environment variables, we can’t describe them all.

Thanks for the feedback.

Many thanks for your help and for your excellent work @Gustry @rldhont @laurentj @nworr @slarosa

1reaction
Antoviscomicommented, Dec 20, 2022

Schermata del 2022-12-20 10-34-41

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 ...
In my case, I had to use npm install typescript@">=3.4.0 and <3.6.0" --save-dev because the warning was showing the version interval >=3.4.0 and ......
Read more >
Issues · 3liz/lizmap-web-client - GitHub
Transfer a QGIS project on a server, Lizmap is providing the web ... In 3.6.0 the projects previously served in 3.5.8 are not...
Read more >
genx3 - Python Package Health Analysis - Snyk
We noticed that this project uses a license which requires less permissive conditions such as disclosing the source code, stating changes or ...
Read more >
Easy Agile TeamRhythm (formerly User Story Maps) - Version ...
Easy Agile TeamRhythm (formerly User Story Maps) ... Server 8.4.0 - 8.19.12021-08-06Performance improvements for multi-project boards Download.
Read more >
How to Install Maven on Mac OS - DigitalOcean
Maven is the most widely used build and project dependency ... the java command will work fine and the alert message will not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found