TASK [local_docker : Check for existing Postgres data (run from inside the 
container for access to file)] 
******************************************************************************************************************************
task path: 
/root/awx/installer/roles/local_docker/tasks/upgrade_postgres.yml:16
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo 
/root/.ansible/tmp `"&& mkdir "` echo 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481 `" && 
echo ansible-tmp-1621481039.84-17276-108322218268481="` echo 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481 `" ) && 
sleep 0'
Using module file 
/usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
<localhost> PUT /root/.ansible/tmp/ansible-local-17008qAlpLS/tmplGaWVq TO 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481/AnsiballZ_command.py
<localhost> EXEC /bin/sh -c 'chmod u+x 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481/ 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481/AnsiballZ_command.py
 
&& sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/env python3 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481/AnsiballZ_command.py
 
&& sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r 
/root/.ansible/tmp/ansible-tmp-1621481039.84-17276-108322218268481/ > 
/dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
    "changed": true, 
    "cmd": "docker run --rm -v '/root/.awx/pgdocker:/var/lib/postgresql' 
centos:8 bash -c  \"[[ -f /var/lib/postgresql/10/data/PG_VERSION ]] && echo 
'exists'\"\n", 
    "delta": "0:00:15.220847", 
    "end": "2021-05-20 05:24:15.405712", 
    "invocation": {
        "module_args": {
            "_raw_params": "docker run --rm -v 
'/root/.awx/pgdocker:/var/lib/postgresql' centos:8 bash -c  \"[[ -f 
/var/lib/postgresql/10/data/PG_VERSION ]] && echo 'exists'\"\n", 
            "_uses_shell": true, 
            "argv": null, 
            "chdir": null, 
            "creates": null, 
            "executable": null, 
            "removes": null, 
            "stdin": null, 
            "stdin_add_newline": true, 
            "strip_empty_ends": true, 
            "warn": true
        }
    }, 
    "msg": "non-zero return code", 
    "rc": 125, 
    "start": "2021-05-20 05:24:00.184865", 
    "stderr": "Unable to find image 'centos:8' locally\ndocker: Error 
response from daemon: Get https://registry-1.docker.io/v2/: net/http: 
request canceled while waiting for connection (Client.Timeout exceeded 
while awaiting headers).\nSee 'docker run --help'.", 
    "stderr_lines": [
        "Unable to find image 'centos:8' locally", 
        "docker: Error response from daemon: Get 
https://registry-1.docker.io/v2/: net/http: request canceled while waiting 
for connection (Client.Timeout exceeded while awaiting headers).", 
        "See 'docker run --help'."
    ], 
    "stdout": "", 
    "stdout_lines": []
}
...ignoring

On Thursday, 20 May 2021 at 12:53:21 UTC+10 s1mon...@gmail.com wrote:

> Hello,
>
> I'm trying to upgrade AWX 14.1.0 to 17.0.1. The upgrade is failing on the 
> following tasks. when running the install.yml playbook. 
>
> How can this be resolved? 
>
> TASK [local_docker : Check for existing Postgres data (run from inside the 
> container for access to file)] 
> ******************************************************************************************************************************
> fatal: [localhost]: FAILED! => {"changed": true, "cmd": "docker run --rm 
> -v '/root/.awx/pgdocker:/var/lib/postgresql' centos:8 bash -c  \"[[ -f 
> /var/lib/postgresql/10/data/PG_VERSION ]] && echo 'exists'\"\n", "delta": 
> "0:00:15.156521", "end": "2021-05-20 04:42:21.400767", "msg": "non-zero 
> return code", "rc": 125, "start": "2021-05-20 04:42:06.244246", "stderr": 
> "Unable to find image 'centos:8' locally\ndocker: Error response from 
> daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled 
> while waiting for connection (Client.Timeout exceeded while awaiting 
> headers).\nSee 'docker run --help'.", "stderr_lines": ["Unable to find 
> image 'centos:8' locally", "docker: Error response from daemon: Get 
> https://registry-1.docker.io/v2/: net/http: request canceled while 
> waiting for connection (Client.Timeout exceeded while awaiting headers).", 
> "See 'docker run --help'."], "stdout": "", "stdout_lines": []}
>
>
> TASK [local_docker : Run migrations in task container] 
> *********************************************************************************************************************************************************************************
> fatal: [localhost]: FAILED! => {"changed": true, "cmd": "docker-compose 
> run --rm --service-ports task awx-manage migrate --no-input", "delta": 
> "0:00:15.704363", "end": "2021-05-20 04:42:44.562076", "msg": "non-zero 
> return code", "rc": 1, "start": "2021-05-20 04:42:28.857713", "stderr": 
> "Pulling postgres (postgres:12)...\nGet https://registry-1.docker.io/v2/: 
> net/http: request canceled while waiting for connection (Client.Timeout 
> exceeded while awaiting headers)", "stderr_lines": ["Pulling postgres 
> (postgres:12)...", "Get https://registry-1.docker.io/v2/: net/http: 
> request canceled while waiting for connection (Client.Timeout exceeded 
> while awaiting headers)"], "stdout": "", "stdout_lines": []}
>
> Regards,
> Simon
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2bcf64f0-878a-4036-9c8b-38d8571c04e2n%40googlegroups.com.

Reply via email to