[GeoNode-devel] Problem with saving styles "there was an error saving the style back to the server" on 2.4b25 on trusty / Vagrant VM

Rainer Lissewski rainerlissewski at gmail.com
Tue May 12 08:01:21 PDT 2015


Hi I get an  "there was an error saving the style back to the server" msg
on trying to save styles. Eventually it (partially works, but the error
comes up very frequent. It is a layer that has been added from another
postgis datastore along the lines  of
http://geonode.readthedocs.org/en/latest/tutorials/admin/commands.html#updatelayers


Stacktrace:

[Tue May 12 09:52:27.968168 2015] [:error] [pid 30225:tid 139984521770752]
Internal Server Error: /gs/rest/styles/HVTgeom2_9b5c1e56.xml
[Tue May 12 09:52:27.968289 2015] [:error] [pid 30225:tid 139984521770752]
Traceback (most recent call last):
[Tue May 12 09:52:27.968356 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py",
line 112, in get_response
[Tue May 12 09:52:27.968386 2015] [:error] [pid 30225:tid 139984521770752]
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue May 12 09:52:27.968475 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/views.py",
line 339, in geoserver_rest_proxy
[Tue May 12 09:52:27.968545 2015] [:error] [pid 30225:tid 139984521770752]
    style_update(request, url)
[Tue May 12 09:52:27.968573 2015] [:error] [pid 30225:tid 139984521770752]
  File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
1481, in style_update
[Tue May 12 09:52:27.968715 2015] [:error] [pid 30225:tid 139984521770752]
    layer.save()
[Tue May 12 09:52:27.968732 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py",
line 90, in save
[Tue May 12 09:52:27.968742 2015] [:error] [pid 30225:tid 139984521770752]
    return super(PolymorphicModel, self).save(*args, **kwargs)
[Tue May 12 09:52:27.968751 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line
545, in save
[Tue May 12 09:52:27.968761 2015] [:error] [pid 30225:tid 139984521770752]
    force_update=force_update, update_fields=update_fields)
[Tue May 12 09:52:27.968770 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line
582, in save_base
[Tue May 12 09:52:27.968779 2015] [:error] [pid 30225:tid 139984521770752]
    update_fields=update_fields, raw=raw, using=using)
[Tue May 12 09:52:27.968801 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py",
line 185, in send
[Tue May 12 09:52:27.968839 2015] [:error] [pid 30225:tid 139984521770752]
    response = receiver(signal=self, sender=sender, **named)
[Tue May 12 09:52:27.968865 2015] [:error] [pid 30225:tid 139984521770752]
  File
"/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line
390, in geoserver_post_save
[Tue May 12 09:52:27.968931 2015] [:error] [pid 30225:tid 139984521770752]
    create_thumbnail(instance, thumbnail_remote_url, thumbnail_create_url,
ogc_client=http_client)
[Tue May 12 09:52:27.968959 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py",
line 592, in create_thumbnail
[Tue May 12 09:52:27.969019 2015] [:error] [pid 30225:tid 139984521770752]
    instance.save_thumbnail(filename, image=image)
[Tue May 12 09:52:27.969048 2015] [:error] [pid 30225:tid 139984521770752]
  File "/usr/local/lib/python2.7/dist-packages/geonode/base/models.py",
line 559, in save_thumbnail
[Tue May 12 09:52:27.969075 2015] [:error] [pid 30225:tid 139984521770752]
    with open(os.path.join(upload_path, filename), 'w') as f:
[Tue May 12 09:52:27.969106 2015] [:error] [pid 30225:tid 139984521770752]
IOError: [Errno 13] Permission denied:
u'/var/www/geonode/uploaded/thumbs/layer-efe85a37-9a78-41ce-9692-cd0920486afd-thumb.png'
[Tue May 12 09:52:27.988412 2015] [:error] [pid 30225:tid 139984521770752]
[remote 10.0.2.2:15799] mod_wsgi (pid=30225): Exception occurred processing
WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20150512/23f2e50a/attachment-0001.html>


More information about the geonode-devel mailing list