<div dir="ltr">Hi this error, as it says, is a permission denied in writing the thumbnail to the disk. Make sure the uploaded folder has write permissions to the user launching the command.</div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-11 19:11 GMT+02:00  <span dir="ltr"><<a href="mailto:Martino.BONI@ext.ec.europa.eu" target="_blank">Martino.BONI@ext.ec.europa.eu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Dear all,
<div><br>
</div>
<div>is it possible to call the command </div>
<div><br>
</div>
<div><i>python manage.py updatelayers</i></div>
<div><br>
</div>
<div>from the admin interface of GeoNode?</div>
<div><br>
</div>
<div>I tried to make my own app and call the command through <i>call_command()</i> in a view but I got the error reported below.</div>
<div>My skill with Django are quite poor.. does anyone have already add the command to the admin interface?</div>
<div><br>
</div>
<div>I would like to update my layers to the Postgis store that I have already set in geoserver and then publish the layer from geoserver, finally call the command. I need to do the upload in this way due to the huge size of some layers that I can not upload
 directly from geonode.. seems it goes in timeout.. but maybe I'm wrong. Moreover I do not have access to the command line of the production VM where the geonode is installed.</div>
<div><br>
</div>
<div>thanks in advance,</div>
<div><br>
</div>
<div>Martino.</div>
<div><br>
</div>
<div>------------------------------<wbr>------------------------------<wbr>---------------------------</div>
<div>
<h1 style="padding:0px;margin:0px;font-weight:normal;font-family:sans-serif">
Exception at /syncgeogeo/runsync</h1>
<pre class="m_3366219356881403305exception_value" style="padding:0px;margin-top:10px;margin-bottom:10px;font-size:1.5em;white-space:pre-wrap;font-family:sans-serif;color:rgb(102,102,102)">('Failed to process SGDB_PTR', IOError(13, 'Permission denied'))</pre>
<table class="m_3366219356881403305meta" style="padding:0px;margin:0px;border:none;border-collapse:collapse;width:1863px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;color:rgb(0,0,0);font-family:sans-serif;font-size:small">
<tbody style="padding:0px;margin:0px">
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Request Method:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">GET</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Request URL:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">....</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Django Version:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">1.6.10</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Exception Type:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">Exception</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Exception Value:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">
<pre style="padding:0px;margin-top:0px;margin-bottom:0px;font-size:10.5625px;white-space:pre-wrap">('Failed to process SGDB_PTR', IOError(13, 'Permission denied'))</pre>
</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Exception Location:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">/srv/www/geonode/geonode/base/<wbr>models.py in save_thumbnail, line 564</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Python Executable:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">/usr/bin/python</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Python Version:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">2.7.5</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Python Path:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">
<pre style="padding:0px;margin-top:0px;margin-bottom:0px;font-size:10.5625px;white-space:pre-wrap">['/usr/lib/python2.7/site-<wbr>packages/pip-6.1.1-py2.7.egg',
 '/srv/www/geonode',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-<wbr>linux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old'<wbr>,
 '/usr/lib64/python2.7/lib-<wbr>dynload',
 '/usr/lib64/python2.7/site-<wbr>packages',
 '/usr/lib64/python2.7/site-<wbr>packages/gtk-2.0',
 '/usr/lib/python2.7/site-<wbr>packages',
 '/usr/share/httpd']</pre>
</td>
</tr>
<tr style="padding:0px;margin:0px">
<th style="padding:2px 0.5em 2px 3px;margin:0px;vertical-align:top;width:12em;text-align:right;color:rgb(102,102,102)">
Server time:</th>
<td style="padding:2px 3px;margin:0px;vertical-align:top">Thu, 11 May 2017 18:47:12 +0200<br>
<br>
<br>
</td>
<td style="padding:2px 3px;margin:0px;vertical-align:top"></td>
<td><br>
</td></tr>
</tbody>
</table>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/geonode-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>