[GeoNode-users] <GeoNode Docker via LXC> dependency failed to start: container django4my_geonode is unhealthy

Donald Singh dsurveyor at gmail.com
Fri Mar 15 12:44:02 PDT 2024


Hi,
Newbie here as well.
I'm attempting a similar install, but not getting past docker compose build
step.

After using the default settings I get the following message;
invalid project name "{{project_name}}": must consist only of lowercase
alphanumeric characters, hyphens, and underscores as well as start with a
letter or number


Donald Singh
Sworn Land Surveyor
Mobile: +5926432845
Let's Build Guyana *Together*!


On Fri, Mar 15, 2024 at 2:59 PM McGee,David H via geonode-users <
geonode-users at lists.osgeo.org> wrote:

> Hello,
>
> Any assistance would be greatly appreciated. I’m attempting to install
> GeoNode in an LXC system container.
>
> Many thanks in advance,
>
> David
>
> My Environment is:
>
> (host) Ubuntu 22.04.4 LTS
>
> (lxc system container storage, image, config info)
> Storage pool: driver - btrfs, space used 33.03GiB, total 100.00GiB
> image.architecture: amd64
>   image.description: ubuntu 22.04 LTS amd64 (release) (20240308)
>   image.label: release
>   image.os: ubuntu
>   image.release: jammy
>   image.serial: "20240308"
>   image.type: squashfs
>   image.version: "22.04"
>   security.nesting: "true"
>   security.syscalls.intercept.mknod: "true"
>   security.syscalls.intercept.setxattr: "true"
>
> I followed
> https://docs.geonode.org/en/4.2.x/install/basic/index.html#docker-setup-for-ubuntu-20-04
> .
>
> .env was created with:
>
> python my_geonode/create-envfile.py \
>       --hostname localhost \
>       --email yyyy at yyyyyyy.yy \
>       --geonodepwd admin \
>       --geoserverpwd geoserver \
>       --pgpwd postgres \
>       --dbpwd geonode \
>       --geodbpwd geonode
>
> After:
>
> docker compose build
>
> When I performed:
>
> docker compose up -d
>
> It finished with:
>
> Container django4my_geonode         Error
> dependency failed to start: container django4my_geonode is unhealthy
> Logs:
>
> I noticed the following from  dockercompose logs -f django:
>
> django4my_geonode  | STARTING DJANGO ENTRYPOINT Fri Mar  8 20:37:05 UTC
> 2024
>
> django4my_geonode  |     conn = _connect(dsn,
> connection_factory=connection_factory, **kwasync)
> django4my_geonode  | psycopg2.OperationalError: connection to server at
> "db" (172.18.0.4), port 5432 failed: FATAL:  password authentication failed
> for user "my_geonode"
> django4my_geonode  |
> django4my_geonode  |
> django4my_geonode  | The above exception was the direct cause of the
> following exception:
> django4my_geonode  |
> django4my_geonode  | Traceback (most recent call last):
> django4my_geonode  |   File "/usr/src/my_geonode/manage.py", line 31, in
> <module>
> django4my_geonode  |     execute_from_command_line(sys.argv)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py",
> line 442, in execute_from_command_line
> django4my_geonode  |     utility.execute()
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/__init__.py",
> line 436, in execute
> django4my_geonode  |
>  self.fetch_command(subcommand).run_from_argv(self.argv)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py",
> line 412, in run_from_argv
> django4my_geonode  |     self.execute(*args, **cmd_options)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py",
> line 458, in execute
> django4my_geonode  |     output = self.handle(*args, **options)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py",
> line 106, in wrapper
> django4my_geonode  |     res = handle_func(*args, **kwargs)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/core/management/commands/migrate.py",
> line 115, in handle
> django4my_geonode  |     connection.prepare_database()
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/contrib/gis/db/backends/postgis/base.py",
> line 101, in prepare_database
> django4my_geonode  |     with self.cursor() as cursor:
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/utils/asyncio.py", line 26,
> in inner
> django4my_geonode  |     return func(*args, **kwargs)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/base/base.py",
> line 330, in cursor
> django4my_geonode  |     return self._cursor()
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/base/base.py",
> line 306, in _cursor
> django4my_geonode  |     self.ensure_connection()
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/utils/asyncio.py", line 26,
> in inner
> django4my_geonode  |     return func(*args, **kwargs)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/base/base.py",
> line 288, in ensure_connection
> django4my_geonode  |     with self.wrap_database_errors:
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/utils.py", line 91, in
> __exit__
> django4my_geonode  |     raise dj_exc_value.with_traceback(traceback) from
> exc_value
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/base/base.py",
> line 289, in ensure_connection
> django4my_geonode  |     self.connect()
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/utils/asyncio.py", line 26,
> in inner
> django4my_geonode  |     return func(*args, **kwargs)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/base/base.py",
> line 270, in connect
> django4my_geonode  |     self.connection =
> self.get_new_connection(conn_params)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/contrib/gis/db/backends/postgis/base.py",
> line 112, in get_new_connection
> django4my_geonode  |     connection =
> super().get_new_connection(conn_params)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/utils/asyncio.py", line 26,
> in inner
> django4my_geonode  |     return func(*args, **kwargs)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/django/db/backends/postgresql/base.py",
> line 275, in get_new_connection
> django4my_geonode  |     connection = self.Database.connect(**conn_params)
> django4my_geonode  |   File
> "/usr/local/lib/python3.10/dist-packages/psycopg2/__init__.py", line 122,
> in connect
> django4my_geonode  |     conn = _connect(dsn,
> connection_factory=connection_factory, **kwasync)
> django4my_geonode  | django.db.utils.OperationalError: connection to
> server at "db" (172.18.0.4), port 5432 failed: FATAL:  password
> authentication failed for user "my_geonode"
>
>
> _______________________________________________
> 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/20240315/9e4f32d8/attachment.htm>


More information about the geonode-users mailing list