<div dir="ltr">Glad you solved,<div><br></div><div>not sure about what's the best way to do that, maybe not directly through the admin but it can be a "fake" admin. A django view, password protected that responds only to the url /admin/updatelayers.</div><div>This url should be one of the first in the url mappings.</div><div><br></div><div>But try to take a look at the django documentation anyway.</div><div><br></div><div>Best</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-12 11:21 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 Simone,
<div><br>
</div>
<div>thanks, it solved, there were some thumbnails, previously saved from an other user and it was not possible for Apache to overwrite them; deleted and now it is working.</div>
<div><br>
</div>
<div>By the way my app now is working  through a specific url (<baseurl>/updatelayers), is it possible to include this management app under the admin interface (eg. <span style="font-size:13.3333px"><baseurl>/</span><span style="font-size:10pt">admin/<wbr>updatelayers)
 ? can you give me some hints or documentation to work on this.</span></div>
<div><br>
</div>
<div>Super thanks and regards,</div>
<div><br>
</div>
<div>Martino.</div>
<div><br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_-1767413393683035794divRpF804381" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> BONI Martino (JRC-ISPRA-EXT)<br>
<b>Sent:</b> 12 May 2017 10:21<br>
<b>To:</b> Simone Dalmasso<br>
<b>Cc:</b> <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<b>Subject:</b> RE: [GeoNode-devel] GeoNode UpdateLayers in Admin interface<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Simone,
<div><br>
</div>
<div>thanks for your reply, I will check the folder and file permission and let you know if this fixes the issue.</div>
<div><br>
</div>
<div>Thanks for your time.</div>
<div><br>
</div>
<div>Martino.</div>
<div><span style="font-size:10pt"><br>
</span></div>
<div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_-1767413393683035794divRpF543423" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Simone Dalmasso [<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>]<br>
<b>Sent:</b> 11 May 2017 21:16<br>
<b>To:</b> BONI Martino (JRC-ISPRA-EXT)<br>
<b>Cc:</b> <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [GeoNode-devel] GeoNode UpdateLayers in Admin interface<br>
</font><br>
</div>
<div></div>
<div>
<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><wbr>></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_-1767413393683035794m_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_-1767413393683035794m_3366219356881403305meta" style="padding:0px;margin:0px;border:none;border-collapse:collapse;width:1863px;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-pack<wbr>ages/pip-6.1.1-py2.7.egg',
 '/srv/www/geonode',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-lin<wbr>ux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old'<wbr>,
 '/usr/lib64/python2.7/lib-dynl<wbr>oad',
 '/usr/lib64/python2.7/site-pac<wbr>kages',
 '/usr/lib64/python2.7/site-pac<wbr>kages/gtk-2.0',
 '/usr/lib/python2.7/site-packa<wbr>ges',
 '/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" target="_blank">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/mailma<wbr>n/listinfo/geonode-devel</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-1767413393683035794gmail_signature">Simone </div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>