[GeoNode-users] Error Creating Style from GeoExplorer

David Alda Fernandez de Lezea dalda at hazi.eus
Fri Feb 12 02:31:22 PST 2016


Thanks Simone, I changed the grants and it worked!!

Regards,

Agur bero bat,



David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.
dalda at hazi.eus | www.hazi.eus
T 945 003 240 – M 627 923 170 – F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
 
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com] 
Enviado el: viernes, 12 de febrero de 2016 9:26
Para: David Alda Fernandez de Lezea
CC: geonode-users at lists.osgeo.org
Asunto: Re: [GeoNode-users] Error Creating Style from GeoExplorer

Hi the issue is  IOError: [Errno 13] Permission denied: u'/var/www/geonode/uploaded/thumbs/layer-5bc06f8b-7746-4528-a718-b327eeb8ed7b-thumb.png'.

$ sudo chown -R www-data /var/www/geonode, should help

2016-02-12 9:16 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
Hi,

I'm getting an error while creating a new style from the GeoExplorer interface:

Error Saving Style

There was an error saving the style back to the server.

The fiddler trace shows the following:

http://192.168.1.190/gs/rest/styles/U11CB_MUNICIPIOS_5K_ET89_331158b2.xml

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 webmaster at localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.1.190 Port 80</address>
</body></html>

Apache Access Log

192.168.1.65 - - [12/Feb/2016:09:07:51 +0100] "PUT /gs/rest/styles/U11CB_MUNICIPIOS_5K_ET89_8b189c61.xml HTTP/1.1" 500 801 "http://192.168.1.190/maps/new" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36"

Apache Error Log

