[GeoNode-users] Update geonode SPC

Federico Gianoli alpacagis at gmail.com
Fri Mar 5 08:13:56 PST 2021


Dear all,

I am trying to upgrade my geonode to the last release. The geonode is
installed via SPC docker setup.

When  I run the following line:

docker-compose -f docker-compose.yml up -d --build


The django container enters in a  restart loop and this is the log:

-----------------------------------------------------
STARTING DJANGO ENTRYPOINT
-----------------------------------------------------
start-stop-daemon: warning: failed to kill 16: No such process
Restarting memcached: memcached.
Running initialize.py...
-----------------------------------------------------
1. Waiting for PostgreSQL
-----------------------------------------------------
2. Running the migrations
No changes detected
Traceback (most recent call last):
  File
"/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line
82, in _execute
    return self.cursor.execute(sql)
psycopg2.errors.InsufficientPrivilege: permission denied to create
extension "postgis"
HINT:  Must be superuser to create this extension.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "scripts/spcgeonode/django/initialize.py", line 63, in <module>
    call_command('migrate', '--noinput')
  File
"/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py",
line 148, in call_command
    return command.execute(*args, **defaults)
  File
"/usr/local/lib/python3.7/site-packages/django/core/management/base.py",
line 364, in execute
    output = self.handle(*args, **options)
  File
"/usr/local/lib/python3.7/site-packages/django/core/management/base.py",
line 83, in wrapped
    res = handle_func(*args, **kwargs)
  File
"/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py",
line 85, in handle
    connection.prepare_database()
  File
"/usr/local/lib/python3.7/site-packages/django/contrib/gis/db/backends/postgis/base.py",
line 26, in prepare_database
    cursor.execute("CREATE EXTENSION IF NOT EXISTS postgis")
  File
"/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line
67, in execute
    return self._execute_with_wrappers(sql, params, many=False,
executor=self._execute)
  File
"/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line
76, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File
"/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line
84, in _execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line
89, in exit
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File
"/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line
82, in _execute
    return self.cursor.execute(sql)
django.db.utils.ProgrammingError: permission denied to create extension
"postgis"
HINT:  Must be superuser to create this extension.




Someone else is experiencing the same issue?


Thank you

Federico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20210305/b129ad91/attachment.html>


More information about the geonode-users mailing list