From 69778176cfcd654a373b6f7ce048c32573cb9a42 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Tue, 11 Jul 2023 14:00:24 +0200 Subject: [PATCH 1/2] tools/docker-compose/README.md: add way to solve postgresql issue --- tools/docker-compose/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/docker-compose/README.md b/tools/docker-compose/README.md index fdca69fe42ae..09cee99c5b02 100644 --- a/tools/docker-compose/README.md +++ b/tools/docker-compose/README.md @@ -118,6 +118,12 @@ $ make docker-compose > For running docker-compose detached mode, start the containers using the following command: `$ make docker-compose COMPOSE_UP_OPTS=-d` +If you have encountered the infinitely-repeating `Waiting for postgres to be ready to accept connections` message during the execution, try to do the following: + +1. Stop and delete awx-related docker containers. +2. Delete all associated docker volumes. +3. Delete all associated docker networks. +4. Repeat the process from scratch. ##### _(alternative method)_ Spin up a development environment with customized mesh node cluster From 34ec387778991656777443e826ba61d41c8e12a7 Mon Sep 17 00:00:00 2001 From: Andrew Klychkov Date: Tue, 22 Aug 2023 10:07:47 +0200 Subject: [PATCH 2/2] Add example --- tools/docker-compose/README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/docker-compose/README.md b/tools/docker-compose/README.md index 09cee99c5b02..6387fb32b949 100644 --- a/tools/docker-compose/README.md +++ b/tools/docker-compose/README.md @@ -118,13 +118,24 @@ $ make docker-compose > For running docker-compose detached mode, start the containers using the following command: `$ make docker-compose COMPOSE_UP_OPTS=-d` +###### Solving database-related issues during initial startup + If you have encountered the infinitely-repeating `Waiting for postgres to be ready to accept connections` message during the execution, try to do the following: -1. Stop and delete awx-related docker containers. +1. Stop and delete AWX-related docker containers. 2. Delete all associated docker volumes. 3. Delete all associated docker networks. 4. Repeat the process from scratch. +If you have **only** AWX-related container entities in your system, you can simply stop and delete everything using the following commands: + +```bash +docker stop $(docker ps -a -q) +docker system prune -a +docker volume prune +docker network prune +``` + ##### _(alternative method)_ Spin up a development environment with customized mesh node cluster With the introduction of Receptor, a cluster (of containers) with execution nodes and a hop node can be created by the docker-compose Makefile target. @@ -181,7 +192,7 @@ The first time you start the environment, database migrations need to run in ord ```bash awx_1 | Operations to perform: awx_1 | Synchronize unmigrated apps: solo, api, staticfiles, debug_toolbar, messages, channels, django_extensions, ui, rest_framework, polymorphic -awx_1 | Apply all migrations: sso, sessions, sites, kombu_transport_django, social_auth, contenttypes, auth, conf, main +awx_1 | Apply all migrations: sso, taggit, sessions, sites, kombu_transport_django, social_auth, contenttypes, auth, conf, main awx_1 | Synchronizing apps without migrations: awx_1 | Creating tables... awx_1 | Running deferred SQL...