<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<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>---------------------------------------------------------------------------------------</div>
<div>
<h1 style="padding: 0px; margin: 0px; font-weight: normal; font-family: sans-serif;">
Exception at /syncgeogeo/runsync</h1>
<pre class="exception_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="meta" 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-attachment: 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/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-packages/pip-6.1.1-py2.7.egg',
 '/srv/www/geonode',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-linux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old',
 '/usr/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7/site-packages',
 '/usr/lib64/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-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>
<br>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>