[GeoNode-users] Geonode Install on Ubuntu 18.04
Toni Schönbuchner
toni.schoenbuchner at csgis.de
Sat Dec 1 12:08:46 PST 2018
Hi Jose,
does your local_settings file has the correct database credentials?
also before when you run
DJANGO_SETTINGS_MODULE=geonode.local_settings paver reset; \
paver setup; \
paver sync; \
python manage.py collectstatic --noinput
?
Cheers,
Toni
> Am 01.12.2018 um 21:00 schrieb geonode-users-request at lists.osgeo.org:
>
> Today's Topics:
>
> 1. Geonode Install on Ubuntu 18.04 (Jose Cáceres)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 1 Dec 2018 11:01:33 -0600
> From: Jose Cáceres <jose.atyus at gmail.com>
> To: geonode-users at lists.osgeo.org
> Subject: [GeoNode-users] Geonode Install on Ubuntu 18.04
> Message-ID:
> <CAEDNwnNM06huxrOTHBTWzYsmfZv6R5U_duukQaY5ytG74aNgRg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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...
More information about the geonode-users
mailing list