<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Simone,<br><br>I remember this your suggestion, but I don't know how to use the line you suggested ( I never debugged python).<br>However on dev server I got problem on login, since when I try to raise the error during the map saving geonode require me to login,<br>and then I got the 404 error...<br><br>Con you help me?<br>E.<br><br><div><hr id="stopSpelling">From: simone.dalmasso@gmail.com<br>Date: Thu, 29 Oct 2015 09:44:04 +0100<br>Subject: Re: [GeoNode-users] segmentation fault while I save a map<br>To: frippe12573@hotmail.com<br>CC: ingenieroariel@gmail.com; geonode-users@lists.osgeo.org<br><br><div dir="ltr">Eugenio, now that you are running with the dev server you should use ipdb to debug the content of MAP_BASELAYERS.<div><br></div><div>add "import ipdb; ipdb.set_trace()"</div><div><br></div><div>then do the operation that rises the error, the terminal will stop in that point and you'll be able to inspect all the variables.</div><div><br></div><div>my suspect is that the settings are not correct somehow.</div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">2015-10-29 9:38 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi Ariel,<br><br>actually I sort out better the configuration file, and now I tested your command:<span><br><br>python manage.py runserver my_server_name:8000<br><br></span>on click on one map listed I got the following error lines:<br><br>Traceback (most recent call last):<br> File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response<br> response = wrapped_callback(request, *callback_args, **callback_kwargs)<br> File "/dati/geonode/geonode/maps/views.py", line 112, in map_detail<br> config = map_obj.viewer_json(request.user)<br> File "/dati/geonode/geonode/utils.py", line 265, in viewer_json<br> str(int(keys[-1]) + 1)] = settings.MAP_BASELAYERS[0]['source']<br>IndexError: list index out of range<br>[29/Oct/2015 03:21:18] "GET /maps/8 HTTP/1.1" 500 139436<br><br>Regarding the saving map operation currently I'm not able to test the operation in this mode, since I have a problem on login to django,<br>I have:<br>[29/Oct/2015 03:36:06] "POST /account/ajax_login HTTP/1.1" 400 32<br><br>hints on that?<br><br>best<span class="ecxHOEnZb"><font color="#888888"><br><br>Eugenio<br></font></span><div class="ecxhm ecxHOEnZb"><br></div><div><div class="ecxhm ecxHOEnZb"><hr>From: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br>To: <a href="mailto:ingenieroariel@gmail.com" target="_blank">ingenieroariel@gmail.com</a><br>CC: <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>Subject: RE: [GeoNode-users] segmentation fault while I save a map<br>Date: Wed, 28 Oct 2015 18:04:58 +0100</div><div><div class="h5"><br><br>
<div dir="ltr">Hi,<br><br>I run the command you suggested me:<br><br>python manage.py runserver my_server_name:8000<br>Validating models...<br><br>0 errors found<br>October 28, 2015 - 12:03:02<br>Django version 1.6.11, using settings 'geonode.settings'<br>Starting development server at <a href="http://my_server_name:8000/" target="_blank">http://my_server_name:8000/</a><br>Quit the server with CONTROL-C.<br><br>then I tried to male the same operation, saving a new map, but I had not a traceback on the terminal.<br><br>E.<br><br><div><hr>From: <a href="mailto:ingenieroariel@gmail.com" target="_blank">ingenieroariel@gmail.com</a><br>Date: Wed, 28 Oct 2015 11:33:40 -0500<br>Subject: Re: [GeoNode-users] segmentation fault while I save a map<br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br>CC: <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><br><div dir="ltr">Eugenio,<div><br></div><div>Run the site with manage.py runserver <a href="http://0.0.0.0:8000" target="_blank">0.0.0.0:8000</a> (and fixe ip accordingly) and then try to save.</div><div><br></div><div>This time you would get a traceback on the terminal that mae be easier to debug.</div><div><br></div><div>-a</div></div><div><br><div>On Wed, Oct 28, 2015 at 11:17 AM, Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Dear all,<br><br>unfortunately I am here again with the same problem I had 2 or 3 weeks ago.<br>The main problem is when I save a map I got a 500 server error, which is referred to the following line in the apache2 error log:<br><br>[Wed Oct 28 16:50:10.835817 2015] [core:notice] [pid 18289] AH00052: child pid 18734 exit signal Segmentation fault (11)<br><br>Actually the map is not saved, however it appears in the map list, without the thumb. <br>If I click on such map I have the page error:<br><br><h1>IndexError at /maps/6</h1>
<pre>list index out of range</pre>
<table><tbody><tr>
<th>Request Method:</th>
<td>GET</td>
</tr>
<tr>
<th>Request URL:</th>
<td><a href="http://my_server_name/maps/6" target="_blank">http://my_server_name/maps/6</a></td>
</tr>
<tr>
<th>Django Version:</th>
<td>1.6.11</td>
</tr>
<tr>
<th>Exception Type:</th>
<td>IndexError</td>
</tr>
<tr>
<th>Exception Value:</th>
<td><pre>list index out of range</pre></td>
</tr>
<tr>
<th>Exception Location:</th>
<td>/dati/geonode/geonode/utils.py in viewer_json, line 265</td>
</tr>
<tr>
<th>Python Executable:</th>
<td>/usr/bin/python</td>
</tr>
<tr>
<th>Python Version:</th>
<td>2.7.6</td>
</tr>
<tr>
<th>Python Path:</th>
<td><pre>['/usr/local/lib/python2.7/dist-packages/pip-7.1.2-py2.7.egg',
'/dati/geonode',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/pymodules/python2.7',
'/home/eugenio']</pre></td>
</tr>
<tr>
<th>Server time:</th>
<td>Wed, 28 Oct 2015 10:50:54 -0500</td></tr></tbody></table><br>As you suggested I tested an installation on vagrant box (ubuntu server 14.04, apache2.4.7, tomcat7 and postgresql9.3, all installed as packages). This test works fine, I had not the error on saving maps.<br><br>So I updated my server, now I have:<br>ubuntu 14.04, apache 2.4.7, postgresql9.3+postgis2.1 installed as packages and tomcat7 installed manually.<br>After the syncdb problem (solved) I installed geonode.<br>Everything seems to work fine: I'm able to upload layers, I'm able to create the maps even choosing the layers uploaded, but I got again the same ewrror on saving maps.<br><br>Here I attached the local_setting.py file and the apache2 virtualhost config.<br>During the configuration I also follow the instructions regarding 'Configuring GeoServer' which is in the end, inserting the context param GEONODE_BASE_URL and the URL (my_server_name) in web.xml and I put my_server_name in the config.xml as indicated.<br><br>Actually, after many many attempt I'm giving up hope...<br><br>thanks for the possible hints<span><font color="#888888"><br><br>Eugenio<br> </font></span></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">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>
<br></blockquote></div><br></div></div> </div></div></div></div> </div></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="ecxgmail_signature">Simone </div>
</div></div> </div></body>
</html>