[GeoNode-users] Postgres Passwords

Édson Flávio de Souza edson.flavio at gmail.com
Tue Jul 29 13:21:31 PDT 2025


Hi, adjust the variables in settings.py to reflect your changes.


Edson Flavio
41-98872-5118
@ef_souza - Twitter e Instagram

Em ter., 22 de jul. de 2025 15:38, Kabatha Patrick via geonode-users <
geonode-users at lists.osgeo.org> escreveu:

> Hi,
>
> I've changed my default postgres password for the 2 roles (postgres and
> geonode) and adjusted accordingly the .env file and geoserver stores. But
> for some reason, I still get this error message when I try to align the DB
> and GeoNode:
>
> ./paver_prod.sh sync
> ---> pavement.sync
>  python -W ignore manage.py makemigrations --noinput
> Traceback (most recent call last):
>   File "/opt/geonode-project/my_geonode/src/manage.py", line 31, in
> <module>
>     execute_from_command_line(sys.argv)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/__init__.py",
> line 419, in execute_from_command_line
>     utility.execute()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/__init__.py",
> line 413, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/base.py",
> line 354, in run_from_argv
>     self.execute(*args, **cmd_options)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/base.py",
> line 398, in execute
>     output = self.handle(*args, **options)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/base.py",
> line 89, in wrapped
>     res = handle_func(*args, **kwargs)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/core/management/commands/makemigrations.py",
> line 103, in handle
>     loader.check_consistent_history(connection)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/migrations/loader.py",
> line 294, in check_consistent_history
>     applied = recorder.applied_migrations()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/migrations/recorder.py",
> line 77, in applied_migrations
>     if self.has_table():
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/migrations/recorder.py",
> line 55, in has_table
>     with self.connection.cursor() as cursor:
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/utils/asyncio.py",
> line 33, in inner
>     return func(*args, **kwargs)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/backends/base/base.py",
> line 259, in cursor
>     return self._cursor()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/backends/base/base.py",
> line 235, in _cursor
>     self.ensure_connection()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/utils/asyncio.py",
> line 33, in inner
>     return func(*args, **kwargs)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/backends/base/base.py",
> line 219, in ensure_connection
>     self.connect()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/utils/asyncio.py",
> line 33, in inner
>     return func(*args, **kwargs)
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/backends/base/base.py",
> line 199, in connect
>     conn_params = self.get_connection_params()
>   File
> "/home/jpkadmin/.virtualenvs/my_geonode/lib/python3.10/site-packages/django/db/backends/postgresql/base.py",
> line 157, in get_connection_params
>     raise ImproperlyConfigured(
> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the NAME value.
>
>
> Captured Task Output:
> ---------------------
>
> ---> pavement.sync
>  python -W ignore manage.py makemigrations --noinput
>
> Build failed running pavement.sync: Subprocess return code: 1
>
> Anyone else who has had the same challenges?
>
> /Pat.
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20250729/f13febf4/attachment.htm>


More information about the geonode-users mailing list