[GeoNode-users] Geonode Install on Ubuntu 18.04

Jose Cáceres jose.atyus at gmail.com
Sat Dec 1 09:01:33 PST 2018


Hi,

I've been trying to deploy Geonode 2.10 on a Ubuntu 18.04 server using the
instructions provide here:
https://docs.google.com/document/d/1jNg2BKn2H9Haoyqpe7XkK_Nj-siL7PUlhP40hGi9OZ8/edit

However I'm getting the same error every time I try to run the command:

sudo WORKON_HOME=/my/opt_path/Envs/geonode
DJANGO_SETTINGS_MODULE=geonode.local_settings
GEONODE_ETC=/my/opt_path/geonode/geonode
GEOSERVER_DATA_DIR=/var/lib/tomcat8/webapps/geoserver/data geonode_updateip
-p localhost

I've change /my/opt_path/ for my own directory, but I get the following
error:

Traceback (most recent call last):
  File "/home/geoportal/Envs/geonode/bin/django-admin", line 11, in <module>
    sys.exit(execute_from_command_line())
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
    utility.execute()
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/base.py",
line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/core/management/base.py",
line 330, in execute
    output = self.handle(*args, **options)
  File
"/home/geoportal/geonode/geonode/base/management/commands/fixsitename.py",
line 39, in handle
    site = Site.objects.get_current()
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/contrib/sites/models.py",
line 63, in get_current
    return self._get_site_by_id(site_id)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/contrib/sites/models.py",
line 35, in _get_site_by_id
    site = self.get(pk=site_id)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/manager.py",
line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 374, in get
    num = len(clone)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 232, in __len__
    self._fetch_all()
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 1121, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/query.py",
line 53, in __iter__
    results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
  File
"/home/geoportal/Envs/geonode/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
line 899, in execute_sql
    raise original_exception
django.db.utils.ProgrammingError: relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...


Any help will be very much appreciated since I'm kind of stuck here.

Kind Regards,

José
-- 
José David Cáceres
Ingeniero Ambiental
Máster en Tecnologías de la Información Geográfica
e-mail: jose.atyus at gmail.com




[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Remitente
notificado con
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
01/12/18
11:00:26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20181201/80feef92/attachment.html>


More information about the geonode-users mailing list