[GeoNode-users] list index out of range
Eugenio Trumpy
frippe12573 at hotmail.com
Wed Dec 16 09:18:24 PST 2015
Hi,
in a fresh geonode installation, from git (version 2.4.dev20151216081626) on ubuntu 14.04,
once I upload without error a shp file I see it on the layers list. By click on the layer uploaded
I got the page error, which start as:
IndexError at /layers/geonode:reg2001_s_wgs84utm33_1
list index out of range
Request Method:
GET
Request URL:
http://my_name_server/layers/geonode:reg2001_s_wgs84utm33_1
Django Version:
1.6.11
Exception Type:
IndexError
Exception Value:
list index out of range
Exception Location:
/dati/geonode/geonode/layers/models.py in absolute_url, line 68
Python Executable:
/usr/bin/python
Python Version:
2.7.6
Python Path:
['/dati/geonode/.venvs/geonode/lib/python2.7/site-packages',
'/dati/geonode',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/home/eugenio']
Server time:
Wed, 16 Dec 2015 11:14:34 -0600
Error during template rendering
In template /dati/geonode/geonode/layers/templates/layers/layer_detail.html, error at line 322
the line 322 is:
<a href="{{ GEOSERVER_BASE_URL }}{{ style.absolute_url }}" >{{ style.sld_title }}</a>
in apache error.log I got:
[Wed Dec 16 11:14:34.197809 2015] [:error] [pid 25667] Internal Server Error: /layers/geonode:reg2001_s_wgs84utm33_1
[Wed Dec 16 11:14:34.197933 2015] [:error] [pid 25667] Traceback (most recent call last):
[Wed Dec 16 11:14:34.197939 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
[Wed Dec 16 11:14:34.197943 2015] [:error] [pid 25667] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Wed Dec 16 11:14:34.197946 2015] [:error] [pid 25667] File "/dati/geonode/geonode/layers/views.py", line 294, in layer_detail
[Wed Dec 16 11:14:34.197949 2015] [:error] [pid 25667] return render_to_response(template, RequestContext(request, context_dict))
[Wed Dec 16 11:14:34.197952 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/__init__.py", line 29, in render_to_response
[Wed Dec 16 11:14:34.197956 2015] [:error] [pid 25667] return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
[Wed Dec 16 11:14:34.197959 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 164, in render_to_string
[Wed Dec 16 11:14:34.197962 2015] [:error] [pid 25667] return t.render(Context(dictionary))
[Wed Dec 16 11:14:34.197964 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Wed Dec 16 11:14:34.197967 2015] [:error] [pid 25667] return self._render(context)
[Wed Dec 16 11:14:34.197970 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Dec 16 11:14:34.197973 2015] [:error] [pid 25667] return self.nodelist.render(context)
[Wed Dec 16 11:14:34.198001 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198007 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198010 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198013 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198015 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Wed Dec 16 11:14:34.198018 2015] [:error] [pid 25667] return compiled_parent._render(context)
[Wed Dec 16 11:14:34.198021 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Dec 16 11:14:34.198024 2015] [:error] [pid 25667] return self.nodelist.render(context)
[Wed Dec 16 11:14:34.198027 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198029 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198032 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198035 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198037 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Wed Dec 16 11:14:34.198040 2015] [:error] [pid 25667] return compiled_parent._render(context)
[Wed Dec 16 11:14:34.198048 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Dec 16 11:14:34.198051 2015] [:error] [pid 25667] return self.nodelist.render(context)
[Wed Dec 16 11:14:34.198054 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198057 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198059 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198062 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198065 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 123, in render
[Wed Dec 16 11:14:34.198097 2015] [:error] [pid 25667] return compiled_parent._render(context)
[Wed Dec 16 11:14:34.198159 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Wed Dec 16 11:14:34.198170 2015] [:error] [pid 25667] return self.nodelist.render(context)
[Wed Dec 16 11:14:34.198213 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198231 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198250 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198263 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198276 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Dec 16 11:14:34.198289 2015] [:error] [pid 25667] result = block.nodelist.render(context)
[Wed Dec 16 11:14:34.198315 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198330 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198342 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198414 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198429 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 62, in render
[Wed Dec 16 11:14:34.198442 2015] [:error] [pid 25667] result = block.nodelist.render(context)
[Wed Dec 16 11:14:34.198455 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198467 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198480 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198493 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198506 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 305, in render
[Wed Dec 16 11:14:34.198518 2015] [:error] [pid 25667] return nodelist.render(context)
[Wed Dec 16 11:14:34.198531 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Wed Dec 16 11:14:34.198544 2015] [:error] [pid 25667] bit = self.render_node(node, context)
[Wed Dec 16 11:14:34.198556 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 78, in render_node
[Wed Dec 16 11:14:34.198569 2015] [:error] [pid 25667] return node.render(context)
[Wed Dec 16 11:14:34.198582 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 196, in render
[Wed Dec 16 11:14:34.198594 2015] [:error] [pid 25667] nodelist.append(node.render(context))
[Wed Dec 16 11:14:34.198607 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 88, in render
[Wed Dec 16 11:14:34.198620 2015] [:error] [pid 25667] output = self.filter_expression.resolve(context)
[Wed Dec 16 11:14:34.198632 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 585, in resolve
[Wed Dec 16 11:14:34.198645 2015] [:error] [pid 25667] obj = self.var.resolve(context)
[Wed Dec 16 11:14:34.198658 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 735, in resolve
[Wed Dec 16 11:14:34.198671 2015] [:error] [pid 25667] value = self._resolve_lookup(context)
[Wed Dec 16 11:14:34.198683 2015] [:error] [pid 25667] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789, in _resolve_lookup
[Wed Dec 16 11:14:34.198696 2015] [:error] [pid 25667] current = current()
[Wed Dec 16 11:14:34.198709 2015] [:error] [pid 25667] File "/dati/geonode/geonode/layers/models.py", line 68, in absolute_url
[Wed Dec 16 11:14:34.198721 2015] [:error] [pid 25667] return self.sld_url.split('geoserver/', 1)[1]
[Wed Dec 16 11:14:34.198734 2015] [:error] [pid 25667] IndexError: list index out of range
what does it means? Did I configure something wrong? or is a known issue?
best regards
Eugenio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151216/95ee2600/attachment-0001.html>
More information about the geonode-users
mailing list