<div dir="ltr">Hi Eugenio,<div><br></div><div>this is again an error that seems related to settings. Here the ipdb is the way to go to inspect the content of the map baselayers to see what is missing.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-13 18:24 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Simone,<br><br>unfortunately I cannot use apt-get install, since on that server I have an already running database postgresql+postgis and another geoserver.<br>I don't know what could happen over installing geonode and all its dependencies. That's why I'm using a manual installation, which is of course harder.<br><br>By the way, I followed your suggestion: I point my git repo on origin/2.4.x, in that way I think I have the stable version of geonode (<em>2.4.dev20151119194919</em>). The I delete the dbs (geonode and geonode_data) and I reinstalled the schemas by using:<br>python manage.py syncdb --noinput<br><br>Dataset upload works fine, (actually I had to modify line 68 of geonode/layers/models.py to let the system to catch my second geoserver (named geoserver2), however saving a maps give again the same error 500, which is referred to this line in the apache2 error.log:<br>[Wed Jan 13 18:07:07.078465 2016] [core:notice] [pid 14207] AH00052: child pid 19731 exit signal Segmentation fault (11)<br><br>As happened yesterday with the dev version of geonode, the segmentation fault did not produce a core dump, that's yield the things more difficult again.<br>Just as notice the saved map results in the list of the maps without thumb and metainfos, and by clicking on that I have the old error I had in October:<br>[Wed Jan 13 11:14:10.918272 2016] [:error] [pid 19871]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response<br>[Wed Jan 13 11:14:10.918313 2016] [:error] [pid 19871]     response = wrapped_callback(request, *callback_args, **callback_kwargs)<br>[Wed Jan 13 11:14:10.918368 2016] [:error] [pid 19871]   File "/dati/geonode/geonode/maps/views.py", line 112, in map_detail<br>[Wed Jan 13 11:14:10.918408 2016] [:error] [pid 19871]     config = map_obj.viewer_json(request.user)<br>[Wed Jan 13 11:14:10.918435 2016] [:error] [pid 19871]   File "/dati/geonode/geonode/utils.py", line 265, in viewer_json<br>[Wed Jan 13 11:14:10.918493 2016] [:error] [pid 19871]     str(int(keys[-1]) + 1)] = settings.MAP_BASELAYERS[0]['source']<br>[Wed Jan 13 11:14:10.918531 2016] [:error] [pid 19871] IndexError: list index out of range<br><br>As I stated yesterday I hadn't the package python-pyproj, maybe that's why I have no more the segmentation faults I had yesterday?<br><br>I'm idling around with find out any solution unfortunately...<br><br>E.<br><br><div><hr>From: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a><br>Date: Tue, 12 Jan 2016 18:24:24 +0100<br>Subject: Re: segmentation fault on saving maps (was error on saving maps, again!)<br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br>CC: <a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>; <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>; <a href="mailto:ingenieroariel@gmail.com" target="_blank">ingenieroariel@gmail.com</a><br><br><div dir="ltr">I suggest you to use the standard apt-get install geonode on ubuntu 14.04 (or the 2.4.x branch if you do manual installation) and not use the dev version.<div><br></div><div>Maybe then something went wrong with <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre-wrap">python-pyproj </span>and you need it.</div></div><div><br><div>2016-01-12 17:48 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi again,<br><br>I followed your suggestion, and I reinstalled geonode from scratch, so now I have the version <em>2.4.dev20160107090447.<br></em>Even with this version I had the problems on saving maps, by the way now the error does not produce the apache coredump.<br>In apache error.log I have the simple messages: <br>[Tue Jan 12 17:37:16.046941 2016] [core:notice] [pid 14207] AH00052: child pid 14666 exit signal Segmentation fault (11)<br><br>Had I try to reinstall the stable version I was trying before or the last one is ok as well?<br>However I tried to remove python-pyproj, but I discovered I haven't it. Is that correct?<br><br>E.<br><br><br><br><div><hr>From: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a><br>Date: Tue, 12 Jan 2016 17:04:17 +0100<span><br>Subject: Re: segmentation fault on saving maps (was error on saving maps, again!)<br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br></span>CC: <a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>; <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a>; <a href="mailto:ingenieroariel@gmail.com" target="_blank">ingenieroariel@gmail.com</a><div><div><br><br><div dir="ltr">Well,<div><br></div><div>I'm not sure that that was the right thing to do :)</div><div>Maybe you removed some necessary dependencies. Try to reinstall geonode and in case work only at the python package level like python-pyproj. </div><div><br></div><div>Anyway if you google around with those errors (not the gdb one, that is just a gdb bug) you will find some info.</div></div><div><br><div>2016-01-12 16:20 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Simone,<br><br>just tried to remove -purge proj-bin and proj-data (this operation removed also: gdal-bin libgdal1h liblwgeom-2.1.2 libmapserver1 libogdi3.2 libproj-dev libproj0 libspatialite5 mapserver-bin php5-mapscript postgis postgresql-9.3-postgis-2.1 python-gdal) and reinstall proj-bin and proj-data.<br>Unfortunately on saving maps I have the same segmentation fault, but slightly different in the final part:<br><br>sudo gdb apache2 -c /tmp/cores/core.apache2.20927.repoigg.1452611149<br>GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1<br>Copyright (C) 2014 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-linux-gnu".<br>Type "show configuration" for configuration details.<br>For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>.<br>Find the GDB manual and other documentation resources online at:<br><<a href="http://www.gnu.org/software/gdb/documentation/" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br>For help, type "help".<br>Type "apropos word" to search for commands related to "word"...<br>Reading symbols from apache2...Reading symbols from /usr/lib/debug//usr/sbin/apache2...done.<br>done.<br>[New LWP 20937]<br>[New LWP 20938]<br>[New LWP 20949]<br>[New LWP 20950]<br>[New LWP 20939]<br>[New LWP 20934]<br>[New LWP 20948]<br>[New LWP 20935]<br>[New LWP 20947]<br>[New LWP 20940]<br>[New LWP 20946]<br>[New LWP 20945]<br>[New LWP 20936]<br>[New LWP 20944]<br>[New LWP 20943]<br>[New LWP 20927]<br>[New LWP 20942]<br>[New LWP 20941]<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br><br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).<br><br>Core was generated by `/usr/sbin/apache2 -k start'.<br>Program terminated with signal SIGSEGV, Segmentation fault.<br>#0  __GI___libc_free (mem=0x160) at malloc.c:2929<br>2929    malloc.c: No such file or directory.<br>Traceback (most recent call last):<br>  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.<a href="http://so.6.0.19-gdb.py" target="_blank">so.6.0.19-gdb.py</a>", line 63, in <module><br>    from libstdcxx.v6.printers import register_libstdcxx_printers<br>ImportError: No module named 'libstdcxx'<br>(gdb)<br><br>Now it seems to be a memory problem....isn't it?<br>What can I do?<br><br>E.<br><br><div><hr>From: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a><br>Date: Tue, 12 Jan 2016 16:00:05 +0100<br>Subject: Re: segmentation fault on saving maps (was error on saving maps, again!)<br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br>CC: <a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>; <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br><br><div dir="ltr">Hi Eugenio,<div><br></div><div>the error could be this one</div><div><br></div><div><span style="font-size:12.8px">src/pj_gridcatalog.c: No such file or directory</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">which seems related to the PROJ.4/pyproj libraries. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Not sure what is wrong but try to reinstall them. Is the best I can tell :)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">good luck</span></div></div><div><br><div>2016-01-12 15:42 GMT+01:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Dear all,<br><br>I'm trying to go ahead  to solve my segmentation error on saving maps.<br>Just a brief summary: as wrote in the email here below (dated 04/12/2015)<br>I had a problem during the map saving.<br>Francesco suggested me to debug the apache coredump.<br>I got these lines during the gdb command run:<br><br> sudo gdb apache2 -c /tmp/cores/core.apache2.20926.repoigg.1452608854<br>GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1<br>Copyright (C) 2014 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-linux-gnu".<br>Type "show configuration" for configuration details.<br>For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>.<br>Find the GDB manual and other documentation resources online at:<br><<a href="http://www.gnu.org/software/gdb/documentation/" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br>For help, type "help".<br>Type "apropos word" to search for commands related to "word"...<br>Reading symbols from apache2...Reading symbols from /usr/lib/debug//usr/sbin/apache2...done.<br>done.<br>[New LWP 20955]<br>[New LWP 20963]<br>[New LWP 20961]<br>[New LWP 20958]<br>[New LWP 20965]<br>[New LWP 20957]<br>[New LWP 20964]<br>[New LWP 20956]<br>[New LWP 20962]<br>[New LWP 20959]<br>[New LWP 20926]<br>[New LWP 20966]<br>[New LWP 20960]<br>[New LWP 20951]<br>[New LWP 20954]<br>[New LWP 20953]<br>[New LWP 20952]<br>[New LWP 20933]<br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br><br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysql.so" does not match "/usr/lib/php5/20121212/mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/mysqli.so" does not match "/usr/lib/php5/20121212/mysqli.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug//usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).<br>warning: the debug information found in "/usr/lib/debug/usr/lib/php5/20121212/pdo_mysql.so" does not match "/usr/lib/php5/20121212/pdo_mysql.so" (CRC mismatch).<br><br>Core was generated by `/usr/sbin/apache2 -k start'.<br>Program terminated with signal SIGSEGV, Segmentation fault.<br>#0  pj_gc_apply_gridshift (defn=0x7f82098149e0, inverse=0, point_count=1, point_offset=1, x=0x7f820982e6a0, <br>    y=0x7f8209908f90, z=0x7f8209908fb0) at src/pj_gridcatalog.c:145<br>145    src/pj_gridcatalog.c: No such file or directory.<br>Traceback (most recent call last):<br>  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.<a href="http://so.6.0.19-gdb.py" target="_blank">so.6.0.19-gdb.py</a>", line 63, in <module><br>    from libstdcxx.v6.printers import register_libstdcxx_printers<br>ImportError: No module named 'libstdcxx'<br>(gdb)<br><br>Can those lines help to find out the problem, and of course solve it?<br><br>I got the same problem by using both geonode <em>2.4.dev20151119194919</em> and the last origin/master version.<br><br>Please let me know.<br><br>best<br>Eugenio<em> </em><br><br><div><hr>Subject: Re: [GeoNode-users] error on saving maps, again!<br>From: <a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a><br>Date: Sun, 6 Dec 2015 16:33:10 +0100<br>CC: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>; <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br><br>Eugenio,<div><br></div><div>a possible way to investigate more your problem is to attach httpd child process to gdb, cause it’s not reproducible. Follow instructions in this blog [1] and then look at the next crash.</div><div><br></div><div>Francesco</div><div><br></div><div>[1] <a href="http://sysadmin.carlusgg.com/?p=197" target="_blank">http://sysadmin.carlusgg.com/?p=197</a></div><div><br><div><div>Il giorno 06/dic/2015, alle ore 10:58, Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>> ha scritto:</div><br><blockquote>


