[GeoNode-users] Error accesing geonode

David Alda Fernandez de Lezea dalda at hazi.eus
Tue Nov 17 23:25:29 PST 2015


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 


More information about the geonode-users mailing list