<div dir="ltr">Hi the issue is <span style="font-size:12.8px"> IOError: [Errno 13] Permission denied: u'/var/www/geonode/uploaded/</span><span style="font-size:12.8px">thumbs/layer-5bc06f8b-7746-</span><span style="font-size:12.8px">4528-a718-b327eeb8ed7b-thumb.</span><span style="font-size:12.8px">png'.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">$ sudo chown -R www-data /var/www/geonode, should help</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-12 9:16 GMT+01:00 David Alda Fernandez de Lezea <span dir="ltr"><<a href="mailto:dalda@hazi.eus" target="_blank">dalda@hazi.eus</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm getting an error while creating a new style from the GeoExplorer interface:<br>
<br>
Error Saving Style<br>
<br>
There was an error saving the style back to the server.<br>
<br>
The fiddler trace shows the following:<br>
<br>
<a href="http://192.168.1.190/gs/rest/styles/U11CB_MUNICIPIOS_5K_ET89_331158b2.xml" rel="noreferrer" target="_blank">http://192.168.1.190/gs/rest/styles/U11CB_MUNICIPIOS_5K_ET89_331158b2.xml</a><br>
<br>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
<html><head><br>
<title>500 Internal Server Error</title><br>
</head><body><br>
<h1>Internal Server Error</h1><br>
<p>The server encountered an internal error or<br>
misconfiguration and was unable to complete<br>
your request.</p><br>
<p>Please contact the server administrator at<br>
webmaster@localhost to inform them of the time this error occurred,<br>
and the actions you performed just before this error.</p><br>
<p>More information about this error may be available<br>
in the server error log.</p><br>
<hr><br>
<address>Apache/2.4.7 (Ubuntu) Server at 192.168.1.190 Port 80</address><br>
</body></html><br>
<br>
Apache Access Log<br>
<br>
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 "<a href="http://192.168.1.190/maps/new" rel="noreferrer" target="_blank">http://192.168.1.190/maps/new</a>" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36"<br>
<br>
Apache Error Log<br>
<br>
[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<br>
[Fri Feb 12 02:07:52.496161 2016] [:error] [pid 11379:tid 140284927817472] Traceback (most recent call last):<br>
[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<br>
[Fri Feb 12 02:07:52.496170 2016] [:error] [pid 11379:tid 140284927817472] response = wrapped_callback(request, *callback_args, **callback_kwargs)<br>
[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<br>
[Fri Feb 12 02:07:52.496177 2016] [:error] [pid 11379:tid 140284927817472] style_update(request, url)<br>
[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<br>
[Fri Feb 12 02:07:52.496185 2016] [:error] [pid 11379:tid 140284927817472] layer.save()<br>
[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<br>
[Fri Feb 12 02:07:52.496202 2016] [:error] [pid 11379:tid 140284927817472] return super(PolymorphicModel, self).save(*args, **kwargs)<br>
[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<br>
[Fri Feb 12 02:07:52.496209 2016] [:error] [pid 11379:tid 140284927817472] force_update=force_update, update_fields=update_fields)<br>
[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<br>
[Fri Feb 12 02:07:52.496215 2016] [:error] [pid 11379:tid 140284927817472] update_fields=update_fields, raw=raw, using=using)<br>
[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<br>
[Fri Feb 12 02:07:52.496221 2016] [:error] [pid 11379:tid 140284927817472] response = receiver(signal=self, sender=sender, **named)<br>
[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<br>
[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)<br>
[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<br>
[Fri Feb 12 02:07:52.496233 2016] [:error] [pid 11379:tid 140284927817472] instance.save_thumbnail(filename, image=image)<br>
[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<br>
[Fri Feb 12 02:07:52.496239 2016] [:error] [pid 11379:tid 140284927817472] with open(os.path.join(upload_path, filename), 'wb') as f:<br>
[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'<br>
[Fri Feb 12 02:07:52.518434 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] mod_wsgi (pid=11379): Exception occurred processing WSGI script '/var/www/geonode/wsgi/geonode.wsgi'.<br>
[Fri Feb 12 02:07:52.<a href="tel:518486%202016" value="+15184862016">518486 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] Traceback (most recent call last):<br>
[Fri Feb 12 02:07:52.<a href="tel:518521%202016" value="+15185212016">518521 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__<br>
[Fri Feb 12 02:07:52.<a href="tel:518652%202016" value="+15186522016">518652 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] response = self.get_response(request)<br>
[Fri Feb 12 02:07:52.<a href="tel:518673%202016" value="+15186732016">518673 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response<br>
[Fri Feb 12 02:07:52.<a href="tel:518698%202016" value="+15186982016">518698 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] response = self.handle_uncaught_exception(request, resolver, sys.exc_info())<br>
[Fri Feb 12 02:07:52.<a href="tel:518711%202016" value="+15187112016">518711 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 236, in handle_uncaught_exception<br>
[Fri Feb 12 02:07:52.<a href="tel:518730%202016" value="+15187302016">518730 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return callback(request, **param_dict)<br>
[Fri Feb 12 02:07:52.<a href="tel:518746%202016" value="+15187462016">518746 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 99, in _wrapped_view<br>
[Fri Feb 12 02:07:52.<a href="tel:518823%202016" value="+15188232016">518823 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] response = view_func(request, *args, **kwargs)<br>
[Fri Feb 12 02:07:52.<a href="tel:518849%202016" value="+15188492016">518849 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/views/defaults.py", line 46, in server_error<br>
[Fri Feb 12 02:07:52.<a href="tel:518917%202016" value="+15189172016">518917 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return http.HttpResponseServerError(template.render(Context({})))<br>
[Fri Feb 12 02:07:52.<a href="tel:518933%202016" value="+15189332016">518933 2016</a>] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render<br>
[Fri Feb 12 02:07:52.519276 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return self._render(context)<br>
[Fri Feb 12 02:07:52.519296 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render<br>
[Fri Feb 12 02:07:52.519318 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return self.nodelist.render(context)<br>
[Fri Feb 12 02:07:52.519333 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render<br>
[Fri Feb 12 02:07:52.519352 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] bit = self.render_node(node, context)<br>
[Fri Feb 12 02:07:52.519364 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node<br>
[Fri Feb 12 02:07:52.519381 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return node.render(context)<br>
[Fri Feb 12 02:07:52.519396 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 53, in render<br>
[Fri Feb 12 02:07:52.519507 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] result = self.nodelist.render(context)<br>
[Fri Feb 12 02:07:52.519530 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render<br>
[Fri Feb 12 02:07:52.519565 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] bit = self.render_node(node, context)<br>
[Fri Feb 12 02:07:52.519584 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node<br>
[Fri Feb 12 02:07:52.519604 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return node.render(context)<br>
[Fri Feb 12 02:07:52.519616 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 155, in render<br>
[Fri Feb 12 02:07:52.519633 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return self.render_template(self.template, context)<br>
[Fri Feb 12 02:07:52.519645 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py", line 137, in render_template<br>
[Fri Feb 12 02:07:52.519661 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] output = template.render(context)<br>
[Fri Feb 12 02:07:52.519673 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 140, in render<br>
[Fri Feb 12 02:07:52.519690 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return self._render(context)<br>
[Fri Feb 12 02:07:52.519701 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 134, in _render<br>
[Fri Feb 12 02:07:52.519718 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return self.nodelist.render(context)<br>
[Fri Feb 12 02:07:52.519738 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 840, in render<br>
[Fri Feb 12 02:07:52.519757 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] bit = self.render_node(node, context)<br>
[Fri Feb 12 02:07:52.519769 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 854, in render_node<br>
[Fri Feb 12 02:07:52.519785 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] return node.render(context)<br>
[Fri Feb 12 02:07:52.519797 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py", line 24, in render<br>
[Fri Feb 12 02:07:52.519854 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] request = context["request"]<br>
[Fri Feb 12 02:07:52.519883 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] File "/usr/lib/python2.7/dist-packages/django/template/context.py", line 56, in __getitem__<br>
[Fri Feb 12 02:07:52.519966 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] raise KeyError(key)<br>
[Fri Feb 12 02:07:52.519990 2016] [:error] [pid 11379:tid 140284927817472] [remote <a href="http://192.168.1.65:16554" rel="noreferrer" target="_blank">192.168.1.65:16554</a>] KeyError: 'request'<br>
<br>
<br>
<br>
Any Ideas??<br>
<br>
<br>
Thanks.<br>
<br>
Agur bero bat,<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 - M 627 923 170 - F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba<br>
<br>
********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
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.<br>
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.<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>