[GeoNode-users] Error accesing geonode

Simone Dalmasso simone.dalmasso at gmail.com
Wed Nov 18 01:36:54 PST 2015


Ah! now I see.

Yes you used the wrong project. I suggest you to use the geonode from
ppa:geonode/testing. It is the 2.4 rc2. We are going to release the stable
in few days though.

2015-11-18 10:16 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:

> Hi,
>
> I don't think so, unless I've made the mistake of editing the wrong file
> since the beginning...
>
> After the installation I began to edit the file local_settings.py under
> /etc/geonode. I changed GeServer urls, added different base layers,
> activated email registration and so on.
>
> I guess is the right one.
>
> What I'm thinking is that I installed geonode from apt-get which is 2.0.1
> version and when I followed the steps for customizing the line
>
> django-admin startproject my_geonode --template=
> https://github.com/GeoNode/geonode-project/archive/master.zip -epy,rst
>
> does download the correct templates for my version? Because this is the
> only thing different that I've noticed.
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: miércoles, 18 de noviembre de 2015 9:02
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> David,
> was the PRINTNG in the local_settings?
> my suspect is that the etc settings is old and comes from an older
> installation, is that possible?
> Make sure it is similar to
> https://github.com/GeoNode/geonode/blob/master/geonode/local_settings.py.sample
>
> 2015-11-18 8:56 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> Hi,
>
> No way man. After doing what you said, I restarted the web server and
> tried to visit geonode's main page but I get 500 error. This is the output:
>
> [Wed Nov 18 08:47:04 2015] [notice] caught SIGTERM, shutting down
> [Wed Nov 18 01:47:04 2015] [error] Exception TypeError: "'NoneType' object
> is not callable" in <bound method LGEOS320.__del__ of
> <shapely.geos.LGEOS320 object at 0x7f492fa1e258>> ignored
> Error opening file for reading: Permission denied
> [Wed Nov 18 08:47:05 2015] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3
> Python/2.7.3 configured -- resuming normal operations
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65] mod_wsgi
> (pid=11385): Exception occurred processing WSGI script
> '/var/www/geonode/wsgi/geonode.wsgi'.
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65] Traceback (most
> recent call last):
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line
> 187, in __call__
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  self.load_middleware()
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
> 47, in load_middleware
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     mw_instance =
> mw_class()
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/middleware/locale.py", line
> 24, in __init__
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     for
> url_pattern in get_resolver(None).url_patterns:
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line
> 365, in url_patterns
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     patterns =
> getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line
> 360, in urlconf_module
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  self._urlconf_module = import_module(self.urlconf_name)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line
> 40, in import_module
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  __import__(name)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/urls.py", line 30, in
> <module>
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     from
> geonode.api.urls import api
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/api/urls.py", line 3, in
> <module>
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     from .api
> import TagResource, TopicCategoryResource, ProfileResource, \\
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/api/api.py", line 188, in
> <module>
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     class
> ProfileResource(ModelResource):
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/api/api.py", line 276, in
> ProfileResource
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     class Meta:
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/api/api.py", line 277, in
> Meta
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     queryset =
> get_user_model().objects.exclude(username='AnonymousUser')
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py",
> line 127, in get_user_model
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     user_model =
> get_model(app_label, model_name)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line
> 271, in get_model
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  self._populate()
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line
> 75, in _populate
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  self.load_app(app_name, True)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/loading.py", line
> 99, in load_app
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     models =
> import_module('%s.models' % app_name)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line
> 40, in import_module
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  __import__(name)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/upload/models.py", line 28,
> in <module>
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     from
> geonode.geoserver.helpers import gs_uploader, ogc_server_settings
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 1548, in <module>
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  ogc_server_settings = OGC_Servers_Handler(settings.OGC_SERVER)['default']
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 1349, in __getitem__
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
>  self.ensure_valid_configuration(alias)
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 1319, in ensure_valid_configuration
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]     raise
> ImproperlyConfigured("The PRINTNG_ENABLED setting has been removed, use
> 'PRINT_NG_ENABLED' instead.")
> [Wed Nov 18 01:47:17 2015] [error] [client 192.168.1.65]
> ImproperlyConfigured: The PRINTNG_ENABLED setting has been removed, use
> 'PRINT_NG_ENABLED' instead.
> u0899dal at Geonode:/var/log/apache2$
>
> Then I changed  PRINTNG_ENABLED to PRINT_NG_ENABLED (I don't know why do I
> have to this because it was working fine after the everything started to
> crash down) but I get the following error:
>
> [Wed Nov 18 08:52:48 2015] [notice] caught SIGTERM, shutting down
> Error opening file for reading: Permission denied
> [Wed Nov 18 08:52:49 2015] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3
> Python/2.7.3 configured -- resuming normal operations
> [Wed Nov 18 01:53:06 2015] [error] Internal Server Error: /
> [Wed Nov 18 01:53:06 2015] [error] Traceback (most recent call last):
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
> 137, in get_response
> [Wed Nov 18 01:53:06 2015] [error]     response = response.render()
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line
> 105, in render
> [Wed Nov 18 01:53:06 2015] [error]     self.content = self.rendered_content
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/response.py", line
> 82, in rendered_content
> [Wed Nov 18 01:53:06 2015] [error]     content = template.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     return self._render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error]     return self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 123, in render
> [Wed Nov 18 01:53:06 2015] [error]     return
> compiled_parent._render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error]     return self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 123, in render
> [Wed Nov 18 01:53:06 2015] [error]     return
> compiled_parent._render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error]     return self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 62, in render
> [Wed Nov 18 01:53:06 2015] [error]     result =
> block.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 891,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     output =
> self.filter_expression.resolve(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 585,
> in resolve
> [Wed Nov 18 01:53:06 2015] [error]     obj = self.var.resolve(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 735,
> in resolve
> [Wed Nov 18 01:53:06 2015] [error]     value =
> self._resolve_lookup(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 789,
> in _resolve_lookup
> [Wed Nov 18 01:53:06 2015] [error]     current = current()
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 72, in super
> [Wed Nov 18 01:53:06 2015] [error]     return
> mark_safe(self.render(self.context))
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 62, in render
> [Wed Nov 18 01:53:06 2015] [error]     result =
> block.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 155, in render
> [Wed Nov 18 01:53:06 2015] [error]     return
> self.render_template(self.template, context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 137, in render_template
> [Wed Nov 18 01:53:06 2015] [error]     output = template.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     return self._render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error]     return self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error]     bit = self.render_node(node,
> context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error]     return node.render(context)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py",
> line 304, in render
> [Wed Nov 18 01:53:06 2015] [error]     if match:
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line
> 100, in __nonzero__
> [Wed Nov 18 01:53:06 2015] [error]     self._fetch_all()
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line
> 857, in _fetch_all
> [Wed Nov 18 01:53:06 2015] [error]     self._result_cache =
> list(self.iterator())
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line
> 220, in iterator
> [Wed Nov 18 01:53:06 2015] [error]     for row in compiler.results_iter():
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py",
> line 713, in results_iter
> [Wed Nov 18 01:53:06 2015] [error]     for rows in self.execute_sql(MULTI):
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py",
> line 786, in execute_sql
> [Wed Nov 18 01:53:06 2015] [error]     cursor.execute(sql, params)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line
> 53, in execute
> [Wed Nov 18 01:53:06 2015] [error]     return self.cursor.execute(sql,
> params)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 99, in
> __exit__
> [Wed Nov 18 01:53:06 2015] [error]     six.reraise(dj_exc_type,
> dj_exc_value, traceback)
> [Wed Nov 18 01:53:06 2015] [error]   File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py", line
> 53, in execute
> [Wed Nov 18 01:53:06 2015] [error]     return self.cursor.execute(sql,
> params)
> [Wed Nov 18 01:53:06 2015] [error] ProgrammingError: column
> announcements_announcement.level does not exist
> [Wed Nov 18 01:53:06 2015] [error] LINE 1: ...ment"."id",
> "announcements_announcement"."title", "announcem...
> [Wed Nov 18 01:53:06 2015] [error]
>                       ^
> [Wed Nov 18 01:53:06 2015] [error]
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65] mod_wsgi
> (pid=11661): Exception occurred processing WSGI script
> '/var/www/geonode/wsgi/geonode.wsgi'.
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65] Traceback (most
> recent call last):
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line
> 206, in __call__
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     response =
> self.get_response(request)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
> 194, in get_response
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     response =
> self.handle_uncaught_exception(request, resolver, sys.exc_info())
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
> 236, in handle_uncaught_exception
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> callback(request, **param_dict)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line
> 99, in _wrapped_view
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     response =
> view_func(request, *args, **kwargs)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/views/defaults.py", line 46,
> in server_error
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> http.HttpResponseServerError(template.render(Context({})))
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140,
> in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> self._render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     bit =
> self.render_node(node, context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> node.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 53, in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     result =
> self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     bit =
> self.render_node(node, context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> node.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 155, in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> self.render_template(self.template, context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py",
> line 137, in render_template
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     output =
> template.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 140,
> in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> self._render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 134,
> in _render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> self.nodelist.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 840,
> in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     bit =
> self.render_node(node, context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 854,
> in render_node
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     return
> node.render(context)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/announcements/templatetags/announcements_tags.py",
> line 24, in render
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     request =
> context["request"]
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]   File
> "/usr/local/lib/python2.7/dist-packages/django/template/context.py", line
> 56, in __getitem__
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65]     raise
> KeyError(key)
> [Wed Nov 18 01:53:06 2015] [error] [client 192.168.1.65] KeyError:
> 'request'
> u0899dal at Geonode:/var/log/apache2$
>
> I'm running out of ideas.
>
> Regards,
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: miércoles, 18 de noviembre de 2015 8:35
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> ok then create the symlink:
> $ sudo ln -sf
> /etc/geonode/local_settings.py /usr/local/lib/python2.7/dist-packages/geonode/local_settings.py
> that points to /etc/geonode/local_settings.py
>
> restart the web server and you should be ok
>
> 2015-11-18 8:25 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> Hi,
>
> In the mentioned directory there's no "local_setttings.py" but there is a
> settings.py which has another GeoNode set up as I can see. Here's the
> content of the directory:
>
> u0899dal at Geonode:/usr/local/lib/python2.7/dist-packages/geonode$ ls -al
> total 264
> drwxr-sr-x  23 root staff  4096 nov 13 14:23 .
> drwxrwsr-x 107 root staff  4096 nov 13 14:20 ..
> drwxr-sr-x   2 root staff  4096 nov 13 14:19 api
> drwxr-sr-x   6 root staff  4096 nov 13 14:19 base
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 catalogue
> -rw-r--r--   1 root staff   314 nov 13 14:17 celery_app.py
> -rw-r--r--   1 root staff   477 nov 13 14:19 celery_app.pyc
> -rw-r--r--   1 root staff  3018 nov 13 14:17 context_processors.py
> -rw-r--r--   1 root staff  1874 nov 13 14:19 context_processors.pyc
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 contrib
> drwxr-sr-x   5 root staff  4096 nov 13 14:19 documents
> drwxr-sr-x   3 root staff  4096 nov 13 14:19 geoserver
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 groups
> -rw-r--r--   1 root staff  1291 nov 13 14:17 __init__.py
> -rw-r--r--   1 root staff  1195 nov 13 14:19 __init__.pyc
> drwxr-sr-x   5 root staff  4096 nov 13 14:19 layers
> drwxr-sr-x  38 root staff  4096 nov 13 14:19 locale
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 maps
> -rw-r--r--   1 root staff  1192 nov 13 14:17 middleware.py
> -rw-r--r--   1 root staff  1832 nov 13 14:19 middleware.pyc
> drwxr-sr-x   5 root staff  4096 nov 13 14:19 people
> drwxr-sr-x   2 root staff  4096 nov 13 14:19 proxy
> drwxr-sr-x   3 root staff  4096 nov 13 14:19 security
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 services
> -rw-r--r--   1 root staff 26032 nov 13 14:17 settings.py
> -rw-r--r--   1 root staff 18850 nov 13 14:19 settings.pyc
> -rw-r--r--   1 root staff  1218 nov 13 14:17 sitemap.py
> -rw-r--r--   1 root staff  1336 nov 13 14:19 sitemap.pyc
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 social
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 static
> drwxr-sr-x  21 root staff  4096 nov 13 14:23 static_root
> drwxr-sr-x   2 root staff  4096 nov 13 14:19 tasks
> drwxr-sr-x  13 root staff  4096 nov 13 14:19 templates
> drwxr-sr-x   2 root staff  4096 nov 13 14:19 tests
> drwxr-sr-x   4 root staff  4096 nov 13 14:19 upload
> -rw-r--r--   1 root staff  5638 nov 13 14:17 urls.py
> -rw-r--r--   1 root staff  3999 nov 13 14:19 urls.pyc
> -rw-r--r--   1 root staff 21450 nov 13 14:17 utils.py
> -rw-r--r--   1 root staff 21371 nov 13 14:19 utils.pyc
> -rw-r--r--   1 root staff  2623 nov 13 14:17 version.py
> -rw-r--r--   1 root staff  2268 nov 13 14:19 version.pyc
> -rw-r--r--   1 root staff  3927 nov 13 14:17 views.py
> -rw-r--r--   1 root staff  3385 nov 13 14:19 views.pyc
> -rw-r--r--   1 root staff  1105 nov 13 14:17 wsgi.py
> -rw-r--r--   1 root staff   362 nov 13 14:19 wsgi.pyc
> u0899dal at Geonode:/usr/local/lib/python2.7/dist-packages/geonode$
>
>
> Regards,
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: martes, 17 de noviembre de 2015 18:05
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> Hi,
> there is a symlink in
> /usr/local/lib/python2.7/dist-packages/geonode/local_settings.py that
> points to /etc/geonode/local_settings.py.
>
> 2015-11-17 9:27 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> Hi again,
>
> In theory, the local_settigns.py does not have errors as it was working
> before the change.. Where is referenced from python the file
> /etc/geonode/local_settings.py??
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: lunes, 16 de noviembre de 2015 10:47
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> Ok then the /etc/geonode/local_settings.py file is not read correctly.
>
> The customization process that you used does not modify at all the geonode
> installation and to revert to a vanilla geonode it's enough to just point
> apache to the correct wsgi. So it must be something with the settings. Also
> a syntax erro in the local_settings could be the cause.
>
> 2015-11-16 10:40 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> I think I'm pointing to the right one:
>
> /etc/apache2/sites-available/geonode
>
> WSGIProcessGroup geonode
>     WSGIPassAuthorization On
>     WSGIScriptAlias / /var/www/geonode/wsgi/geonode.wsgi
>
>     <Directory "/var/www/geonode/">
>        Order allow,deny
>         Options Indexes FollowSymLinks
>         Allow from all
>         IndexOptions FancyIndexing
>     </Directory>
>
> Still getting the same error.
>
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: lunes, 16 de noviembre de 2015 10:00
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> Maybe apache is still pointing to the wrong wsgi file, not the original
> geonode. Also try to turn on debug in your settings, you will discover if
> they are actually used and in case yes where the error is.
>
> 2015-11-16 9:44 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> Hi Simone,
>
> I had it working normally before I started modifying all the look and feel
> part. Indeed, I haven't changed anything to pint to sqllite.
>
> I also have my local_settigns.py customized and it was working fine. How
> can I point the app to my settings file ?
>
> By the way I forgot to put the link with the instructions I followed:
> https://geonode.readthedocs.org/en/master/tutorials/admin/customize_admin/setup_admin.html#customize-setup-admin
>
>
> Agur bero bat,
>
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 – M 627 923 170 – F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> De: Simone Dalmasso [mailto:simone.dalmasso at gmail.com]
> Enviado el: lunes, 16 de noviembre de 2015 9:37
> Para: David Alda Fernandez de Lezea
> CC: geonode-users at lists.osgeo.org
> Asunto: Re: [GeoNode-users] Error accesing geonode
>
> Hi David,
>
> it seems that your settings file is not configured with the correct
> database. Is trying to access a file so it's likely that is configured to
> use sqllite.
>
> Regards
>
> 2015-11-16 9:25 GMT+01:00 David Alda Fernandez de Lezea <dalda at hazi.eus>:
> Hi list,
>
> I've been trying to customize the look and feel of my geonode following
> the instructions in  . After configuring several options and not achieving
> to get anything working y decide to rollback, but now while accessing my
> geonode app y get the following error:
>
> OperationalError at /
> unable to open database file
> Request Method: GET
> Request URL:    http://192.168.1.190/
> Django Version: 1.6.10
> Exception Type: OperationalError
> Exception Value:
> unable to open database file
> Exception Location:
>  /usr/local/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py
> in get_new_connection, line 347
> Python Executable:      /usr/bin/python
> Python Version: 2.7.3
> Python Path:
> ['/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-linux2',
>  '/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/PIL',
>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>  '/usr/lib/pymodules/python2.7',
>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-client',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
>  '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
>  '/var/www']
> Server time:    Mon, 16 Nov 2015 02:16:42 -0600
>
> ......
>
> I can access GeoServer though.
>
> Any ideas? Thanks in advance.
>
> Regards,
>
> Agur bero bat,
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> dalda at hazi.eus | www.hazi.eus
> T 945 003 240 - M 627 923 170 - F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
>
> *********************  LEGE OHARRA   *******************   AVISOLEGAL
> *******************   DISCLAIMER   *****************************
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
>
> --
> Simone
>
>
>
>
> --
> Simone
>
>
>
>
> --
> Simone
>
>
>
>
> --
> Simone
>
>
>
>
> --
> Simone
>
>
>
>
> --
> Simone
>



-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151118/05785378/attachment-0001.html>


More information about the geonode-users mailing list