[GeoNode-users] Error creating superuser (gn2.4 on Debian)

Simone Dalmasso simone.dalmasso at gmail.com
Fri Jul 15 23:25:35 PDT 2016


Hi, if you pulled from the master branch then is a Dev version with some
changes. To create the db you have to use Python manage.py migrate.

If you want to stay with 2.4 then checkout the branch 2.4.x.

Hope this helps

Il venerdì 15 luglio 2016, Cristian Zamar <cristian_zamar at hotmail.com> ha
scritto:

> Hi all,
> I'm trying to install GeoNode 2.4 on Debian 8.5 following the manual
> installation from the docs:
>
> http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html
>
> Everything was going right until this step:
>
> *python manage.py createsuperuser*
>
> the error log is:
>
> Traceback (most recent call last):
>   File "manage.py", line 29, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 354, in execute_from_command_line
>     utility.execute()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 346, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 394, in run_from_argv
>     self.execute(*args, **cmd_options)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py",
> line 50, in execute
>     return super(Command, self).execute(*args, **options)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 445, in execute
>     output = self.handle(*args, **options)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py",
> line 105, in handle
>
> self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py",
> line 162, in get_by_natural_key
>     return self.get(**{self.model.USERNAME_FIELD: username})
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
> 127, in manager_method
>     return getattr(self.get_queryset(), name)(*args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
> line 328, in get
>     num = len(clone)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
> line 144, in __len__
>     self._fetch_all()
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
> line 965, in _fetch_all
>     self._result_cache = list(self.iterator())
>   File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
> line 238, in iterator
>     results = compiler.execute_sql()
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py",
> line 840, in execute_sql
>     cursor.execute(sql, params)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
> 79, in execute
>     return super(CursorDebugWrapper, self).execute(sql, params)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
> 64, in execute
>     return self.cursor.execute(sql, params)
>   File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line
> 98, in __exit__
>     six.reraise(dj_exc_type, dj_exc_value, traceback)
>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
> 64, in execute
>     return self.cursor.execute(sql, params)
> django.db.utils.ProgrammingError: no existe la relación «people_profile»
> LINE 1: ...ofile"."zipcode", "people_profile"."country" FROM "people_pr...
>                                                              ^
>
> I see the geonode database is empty (no tables). Am I missing any step?
> I've tried with *syncdb* but I got a similar error.
>
> Hope you can help me.
> Thanks in advance.
>
> *Lic. CRISTIAN R. ZAMAR*
> Developer - GIS Specialist
> +54 370 4271736
> linkedin <http://ar.linkedin.com/in/cristianzamar>
>
>
>

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


More information about the geonode-users mailing list