AWX install - failed docker compose

some idea?

TASK [local_docker : Start the containers] ******************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Unable to load docker-compose. Try pip install docker-compose. Error: No module named compose”}

root@vmansmde01:~/awx/installer# pip install docker-compose
Collecting docker-compose
Could not fetch URL https://pypi.python.org/simple/docker-compose/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) - skipping
Could not find a version that satisfies the requirement docker-compose (from versions: )
No matching distribution found for docker-compose
root@vmansmde01:~/awx/installer#

Hello Pierre,

Could not fetch URL https://pypi.python.org/simple/docker-compose/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) - skipping

Looks like python’s pip is trying to download docker-compose from pypi.python.org. Make sure you can reach it. Alternatively you can download the packages and install them offline with “pip”.

Follow the Pythone Docs here: https://packaging.python.org/tutorials/installing-packages/#installing-from-local-archives

Regards,
Nico

You’re going to have to disable SSL cert verification for pip. Be careful, I recall this being one of the more fragile components.

m

Thanks guys for your help
I have try with other host and I have another error :-/

TASK [local_docker : Start the containers] ***************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on pgsql-test.adm.cacc.ch’s Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via pip install docker or pip install docker-py (Python 2.6). The error was: No module named docker”}

Are you in fact using a manually installed python? Unless you specify an interpreter, the list of paths it tries is (annoyingly) somewhat hardcoded…

new error:

“msg”: “Unable to load docker-compose. Try pip install docker-compose. Error: Traceback (most recent call last):\n File "/tmp/ansible_docker_compose_payload_t7zk1V/ansible_docker_compose_payload.zip/ansible/modules/cloud/docker/docker_compose.py", line 477, in \nImportError: No module named compose\n”
}

Hello Pierre,

what steps did you take since last?

Regards,
Nico

– – You received this message because you are subscribed to a topic in the Google Groups “AWX Project” group. To unsubscribe from this topic, visit . To unsubscribe from this group and all its topics, send an email to . To view this discussion on the web visit .

now I’m blocked at this step, you know how to fixed the problem?

WARNING: The CURRENT_UID variable is not set. Defaulting to a blank string.
WARNING: The DEV_DOCKER_TAG_BASE variable is not set. Defaulting to a blank string.
WARNING: The TAG variable is not set. Defaulting to a blank string.
Pulling awx (/awx_devel:)…
ERROR: Error parsing reference: “/awx_devel” is not a valid repository/tag: invalid reference format