g3w-suite / g3w-admin

Server module for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_administration.html
Mozilla Public License 2.0
40 stars 34 forks source link

Failed to upload WorldMap.qgs project #4

Closed dpadron closed 6 years ago

dpadron commented 6 years ago

Hello, I find this error: You can help me get the origin of it I managed to install g3wsuite on a server with Ubuntu server 16.04

image

wlorenzetti commented 6 years ago

Hi Diego,

what QGIS version are you using?

G3W-SUITE now is only for QGIS 2

If your WorldMap.qgs is a QGIS2 project file, please can you upload it?

W

Il 06/06/2018 18:43, Diego J Padron ha scritto:

Hello, I find this error: You can help me get the origin of it I managed to install g3wsuite on a server with Ubuntu server 16.04

image https://user-images.githubusercontent.com/7094961/41052503-322f71b6-69b9-11e8-8408-d99e8d67d84d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/g3w-suite/g3w-admin/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMAybnFnXmzn_IpQtrgVBR0qDmwhCWVks5t6AatgaJpZM4Uc_wz.

--

Walter Lorenzetti phD email: lorenzetti@gis3w.it skype: aiki74 twitter:w_lorenzetti https://twitter.com/w_lorenzetti g+:aiki74 https://plus.google.com/117055903318462447104/ Tel/Cell: (+39) 347-6597931 Viale Verdi 24 - 51016 Montecatini Terme (PT) Nuovi corsi QGIS e GFOSS http://gis3w.it/it/calendario-corsi-software-geografici

dpadron commented 6 years ago

Hello Walter, I was actually using version 3.x of Qgis. Now I use 2.18 and the project comes up correctly. Now I can not get the "Actions" functions to appear in order to build the map viewer. I'm afraid something went wrong during the installation. Some help?

image

wlorenzetti commented 6 years ago

Hi diego, is the first time I look at the behavior. How do you deploy G3W-SUITE, following README github instruction, or you are deplyed by classical django app? Can you paste your local_settings.py file?

dpadron commented 6 years ago

Hello Walter. Attached two files, one contains the installation procedure used and another the firero local_setting. Thanks for your time.

LOCAL_SETTING.txt INSTALL_G3WSUITE_UBUNTU16_04.txt

wlorenzetti commented 6 years ago

It's seems a problem on your bower packages installations, G3W-SUITE doesn't find ionicons.min.css and bootstrap-datepicker.en.min.js.

bower install returned some errors?

Furthermore i saw you didn't install QGIS-server, G3W-SUITE installation script doesn't install it!

dpadron commented 6 years ago
pip install GDAL
Command "/root/.environments/g3wsuite/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-NxKwvh/GDAL/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ZdGEmO/install-record.txt --single-version-externally-managed --compile --install-headers /root/.environments/g3wsuite/include/site/python2.7/GDAL" failed with error code 1 in /tmp/pip-install-NxKwvh/GDAL/
wlorenzetti commented 6 years ago
sudo apt-get install -y \
    libgdal-dev \
    python-dev
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
pip install GDAL==<installed_version or closest>
dpadron commented 6 years ago

I decided to reinstall following the steps indicated in https://github.com/g3w-suite/g3w-admin/tree/master and this error is generated. attached file PAVER INSTALL.txt

dpadron commented 6 years ago

Hello, I have tried three times reinstalling everything and I have not been able. If you can help me with installation instructions, I thank you. Thank you very much image

wlorenzetti commented 6 years ago

Hi Diego, I found the problem, it was on some bower components version.

So pull the new g3w-admin commits, delete g3w-admin/core/static/bower_components folder and inside main g3w-admin exec bower install

dpadron commented 6 years ago

Hi Walter, thanks for your response. I have reinstalled from the beginning and the ability to edit the projects and other functions works. But now I'm afraid that QGisServer was not installed :-(

image

This is the error when trying to see the map

image

raise MaxRetryError(_pool, url, error or ResponseError(cause))
MaxRetryError: HTTPConnectionPool(host=u'localhost', port=80): Max retries exceeded with url: /cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fg3w-admin%2Fmedia%2Fprojects%2Fgrupo-demo_world-map-shp.qgs&VERSION=1.3.0&REQUEST=GetProjectSettings&SERVICE=WMS (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5db4bcb3d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
[12/Jun/2018 12:25:54] "GET /api/config/2/qdjango/3 HTTP/1.1" 500 21582

Any suggestions?

wlorenzetti commented 6 years ago

Diego, G3W-SUITE doesn't install QGIS-server, you must install it on server and set QDJANGO_SERVER_URL in local_settings if QGIS-server url is different from default 'http://localhost/cgi-bin/qgis_mapserv.fcgi'

dpadron commented 6 years ago

Hi Walter, Thanks for your time. I managed to install G3WSuite, :-) I have tried with some shape layers and the query works correctly. But when the layer has EPSG: 4326 does not allow query the layer stays in RESULTS and shows nothing. I've tried with several shapefiles with the EPSG: 4326 and nothing. What could be the problem?

image

dpadron commented 6 years ago

This resolved, it was a problem with the reference system of the shape layer :-)