[GeoNode-users] Failure during installation

Alessio Fabiani alessio.fabiani at geo-solutions.it
Thu Sep 14 11:06:06 PDT 2017


Don't know exactly how, but it looks like you updated the GeoNode core but
keeping the old "settings.py".

You should check the differences with this one

https://github.com/GeoNode/geonode/blob/master/geonode/settings.py

and add / modify the missing variables and should be good.

In your specific case the issue is with this set of variables here


https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L1030

which have been updated with the new pinax notification version.



Regards,

Alessio Fabiani

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

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.

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.

On Thu, Sep 14, 2017 at 8:02 PM, Enrique Cerrillo Cuenca <cerrillo at uevora.pt
> wrote:

> Thank you again, Alessio.
>
> I'm trying to import all the layers again. But a new error has come to
> light! I'm using the "manage.py importlayers" command and this is the
> output:
>
> Traceback (most recent call last):
>
>   File "/usr/src/app/geonode/layers/utils.py", line 687, in upload
>
>     metadata_uploaded_preserve=metadata_uploaded_preserve)
>
>   File "/usr/src/app/geonode/layers/utils.py", line 524, in file_upload
>
>     defaults=defaults
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py",
> line 127, in manager_method
>
>     return getattr(self.get_queryset(), name)(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/site-packages/modeltranslation/manager.py",
> line 389, in get_or_create
>
>     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py",
> line 407, in get_or_create
>
>     return self._create_object_from_params(lookup, params)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py",
> line 439, in _create_object_from_params
>
>     obj = self.create(**params)
>
>   File "/usr/local/lib/python2.7/site-packages/modeltranslation/manager.py",
> line 381, in create
>
>     return super(MultilingualQuerySet, self).create(**kwargs)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py",
> line 348, in create
>
>     obj.save(force_insert=True, using=self.db)
>
>   File "/usr/local/lib/python2.7/site-packages/polymorphic/models.py",
> line 90, in save
>
>     return super(PolymorphicModel, self).save(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 734, in save
>
>     force_update=force_update, update_fields=update_fields)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 771, in save_base
>
>     update_fields=update_fields, raw=raw, using=using)
>
>   File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
> line 189, in send
>
>     response = receiver(signal=self, sender=sender, **named)
>
>   File "/usr/src/app/geonode/base/models.py", line 1309, in
> resourcebase_post_save
>
>     instance.save()
>
>   File "/usr/local/lib/python2.7/site-packages/polymorphic/models.py",
> line 90, in save
>
>     return super(PolymorphicModel, self).save(*args, **kwargs)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 734, in save
>
>     force_update=force_update, update_fields=update_fields)
>
>   File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 771, in save_base
>
>     update_fields=update_fields, raw=raw, using=using)
>
>   File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
> line 189, in send
>
>     response = receiver(signal=self, sender=sender, **named)
>
>   File "/usr/src/app/geonode/social/signals.py", line 161, in
> notification_post_save_resource
>
>     send_notification(recipients, notice_type_label, {'resource':
> instance})
>
>   File "/usr/src/app/geonode/notifications_helper.py", line 67, in wrap
>
>     if settings.PINAX_NOTIFICATIONS_QUEUE_ALL:
>
>   File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py",
> line 49, in __getattr__
>
>     return getattr(self._wrapped, name)
>
> AttributeError: 'Settings' object has no attribute
> 'PINAX_NOTIFICATIONS_QUEUE_ALL'
>
>
> Any suggestion? Thanks again. Best regards,
>
> Enrique
>
> 2017-09-14 16:07 GMT+01:00 Alessio Fabiani <alessio.fabiani at geo-
> solutions.it>:
>
>> Quite strange, however just add
>>
>> GROUP_PRIVATE_RESOURCES = False
>>
>> to your local_settings.py (or settings.py)
>>
>> Regards,
>>
>> Alessio Fabiani
>>
>> ==
>> GeoServer Professional Services from the experts! Visit
>> http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Alessio Fabiani
>>
>> @alfa7691
>> Founder/Technical Lead
>>
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> 55054  Massarosa
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> (LU)
>> Italy
>> phone: +39 0584 962313 <+39%200584%20962313>
>> fax:     +39 0584 1660272 <+39%200584%20166%200272>
>> mob:   +39 331 6233686 <+39%20331%20623%203686>
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>
>> 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.
>>
>> 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.
>>
>> On Thu, Sep 14, 2017 at 5:05 PM, Enrique Cerrillo Cuenca <
>> cerrillo at uevora.pt> wrote:
>>
>>> Dear community,
>>>
>>> I had to reinstall geonode these days and I'm struggling with an error.
>>> The installation successes, but when I click on "Layers" I get the
>>> following error (see below for a traceback):
>>>
>>> In template /usr/src/app/geonode/templates/search/_type_filters.html,
>>> error at line 6
>>>    'Settings' object has no attribute 'GROUP_PRIVATE_RESOURCES'
>>>
>>> I have succeeded in completing all the stages of the installation.
>>>
>>> Thanks in advance,
>>>
>>> Enrique
>>>
>>>
>>> Environment:Request Method: GETRequest URL: ------------Django Version: 1.8.7Python Version: 2.7.9Installed Applications:('modeltranslation', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'django.contrib.humanize', 'django.contrib.gis', 'pagination', 'taggit', 'treebeard', 'friendlytagloader', 'geoexplorer', 'leaflet', 'django_extensions', 'autocomplete_light', 'mptt', 'djcelery', 'kombu.transport.django', 'storages', 'floppyforms', 'pinax_theme_bootstrap', 'django_forms_bootstrap', 'account', 'avatar', 'dialogos', 'agon_ratings', 'announcements', 'actstream', 'user_messages', 'tastypie', 'polymorphic', 'guardian', 'oauth2_provider', 'geonode.contrib.metadataxsl', 'geonode.people', 'geonode.base', 'geonode.layers', 'geonode.maps', 'geonode.proxy', 'geonode.security', 'geonode.social', 'geonode.catalogue', 'geonode.documents', 'geonode.api', 'geonode.groups', 'geonode.services', 'geonode.geoserver', 'geonode.upload', 'geonode.tasks')Installed Middleware:('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'pagination.middleware.PaginationMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'oauth2_provider.middleware.OAuth2TokenMiddleware')Template error:In template /usr/src/app/geonode/templates/search/_type_filters.html, error at line 6   'Settings' object has no attribute 'GROUP_PRIVATE_RESOURCES'   1 : {% load i18n %}   2 : {% load base_tags %}   3 : <nav class="filter">   4 :   <h4><a href="#" class="toggle toggle-nav"><i class="fa fa-chevron-down"></i>{% trans header %}</a></h4>   5 :   <ul class="nav" id="types">   6 :          {% facets as facets %}    7 :    8 :         {% for facet, count in facets.items %}   9 :         {% if count > 0 %}   10 :         <li>   11 :             <a id="{{ facet }}" data-value="{{ facet }}" data-filter="{{ filter }}" ng-click="multiple_choice_listener($event)">{{ facet|capfirst }}   12 :             <span class="badge pull-right">{{ count }}</span>   13 :             </a>   14 :         </li>   15 :         {% endif %}   16 :         {% endfor %}Traceback:File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response  164.                 response = response.render()File "/usr/local/lib/python2.7/site-packages/django/template/response.py" in render  158.             self.content = self.rendered_contentFile "/usr/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content  135.         content = template.render(context, self._request)File "/usr/local/lib/python2.7/site-packages/django/template/backends/django.py" in render  74.         return self.template.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  210.                     return self._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  135.         return compiled_parent._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  135.         return compiled_parent._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  135.         return compiled_parent._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  65.                 result = block.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  65.                 result = block.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  65.                 result = block.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render  576.             return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render  576.             return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render  576.             return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  159.                 return template.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  212.                 return self._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render  329.                 return nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render  159.                 return template.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  212.                 return self._render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render  202.         return self.nodelist.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  905.                 bit = self.render_node(node, context)File "/usr/local/lib/python2.7/site-packages/django/template/debug.py" in render_node  79.             return node.render(context)File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render  1229.                     context[self.target_var] = func(*resolved_args, **resolved_kwargs)File "/usr/src/app/geonode/base/templatetags/base_tags.py" in facets  169.         if settings.GROUP_PRIVATE_RESOURCES:File "/usr/local/lib/python2.7/site-packages/django/conf/__init__.py" in __getattr__  49.         return getattr(self._wrapped, name)Exception Type: AttributeError at /layers/
>>>
>>> Exception Value: 'Settings' object has no attribute
>>> 'GROUP_PRIVATE_RESOURCES'
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170914/3235f6c1/attachment-0001.html>


More information about the geonode-users mailing list