[GeoNode-users] Internal server error when updating layer metadata

Joshi, Jigeeshu Jigeeshu.Joshi at ils-forschung.de
Fri Feb 9 06:21:26 PST 2018


Hi,
I have standard Geonode installation on Ubuntu 16.04.
Today I successfully imported 4 layers using importlayers command to Geonode.  All layers have by default have  same name. So I am trying to edit the metadata from geonode GUI (web app) to give them more relevant name. But it causes Internal server error. Below is the excerpt from /apache2/error.log

[Fri Feb 09 07:15:18.141159 2018] [wsgi:error] [pid 24327:tid 140056182236928] GDAL_ERROR 4: Unable to open /var/www/geonode/uploaded/layers/newyork_4.shp or /var/www/geonode/uploaded/layers/newyork_4.SHP.
[Fri Feb 09 07:15:18.141215 2018] [wsgi:error] [pid 24327:tid 140056182236928] Could not open /var/www/geonode/uploaded/layers/newyork_4.shp
[Fri Feb 09 07:15:18.142715 2018] [wsgi:error] [pid 24327:tid 140056182236928] Internal Server Error: /layers/geonode:newyork_4/metadata
[Fri Feb 09 07:15:18.142725 2018] [wsgi:error] [pid 24327:tid 140056182236928] Traceback (most recent call last):
[Fri Feb 09 07:15:18.142728 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Fri Feb 09 07:15:18.142731 2018] [wsgi:error] [pid 24327:tid 140056182236928]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Feb 09 07:15:18.142734 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Fri Feb 09 07:15:18.142737 2018] [wsgi:error] [pid 24327:tid 140056182236928]     return view_func(request, *args, **kwargs)
[Fri Feb 09 07:15:18.142740 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/local/lib/python2.7/dist-packages/geonode/layers/views.py", line 489, in layer_metadata
[Fri Feb 09 07:15:18.142742 2018] [wsgi:error] [pid 24327:tid 140056182236928]     the_layer = layer_form.save()
[Fri Feb 09 07:15:18.142745 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 459, in save
[Fri Feb 09 07:15:18.142748 2018] [wsgi:error] [pid 24327:tid 140056182236928]     construct=False)
[Fri Feb 09 07:15:18.142750 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 105, in save_instance
[Fri Feb 09 07:15:18.142753 2018] [wsgi:error] [pid 24327:tid 140056182236928]     instance.save()
[Fri Feb 09 07:15:18.142756 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/polymorphic/models.py", line 90, in save
[Fri Feb 09 07:15:18.142758 2018] [wsgi:error] [pid 24327:tid 140056182236928]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Fri Feb 09 07:15:18.142761 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 734, in save
[Fri Feb 09 07:15:18.142764 2018] [wsgi:error] [pid 24327:tid 140056182236928]     force_update=force_update, update_fields=update_fields)
[Fri Feb 09 07:15:18.142774 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 758, in save_base
[Fri Feb 09 07:15:18.142777 2018] [wsgi:error] [pid 24327:tid 140056182236928]     update_fields=update_fields)
[Fri Feb 09 07:15:18.142779 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 189, in send
[Fri Feb 09 07:15:18.142782 2018] [wsgi:error] [pid 24327:tid 140056182236928]     response = receiver(signal=self, sender=sender, **named)
[Fri Feb 09 07:15:18.142784 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/local/lib/python2.7/dist-packages/geonode/layers/models.py", line 468, in pre_save_layer
[Fri Feb 09 07:15:18.142787 2018] [wsgi:error] [pid 24327:tid 140056182236928]     base_file, info = instance.get_base_file()
[Fri Feb 09 07:15:18.142789 2018] [wsgi:error] [pid 24327:tid 140056182236928]   File "/usr/local/lib/python2.7/dist-packages/geonode/layers/models.py", line 222, in get_base_file
[Fri Feb 09 07:15:18.142791 2018] [wsgi:error] [pid 24327:tid 140056182236928]     assert valid_shp, msg
[Fri Feb 09 07:15:18.142794 2018] [wsgi:error] [pid 24327:tid 140056182236928] AssertionError: File cannot be opened, maybe check the encoding
[Fri Feb 09 07:15:18.151587 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918] mod_wsgi (pid=24327): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.ws$
[Fri Feb 09 07:15:18.151601 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918] Traceback (most recent call last):
[Fri Feb 09 07:15:18.151609 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
[Fri Feb 09 07:15:18.151621 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     response = self.get_response(request)
[Fri Feb 09 07:15:18.151625 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 218, in get_response
[Fri Feb 09 07:15:18.151632 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Fri Feb 09 07:15:18.151635 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 268, in handle_uncau$
[Fri Feb 09 07:15:18.151641 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return callback(request, **param_dict)
[Fri Feb 09 07:15:18.151644 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Fri Feb 09 07:15:18.151679 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     response = view_func(request, *args, **kwargs)
[Fri Feb 09 07:15:18.151684 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 45, in server_error
[Fri Feb 09 07:15:18.151706 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return http.HttpResponseServerError(template.render())
[Fri Feb 09 07:15:18.151713 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
[Fri Feb 09 07:15:18.151735 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.template.render(context)
[Fri Feb 09 07:15:18.151740 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
[Fri Feb 09 07:15:18.151909 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self._render(context)
[Fri Feb 09 07:15:18.151914 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
[Fri Feb 09 07:15:18.151921 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.nodelist.render(context)
[Fri Feb 09 07:15:18.151926 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.151931 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.151935 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
[Fri Feb 09 07:15:18.151965 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return node.render(context)
[Fri Feb 09 07:15:18.151970 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 56, in render
[Fri Feb 09 07:15:18.152010 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     result = self.nodelist.render(context)
[Fri Feb 09 07:15:18.152014 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.152021 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.152024 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
[Fri Feb 09 07:15:18.152029 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return node.render(context)
[Fri Feb 09 07:15:18.152033 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 159, in render
[Fri Feb 09 07:15:18.152039 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return template.render(context)
[Fri Feb 09 07:15:18.152042 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 212, in render
[Fri Feb 09 07:15:18.152047 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self._render(context)
[Fri Feb 09 07:15:18.152050 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
[Fri Feb 09 07:15:18.152055 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.nodelist.render(context)
[Fri Feb 09 07:15:18.152058 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.152063 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.151644 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Fri Feb 09 07:15:18.151679 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     response = view_func(request, *args, **kwargs)
[Fri Feb 09 07:15:18.151684 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 45, in server_error
[Fri Feb 09 07:15:18.151706 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return http.HttpResponseServerError(template.render())
[Fri Feb 09 07:15:18.151713 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/backends/django.py", line 74, in render
[Fri Feb 09 07:15:18.151735 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.template.render(context)
[Fri Feb 09 07:15:18.151740 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 210, in render
[Fri Feb 09 07:15:18.151909 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self._render(context)
[Fri Feb 09 07:15:18.151914 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
[Fri Feb 09 07:15:18.151921 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.nodelist.render(context)
[Fri Feb 09 07:15:18.151926 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.151931 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.151935 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
[Fri Feb 09 07:15:18.151965 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return node.render(context)
[Fri Feb 09 07:15:18.151970 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 56, in render
[Fri Feb 09 07:15:18.152010 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     result = self.nodelist.render(context)
[Fri Feb 09 07:15:18.152014 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.152021 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.152024 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
[Fri Feb 09 07:15:18.152029 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return node.render(context)
[Fri Feb 09 07:15:18.152033 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 159, in render
[Fri Feb 09 07:15:18.152039 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return template.render(context)
[Fri Feb 09 07:15:18.152042 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 212, in render
[Fri Feb 09 07:15:18.152047 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self._render(context)
[Fri Feb 09 07:15:18.152050 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 202, in _render
[Fri Feb 09 07:15:18.152055 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return self.nodelist.render(context)
[Fri Feb 09 07:15:18.152058 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 905, in render
[Fri Feb 09 07:15:18.152063 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     bit = self.render_node(node, context)
[Fri Feb 09 07:15:18.152066 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/debug.py", line 79, in render_node
[Fri Feb 09 07:15:18.152071 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     return node.render(context)
[Fri Feb 09 07:15:18.152074 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py", line $
[Fri Feb 09 07:15:18.152096 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     request = context["request"]
[Fri Feb 09 07:15:18.152101 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]   File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 71, in __getitem__
[Fri Feb 09 07:15:18.152143 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918]     raise KeyError(key)
[Fri Feb 09 07:15:18.152151 2018] [wsgi:error] [pid 24327:tid 140056182236928] [remote 217.86.228.104:34918] KeyError: 'request'

It seems to  indicate that the folder: /var/www/geonode/uploaded/layers/ is not accessible .  Is this permission issue on the server side or what ?
Kindly  give your input.
Thanks
Jio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180209/802f4813/attachment-0001.html>


More information about the geonode-users mailing list