[Fri Feb 12 02:07:52.496122 2016] [:error] [pid 11379:tid 140284927817472] Internal Server Error: /gs/rest/styles/U11CB_MUNICIPIOS_5K_ET89_8b189c61.xml
[Fri Feb 12 02:07:52.496161 2016] [:error] [pid 11379:tid 140284927817472] Traceback (most recent call last):
[Fri Feb 12 02:07:52.496166 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
[Fri Feb 12 02:07:52.496170 2016] [:error] [pid 11379:tid 140284927817472]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Feb 12 02:07:52.496174 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/views.py", line 339, in geoserver_rest_proxy
[Fri Feb 12 02:07:52.496177 2016] [:error] [pid 11379:tid 140284927817472]     style_update(request, url)
[Fri Feb 12 02:07:52.496181 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 1520, in style_update
[Fri Feb 12 02:07:52.496185 2016] [:error] [pid 11379:tid 140284927817472]     layer.save()
[Fri Feb 12 02:07:52.496188 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save
[Fri Feb 12 02:07:52.496202 2016] [:error] [pid 11379:tid 140284927817472]     return super(PolymorphicModel, self).save(*args, **kwargs)
[Fri Feb 12 02:07:52.496206 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save
[Fri Feb 12 02:07:52.496209 2016] [:error] [pid 11379:tid 140284927817472]     force_update=force_update, update_fields=update_fields)
[Fri Feb 12 02:07:52.496212 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base
[Fri Feb 12 02:07:52.496215 2016] [:error] [pid 11379:tid 140284927817472]     update_fields=update_fields, raw=raw, using=using)
[Fri Feb 12 02:07:52.496218 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
[Fri Feb 12 02:07:52.496221 2016] [:error] [pid 11379:tid 140284927817472]     response = receiver(signal=self, sender=sender, **named)
[Fri Feb 12 02:07:52.496224 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line 395, in geoserver_post_save
[Fri Feb 12 02:07:52.496227 2016] [:error] [pid 11379:tid 140284927817472]     create_thumbnail(instance, thumbnail_remote_url, thumbnail_create_url, ogc_client=http_client)
[Fri Feb 12 02:07:52.496230 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py", line 686, in create_thumbnail
[Fri Feb 12 02:07:52.496233 2016] [:error] [pid 11379:tid 140284927817472]     instance.save_thumbnail(filename, image=image)
[Fri Feb 12 02:07:52.496236 2016] [:error] [pid 11379:tid 140284927817472]   File "/usr/local/lib/python2.7/dist-packages/geonode/base/models.py", line 564, in save_thumbnail
[Fri Feb 12 02:07:52.496239 2016] [:error] [pid 11379:tid 140284927817472]     with open(os.path.join(upload_path, filename), 'wb') as f:
[Fri Feb 12 02:07:52.496242 2016] [:error] [pid 11379:tid 140284927817472] IOError: [Errno 13] Permission denied: u'/var/www/geonode/uploaded/thumbs/layer-5bc06f8b-7746-4528-a718-b327eeb8ed7b-thumb.png'
[Fri Feb 12 02:07:52.518434 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554] mod_wsgi (pid=11379): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.
[Fri Feb 12 02:07:52.518486 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554] Traceback (most recent call last):
[Fri Feb 12 02:07:52.518521 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__
[Fri Feb 12 02:07:52.518652 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     response = self.get_response(request)
[Fri Feb 12 02:07:52.518673 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response
[Fri Feb 12 02:07:52.518698 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Fri Feb 12 02:07:52.518711 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 236, in handle_uncaught_exception
[Fri Feb 12 02:07:52.518730 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return callback(request, **param_dict)
[Fri Feb 12 02:07:52.518746 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 99, in _wrapped_view
[Fri Feb 12 02:07:52.518823 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     response = view_func(request, *args, **kwargs)
[Fri Feb 12 02:07:52.518849 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 46, in server_error
[Fri Feb 12 02:07:52.518917 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return http.HttpResponseServerError(template.render(Context({})))
[Fri Feb 12 02:07:52.518933 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Feb 12 02:07:52.519276 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return self._render(context)
[Fri Feb 12 02:07:52.519296 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Feb 12 02:07:52.519318 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return self.nodelist.render(context)
[Fri Feb 12 02:07:52.519333 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Fri Feb 12 02:07:52.519352 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     bit = self.render_node(node, context)
[Fri Feb 12 02:07:52.519364 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Fri Feb 12 02:07:52.519381 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return node.render(context)
[Fri Feb 12 02:07:52.519396 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 53, in render
[Fri Feb 12 02:07:52.519507 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     result = self.nodelist.render(context)
[Fri Feb 12 02:07:52.519530 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Fri Feb 12 02:07:52.519565 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     bit = self.render_node(node, context)
[Fri Feb 12 02:07:52.519584 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Fri Feb 12 02:07:52.519604 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return node.render(context)
[Fri Feb 12 02:07:52.519616 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render
[Fri Feb 12 02:07:52.519633 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return self.render_template(self.template, context)
[Fri Feb 12 02:07:52.519645 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template
[Fri Feb 12 02:07:52.519661 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     output = template.render(context)
[Fri Feb 12 02:07:52.519673 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render
[Fri Feb 12 02:07:52.519690 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return self._render(context)
[Fri Feb 12 02:07:52.519701 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render
[Fri Feb 12 02:07:52.519718 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return self.nodelist.render(context)
[Fri Feb 12 02:07:52.519738 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render
[Fri Feb 12 02:07:52.519757 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     bit = self.render_node(node, context)
[Fri Feb 12 02:07:52.519769 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node
[Fri Feb 12 02:07:52.519785 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     return node.render(context)
[Fri Feb 12 02:07:52.519797 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py", line 24, in render
[Fri Feb 12 02:07:52.519854 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     request = context["request"]
[Fri Feb 12 02:07:52.519883 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]   File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__
[Fri Feb 12 02:07:52.519966 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554]     raise KeyError(key)
[Fri Feb 12 02:07:52.519990 2016] [:error] [pid 11379:tid 140284927817472] [remote 192.168.1.65:16554] KeyError: 'request'



Any Ideas??


Thanks.

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.
dalda at hazi.eus | www.hazi.eus
T 945 003 240 - M 627 923 170 - F 945 003 290
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
 
*********************  LEGE OHARRA   *******************   AVISOLEGAL   *******************   DISCLAIMER   *****************************
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.

_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geonode-users




-- 
Simone 


More information about the geonode-users mailing list