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.

Lizmap is not loading layers from a PostgreSQL DB

See original GitHub issue

Hi, I have a VM with:

  • Ubuntu 16.04 LTS Server
  • Lizmap 3.1.4
  • PHP 7 (with all the dependencies required)
  • QGIS server instelled from ubuntugis-stable (it should be version 2.14.11)

I also loaded the Demo projects and they works fine, actually it’s really fast.

I created a new repository and imported a .qgs, that after the addition from the admin menu is now appearing on the WebUI. This project is pointing to an external PostgreSQL DB to load some of the layers.

image

I can see the service WMS and WFS are working fine, and if I load Montpellier everything works fine:

image

but when I click on Load the Map the page stays stuck on Loading the map and nothing happens.

image

I enabled the debug mode hoping that could help me to see something but it seems that when I am clicking on Load the Map for that project nothing is happening, meanwhile when I click on the others like Montpellier I can see some entries populating the messages.log file like this:

2017-11-06 15:01:38 10.64.237.1 default "http:\/\/10.64.237.227:81\/cgi-bin\/qgis_mapserv.fcgi?geometryname=extent&map=%2Fvar%2Fwww%2Flizmap-web-client-3.1.4%2Flizmap%2Finstall%2Fqgis%2Fmontpellier.qgs&outputformat=GeoJSON&propertyname=geometry%2CLIBQUART%2CQUARTMNO&request=GetFeature&service=WFS&typename=Quartiers&version=1.0.0 --> PHP: HTTP\/1.1 200 OK Date: Mon, 06 Nov 2017 14:01:38 GMT Server: Apache\/2.4.18 (Ubuntu) Vary: Accept-Encoding Connection: close Content-Type: text\/plain; charset=utf-8"

I tried to access the DB via my laptop and also from the VM with a client and it works fine. I tried with my computer to open the file .qgs with QGIS Desktop and it’s working fine. I ultimately try to open the project pointing from my QGIS Desktop to the WMS link from the VM and it works fine:

image

From what I can see the issue seems to be Lizmap that for some reason is not rendering it.

Are there some other logs that I could check? Or could you help me to find out what’s the issue?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
josemvmcommented, Nov 7, 2017

none of my qgis projects have these options checked, so i’ve never tested them…

have a nice experience with a LWC!

0reactions
H4M1Ocommented, Nov 7, 2017

Finally I found out what’s the problem, under the section OWS in QGIS Desktop I had to disable these 2 voices:

image

Now it’s working fine also with my projects, but I don’t understand why I had to disable them and what they are used for.

Do you know what they are for?

Thank you very much for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Layers from Postgres SQL can't be load in Lizmap 3.3.6 #1659
Hi, I'm trying to configure Lizmap 3.3.6 on Ubuntu 20.04, using QGIS Server, QGIS Desktop 3.10.6 (LTR), Apache and Postgres SQL 12.3.
Read more >
Lizmap - QGIS server - PostgreSQL error layer not valid
I have a "service non disponible" with "layer not valide" error in QGIS Server log when layer is added into QGIS project from...
Read more >
Advanced Configuration - Lizmap - Documentation
All layers and groups in the Overview group will not be shown in the lizmap's map legend. ... a PostgreSQL database, accessible from...
Read more >
PgMetadata
It's a QGIS plugin to store some metadata for PostgreSQL layers inside a PostgreSQL database . Metadata for a PostgreSQL table includes :....
Read more >
A QGIS plugin to store the metadata of PostgreSQL layers ...
The layers metadata are stored inside your PostgreSQL database, ... PgMetadata is not designed as a catalog application which lets you search among...
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