# Error building awx 7.0.0 docker images

**URL:** <https://forum.ansible.com/t/error-building-awx-7-0-0-docker-images/31309>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 18, 2019, 5:30pm UTC](https://forum.ansible.com/t/error-building-awx-7-0-0-docker-images/31309 "2019-09-18T17:30:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Meyer1](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Post date:** [September 18, 2019, 5:30pm UTC](https://forum.ansible.com/t/error-building-awx-7-0-0-docker-images/31309/1 "2019-09-18T17:30:17Z")

</div>

I seem to be running into some trouble building AWX 7.0. I am running CentOS Linux release 7.7.1908 (Core) using Docker-CE docker-ce-19.03.2-3.el7.x86\_64.

If I try to run the ansible-playbook as myself (yes I am in the docker groups) I get the following error:  
I assume this is a permissions issue but unsure WHAT it should be.

`

The full traceback is:  
WARNING: The below traceback may _not_ be related to the actual failure.  
File “/tmp/ansible\_stat\_payload\_xkFJ0K/ **main**.py”, line 480, in main  
st = os.lstat(b\_path)

fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“checksum\_algorithm”: “sha1”,  
“follow”: false,  
“get\_attributes”: true,  
“get\_checksum”: true,  
“get\_md5”: null,  
“get\_mime”: true,  
“path”: “/var/lib/pgdocker/pgdata/PG\_VERSION”  
}  
},  
“msg”: “Permission denied”  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=4 changed=0 unreachable=0 failed=1 skipped=69 rescued=0 ignored=0

`

But if I run it as root I get the following

`

WARNING: The below traceback may _not_ be related to the actual failure.  
File “/tmp/ansible\_docker\_service\_payload\_RFUf\_T/ **main**.py”, line 476, in   
from compose.cli.command import project\_from\_options  
File “/usr/lib/python2.7/site-packages/compose/cli/command.py”, line 10, in   
from . import errors  
File “/usr/lib/python2.7/site-packages/compose/cli/errors.py”, line 10, in   
from docker.errors import APIError  
File “/usr/lib/python2.7/site-packages/docker/ **init**.py”, line 2, in   
from .api import APIClient  
File “/usr/lib/python2.7/site-packages/docker/api/ **init**.py”, line 2, in   
from .client import APIClient  
File “/usr/lib/python2.7/site-packages/docker/api/client.py”, line 5, in   
import requests  
File “/usr/lib/python2.7/site-packages/requests/ **init**.py”, line 58, in   
from . import utils  
File “/usr/lib/python2.7/site-packages/requests/utils.py”, line 25, in   
from . import certs

fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“api\_version”: “auto”,  
“build”: false,  
“ca\_cert”: null,  
“client\_cert”: null,  
“client\_key”: null,  
“debug”: false,  
“definition”: null,  
“dependencies”: true,  
“docker\_host”: “unix://var/run/docker.sock”,  
“files”: null,  
“hostname\_check”: false,  
“nocache”: false,  
“project\_name”: null,  
“project\_src”: “/tmp/awxcompose”,  
“pull”: false,  
“recreate”: “smart”,  
“remove\_images”: null,  
“remove\_orphans”: false,  
“remove\_volumes”: false,  
“restarted”: false,  
“scale”: null,  
“services”: null,  
“ssl\_version”: null,  
“state”: “present”,  
“stopped”: true,  
“timeout”: 10,  
“tls”: false,  
“tls\_hostname”: “localhost”,  
“validate\_certs”: false  
}  
},  
“msg”: “Failed to import the required Python library (Docker SDK for Python: docker (Python \>= 2.7) or docker-py (Python 2.6)) on automation01.asm.example.local’s Python /bin/python. Please read module documentation and install in the appropriate location, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name certs”  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=8 changed=0 unreachable=0 failed=1 skipped=69 rescued=0 ignored=0

[root@automation01 installer]#

`
