<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'>Thank you for this suggestion, I correctly add the column, however the problem remains:<br>layers, maps, documents, people and groups are present (and counted) but not listed<br>on click to each item.<br><br>Other hints? Or I only have to downgrade geonode to 2.4.0 as Simone suggested?<br><br>best<br><br>Eugenio<br><br><div><hr id="stopSpelling">From: alessio.fabiani@geo-solutions.it<br>Date: Thu, 3 Dec 2015 16:04:02 +0100<br>Subject: Re: [GeoNode-users] geonode no maps and layer<br>To: frippe12573@hotmail.com<br>CC: geonode-users@lists.osgeo.org<br><br><div dir="ltr">The easiest way to solve it without droppping all your data, is to connect directly to the geonode DB and add the "metadata_uploaded_preserve" column of type boolean to the table "base_resourcebase".<div><br></div><div>ALTER TABLE base_resourcebase ADD COLUMN metadata_uploaded_preserve boolean;</div></div><div class="ecxgmail_extra"><br clear="all"><div><div class="ecxgmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>==<br>GeoServer Professional Services from the experts! Visit<br><a href="http://goo.gl/NWWaa2" style="color:rgb(17,85,204);" target="_blank">http://goo.gl/NWWaa2</a> for more information.<br>==<br></div><div><br></div><div>Ing. Alessio Fabiani</div><div>@alfa7691</div><div>Founder/Technical Lead</div><div><br></div><div>GeoSolutions S.A.S.</div><div>Via Poggio alle Viti 1187</div><div>55054 Massarosa (LU)</div><div>Italy</div><div>phone: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39 331 6233686</div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div><div><br></div><div>-------------------------------------------------------</div><div><br></div><div><span lang="IT"><font size="1"><b>AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</b></font></span><BR><span lang="IT"><font size="1">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span><BR><span lang="IT"><font size="1"> </font></span><BR><font size="1">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font><BR></div></div></div></div></div></div></div></div>
<br><div class="ecxgmail_quote">On Thu, Dec 3, 2015 at 3:48 PM, Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hi all,<br><br>today I controlled my geonode home page. It seemed to work fine, since the home page<br>showed 15 layers and 5 maps. However if I click on layers, any layers appears in the list.<br>The same happens form maps and documents.<br><br>I tried to launch updatelayers with any result.<br>The I re-sync the DB and updatelayers, but no results, only an error:<br><br>python manage.py updatelayers<br>Not enabling BingMaps base layer as a BING_API_KEY is not defined in local_settings.py file.<br>Stopping process because --ignore-errors was not set and an error was found.<br>Traceback (most recent call last):<br> File "manage.py", line 28, in <module><br> execute_from_command_line(sys.argv)<br> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line<br> utility.execute()<br> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute<br> self.fetch_command(subcommand).run_from_argv(self.argv)<br> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv<br> self.execute(*args, **options.__dict__)<br> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute<br> output = self.handle(*args, **options)<br> File "/dati/geonode/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle<br> remove_deleted=remove_deleted)<br> File "/dati/geonode/geonode/geoserver/helpers.py", line 458, in gs_slurp<br> "bbox_y1": Decimal(resource.latlon_bbox[3])<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 154, in get_or_create<br> return self.get_queryset().get_or_create(**kwargs)<br> File "/usr/local/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341, in get_or_create<br> return super(MultilingualQuerySet, self).get_or_create(**kwargs)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 376, in get_or_create<br> return self.get(**lookup), False<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 304, in get<br> num = len(clone)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 77, in __len__<br> self._fetch_all()<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 857, in _fetch_all<br> self._result_cache = list(self.iterator())<br> File "/usr/local/lib/python2.7/dist-packages/polymorphic/query.py", line 264, in iterator<br> for o in base_iter:<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 220, in iterator<br> for row in compiler.results_iter():<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 713, in results_iter<br> for rows in self.execute_sql(MULTI):<br> File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 786, in execute_sql<br> cursor.execute(sql, params)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line 69, in execute<br> return super(CursorDebugWrapper, self).execute(sql, params)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line 53, in execute<br> return self.cursor.execute(sql, params)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__<br> six.reraise(dj_exc_type, dj_exc_value, traceback)<br> File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line 53, in execute<br> return self.cursor.execute(sql, params)<br>Exception: ('Failed to process reg2001_s_wgs84utm33', ProgrammingError('column base_resourcebase.metadata_uploaded_preserve does not exist\nLINE 1: ...ometry", "base_resourcebase"."metadata_uploaded", "base_reso...\n ^\n',))<br><br>Afterwords I updated also the geonode code from git, re-sync DB and updatelayer, but again the same error.<br>I checked the DB, the maps and layer are correctly described in the rows.<br><br>I think it is a connection problem between geonode and postgresql/postgis. Isn't it? If yes, how can I solve?<br><br>Thanks in advance<span class="ecxHOEnZb"><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">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></body>
</html>