[GeoNode-devel] GeoNode UpdateLayers in Admin interface

Martino.BONI at ext.ec.europa.eu Martino.BONI at ext.ec.europa.eu
Fri May 12 01:21:55 PDT 2017


Hi Simone,

thanks for your reply, I will check the folder and file permission and let you know if this fixes the issue.

Thanks for your time.

Martino.

________________________________
From: Simone Dalmasso [simone.dalmasso at gmail.com]
Sent: 11 May 2017 21:16
To: BONI Martino (JRC-ISPRA-EXT)
Cc: geonode-devel at lists.osgeo.org
Subject: Re: [GeoNode-devel] GeoNode UpdateLayers in Admin interface

Hi this error, as it says, is a permission denied in writing the thumbnail to the disk. Make sure the uploaded folder has write permissions to the user launching the command.

2017-05-11 19:11 GMT+02:00 <Martino.BONI at ext.ec.europa.eu<mailto:Martino.BONI at ext.ec.europa.eu>>:
Dear all,

is it possible to call the command

python manage.py updatelayers

from the admin interface of GeoNode?

I tried to make my own app and call the command through call_command() in a view but I got the error reported below.
My skill with Django are quite poor.. does anyone have already add the command to the admin interface?

I would like to update my layers to the Postgis store that I have already set in geoserver and then publish the layer from geoserver, finally call the command. I need to do the upload in this way due to the huge size of some layers that I can not upload directly from geonode.. seems it goes in timeout.. but maybe I'm wrong. Moreover I do not have access to the command line of the production VM where the geonode is installed.

thanks in advance,

Martino.

---------------------------------------------------------------------------------------
Exception at /syncgeogeo/runsync

('Failed to process SGDB_PTR', IOError(13, 'Permission denied'))

Request Method: GET
Request URL:    ....
Django Version: 1.6.10
Exception Type: Exception
Exception Value:

('Failed to process SGDB_PTR', IOError(13, 'Permission denied'))


Exception Location:     /srv/www/geonode/geonode/base/models.py in save_thumbnail, line 564
Python Executable:      /usr/bin/python
Python Version: 2.7.5
Python Path:

['/usr/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg',
 '/srv/www/geonode',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-linux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old',
 '/usr/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7/site-packages',
 '/usr/lib64/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-packages',
 '/usr/share/httpd']


Server time:    Thu, 11 May 2017 18:47:12 +0200





_______________________________________________
geonode-devel mailing list
geonode-devel at lists.osgeo.org<mailto:geonode-devel at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/geonode-devel




--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170512/0cad6a33/attachment-0001.html>


More information about the geonode-devel mailing list