[GeoNode-users] Error installing 2.4.1 version. database does not exist

Federico Gianoli alpacagis at gmail.com
Wed Mar 8 08:54:47 PST 2017


Dear all,

I have a problem, I bought today an VP server and I have installed Ubuntu
14.04.

I tried to install Geonode (apt-get install geonode) as described in the
documentation.

Everything works fine but, at the end, when I set the geonode superuser I
have this error message:

Error: FATAL:  database "geonode" does not exist

Someone had the same issue?

Untill yesterday, on a VirtualMachine, following the same procedure like
100 times, I never had this issue.

Thanks a lot

Fede
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170308/dcc1e7c5/attachment.html>
-------------- next part --------------
federico at 34511:/root$ geonode createsuperuser
Not enabling BingMaps base layer as a BING_API_KEY is not defined in local_setti                                                                                                             ngs.py file.
Username: geonode
Traceback (most recent call last):
  File "/usr/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", li                                                                                                             ne 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", li                                                                                                             ne 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 2                                                                                                             42, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 2                                                                                                             85, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/management/commands                                                                                                             /createsuperuser.py", line 102, in handle
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(user                                                                                                             name)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py", line 16                                                                                                             7, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 151,                                                                                                              in get
    return self.get_queryset().get(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 304, i                                                                                                             n get
    num = len(clone)
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 77, in                                                                                                              __len__
    self._fetch_all()
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 857, i                                                                                                             n _fetch_all
    self._result_cache = list(self.iterator())
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 220, i                                                                                                             n iterator
    for row in compiler.results_iter():
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line                                                                                                              713, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line                                                                                                              785, in execute_sql
    cursor = self.connection.cursor()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             62, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             32, in _cursor
    self.ensure_connection()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             27, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit                                                                                                             __
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             27, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             15, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/                                                                                                             base.py", line 115, in get_new_connection
    return Database.connect(**conn_params)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in con                                                                                                             nect
    connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  database "geonode" does not exist

federico at 34511:/root$ django.db.utils.OperationalError: FATAL:  database "geonod                                                                                                             e" does not exist^C
federico at 34511:/root$ Error: FATAL:  database "geonode" does not exist
bash: Error:: command not found
federico at 34511:/root$ Error: FATAL:  database "geonode" does not exist
bash: Error:: command not found
federico at 34511:/root$ ^C
federico at 34511:/root$ geonode createsuperuser
Not enabling BingMaps base layer as a BING_API_KEY is not defined in local_setti                                                                                                             ngs.py file.
Username: admin
Traceback (most recent call last):
  File "/usr/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", li                                                                                                             ne 399, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", li                                                                                                             ne 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 2                                                                                                             42, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 2                                                                                                             85, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/management/commands                                                                                                             /createsuperuser.py", line 102, in handle
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(user                                                                                                             name)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py", line 16                                                                                                             7, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 151,                                                                                                              in get
    return self.get_queryset().get(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 304, i                                                                                                             n get
    num = len(clone)
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 77, in                                                                                                              __len__
    self._fetch_all()
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 857, i                                                                                                             n _fetch_all
    self._result_cache = list(self.iterator())
  File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 220, i                                                                                                             n iterator
    for row in compiler.results_iter():
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line                                                                                                              713, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line                                                                                                              785, in execute_sql
    cursor = self.connection.cursor()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             62, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             32, in _cursor
    self.ensure_connection()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             27, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit                                                                                                             __
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             27, in ensure_connection
    self.connect()
  File "/usr/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 1                                                                                                             15, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/                                                                                                             base.py", line 115, in get_new_connection
    return Database.connect(**conn_params)
  File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179, in con                                                                                                             nect
    connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  database "geonode" does not exist


More information about the geonode-users mailing list