<div><div dir="ltr">Hi Francesco,<br><br>I'm trying  to use geonode <em>2.4.dev20151203130956.<br></em>I tried to save both an empty map and one containing a wms from an external geoserver. Same error.<br>I also tried to upload a new layer for using it on a new map, but that geonode version misses the category choose, so I got error also on upload a shp file.<br><br>Any idea on the reason of my problem?<br><br>Eugenio <em><br></em><br><div><hr>Subject: Re: [GeoNode-users] error on saving maps, again!<br>From: <a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a><br>Date: Sat, 5 Dec 2015 18:03:21 +0100<br>CC: <a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>; <a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>To: <a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a><br><br>Hi Eugenio,<div><br></div><div>what version are you running? Did your unsaved map contain remote any layer from remote service?</div><div><br></div><div>Francesco</div><div><br><div><div>Il giorno 04/dic/2015, alle ore 16:51, Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>> ha scritto:</div><br><blockquote>


<div><div dir="ltr">Dear Simone and all,<br><br>I'm very sad to announce you that I'm getting the same error I got 1 month ago.<br>I got an error on saving maps, and I retrieve the same error in apache error.log:<br><br>[Fri Dec 04 16:40:39.271057 2015] [core:notice] [pid 15782] AH00051: child pid 26334 exit signal Segmentation fault (11), possible coredump in /etc/apache2<br><br>same stuff on segmentation fault!<br><br>I can consider me very unlucky on this installation.<br>Actually It was 10 days up to yesterday that I did not use geonode, but I'm sure it was working fine.<br>Yesterday I had the problem raised on the geonode user mailing list, so today I decided to upgrade all geonode system.<br>The installation went fine, but I have the same problem on saving map.<br><br>I don't understand what happen. <br>I solved this problem upgrading the server from 12.04 up to 14.04 version. This task was a bit time spending but all the applications<br>as well as geonode then worked fine. <br>In the meanwhile no important activities I performed on the server, only a few OS update.<br><br>Can you help me again?<br><br>Eugenio <br>                                      </div></div>
_______________________________________________<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" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br></blockquote></div><br></div></div>                                       </div></div>
</blockquote></div><br></div></div><span><font color="#888888">                                       </font></span></div></div><span><font color="#888888">
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Simone </div>
</font></span></div></div>                                        </div></div>
</blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>Simone </div>
</font></span></div></div></div></div><span class="HOEnZb"><font color="#888888">                                     </font></span></div></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Simone </div>
</font></span></div></div>                                        </div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>