# "/var/lib/awx/venv/awx/lib64/python3.6/os.py", line 220, in makedirs mkdir(name, mode) FileExistsError: \[Errno 17\] File exists:

**URL:** <https://forum.ansible.com/t/var-lib-awx-venv-awx-lib64-python3-6-os-py-line-220-in-makedirs-mkdir-name-mode-fileexistserror-errno-17-file-exists/33838>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 17, 2020, 10:09am UTC](https://forum.ansible.com/t/var-lib-awx-venv-awx-lib64-python3-6-os-py-line-220-in-makedirs-mkdir-name-mode-fileexistserror-errno-17-file-exists/33838 "2020-09-17T10:09:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhu\_sridhar](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@prabhu\_sridhar](https://forum.ansible.com/u/prabhu_sridhar)\
**Post date:** [September 17, 2020, 10:09am UTC](https://forum.ansible.com/t/var-lib-awx-venv-awx-lib64-python3-6-os-py-line-220-in-makedirs-mkdir-name-mode-fileexistserror-errno-17-file-exists/33838/1 "2020-09-17T10:09:51Z")

</div>

HI

AWX version :11.2.0

We see the below error and one or two jobs failing(not all jobs failing) when multiple jobs are running.

can you please advise what is the cause of the error and any suggestion to fix the issue?

**ERROR DETAILS**

_Traceback (most recent call last): File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 1355, in run self.pre\_run\_hook(self.instance, private\_data\_dir) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 1959, in pre\_run\_hook job.project.scm\_type, job\_revision File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/tasks.py”, line 2340, in make\_local\_copy source\_branch = git\_repo.create\_head(tmp\_branch\_name, scm\_revision) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/git/repo/base.py”, line 386, in create\_head return Head.create(self, path, commit, force, logmsg) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/git/refs/symbolic.py”, line 543, in create return cls.\_create(repo, path, cls.\_resolve\_ref\_on\_create, reference, force, logmsg) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/git/refs/symbolic.py”, line 510, in \_create ref.set\_reference(target, logmsg) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/git/refs/symbolic.py”, line 326, in set\_reference assure\_directory\_exists(fpath, is\_file=True) File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/git/util.py”, line 177, in assure\_directory\_exists os.makedirs(path) File “/var/lib/awx/venv/awx/lib64/python3.6/os.py”, line 220, in makedirs mkdir(name, mode) FileExistsError: [Errno 17] File exists: ‘/var/lib/awx/projects/\_86\_\_pr\_eventmanagement/.git/refs/heads/awx\_internal’_

Regards

Prabhu
