g3w-suite/g3w-suite-docker

Failure to publish qgs file created with local data

desilvarami opened this issue · 2 comments

Checklist

  • I've searched through the existing issues and this bug has never been reported before

Subject of the issue

Could not publish web services from qgs files created using shp files. I can successfully publish qgs projects created using external PostGIS data in the server.
Please advice, if I am missing some step. In case this is not the correct platform to ask questions, please let me know a link to a such platform.

Steps to reproduce

  • Create qgs file using QGIS Desktop application running in a local computer (ubuntu desktop) using a Shape File (in ~/Downloads/af/AFG_adm0.shp).
  • Transfer the same Shape File to G3W remote server (to /shared-volume/media/Downloads/af/AFG_adm0.shp). Included .dbf. prj and .shx files as well.
  • Using G3W Admin interface, try to publish the project.
  • Results "Layer error on datasource" message as shown in the additional info section.

Environment

  • g3w-suite-docker 3.7.x
  • Server OS: Ubuntu 22.04 LTS
  • Client Ubuntu 22.04 Desktop with QGIS 3.28 Firenze

Link to your project

No response

Additional info

Source of the SHP file in Local Desktop which was used to created the qgs project using QGIS Desktop.
image

Transfer the same dataset to G3W Server as indicated below.
image

When try to publish the project following error occurs.
image

g3w-suite log file
image

Please provide some assistance to overcome this issue.

Hi @desilvarami, in accordance with the manual https://g3w-suite.readthedocs.io/en/v3.7.x/datamanagement.html, the geo data must been uploaded in /shared-volume/project_data, not in /shared-volume/media/....

To do that inside the G3W-SUITE there is a file manage to upload data on G3W-USITE instance: https://g3w-suite.readthedocs.io/en/v3.7.x/datamanagement.html#geographical-data-synchronization-on-the-server

Hi @wlorenzetti, thanks a lot for the detailed instructions. I was able to successfully publish geo data following your instructions. The possibility of uploading data via the File Manager was very useful. Previously, I transferred geo data to G3W server by using wget command from my GitHub. I guess that caused the problem (with the file format). Because from the beginning I kept a copy of the dataset in /shared-volume/project_data folder as well. Really appreciate your guidance.