TASK [local_docker : Set up new postgres paths pre-upgrade] **************************************************************************************************************************************************
changed: [localhost]
TASK [local_docker : Stop AWX before upgrading postgres] *****************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “errors”: , “module_stderr”: “Recreating awx_postgres … \n\u001b[1A\u001b[2K\nRecreating awx_postgres … \n\u001b[1BRecreating awx_web … \nHost is already in use by another container\n\u001b[1A\u001b[2K\nRecreating awx_web … \n\u001b[1B”, “module_stdout”: “12: Pulling from library/postgres\nDigest: sha256:06277995d7028f4455e56f21864146ee2425c83308dc96283c7a96e6881cc826\nStatus: Downloaded newer image for postgres:12\n17.1.0: Pulling from ansible/awx\nDigest: sha256:d5d6003a9f32c3d00ee4be3275f62186937570e9e33776f848dbe9185623da97\nStatus: Downloaded newer image for ansible/awx:17.1.0\n”, “msg”: “Error starting project Encountered errors while bringing up the project.”}
Can anyone help here
(attachments)
Is there any other postgres container running on the same host?
Docker ps -a
nop. I have deleted everything restart now docker and start installation back from fresh. here is the new error I’m getting now.
TASK [local_docker : Run migrations in task container] *******************************************************************************************************************************************************
task path: /app/awx-17.1.0/installer/roles/local_docker/tasks/compose.yml:45
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “docker-compose run --rm --service-ports task awx-manage migrate --no-input”, “delta”: “0:00:01.971408”, “end”: “2021-05-03 16:00:20.465307”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-05-03 16:00:18.493899”, “stderr”: “Creating network "awxcompose_default" with the default driver\nCreating awx_redis … \r\nCreating awx_postgres … \r\nCreating awx_postgres … done\r\nCreating awx_redis … done\r\nCreating awx_web … \r\nHost is already in use by another container\nCreating awx_web … error\r\n\nERROR: for awx_web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (30bd04da934f240519a0e52b0bfe9baeb8b54423babae3551122e9d684b2dc39): Error starting userland proxy: listen tcp6 [::]:80: socket: address family not supported by protocol\n\nERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (30bd04da934f240519a0e52b0bfe9baeb8b54423babae3551122e9d684b2dc39): Error starting userland proxy: listen tcp6 [::]:80: socket: address family not supported by protocol\nEncountered errors while bringing up the project.”, “stderr_lines”: [“Creating network "awxcompose_default" with the default driver”, "Creating awx_redis … ", "Creating awx_postgres … ", “Creating awx_postgres … done”, “Creating awx_redis … done”, "Creating awx_web … ", “Host is already in use by another container”, “Creating awx_web … error”, “”, “ERROR: for awx_web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (30bd04da934f240519a0e52b0bfe9baeb8b54423babae3551122e9d684b2dc39): Error starting userland proxy: listen tcp6 [::]:80: socket: address family not supported by protocol”, “”, “ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint awx_web (30bd04da934f240519a0e52b0bfe9baeb8b54423babae3551122e9d684b2dc39): Error starting userland proxy: listen tcp6 [::]:80: socket: address family not supported by protocol”, “Encountered errors while bringing up the project.”], “stdout”: “”, “stdout_lines”: }
(attachments)
solve the problem with docker version. I remove latest docker version and install this specific version
yum install docker-ce-20.10.5 docker-ce-cli-20.10.5 containerd.io
Problem solve