Project sync failing with an error `FileNotFoundError: [Errno 2] No such file or directory: '/path/to/dir` on Ansible Automation Platform 2.x after migrating it from on-premise installation to OCP(OpenShift Container Platform) operator based installation.

Solution Verified - Updated -

Issue

  • Project sync failing with a below error:

    Traceback (most recent call last):
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 490, in run
      private_data_dir = self.build_private_data_dir(self.instance)
    File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py", line 211, in   build_private_data_dir
      path = tempfile.mkdtemp(prefix=JOB_FOLDER_PREFIX % instance.pk, dir=settings.AWX_ISOLATION_BASE_PATH)
    File "/usr/lib64/python3.9/tempfile.py", line 363, in mkdtemp
      _os.mkdir(file, 0o700)
    FileNotFoundError: [Errno 2] No such file or directory: '/home/awx/tmp/awx_55983_51xzw7gs'
    

Environment

  • Red Hat® Ansible Automation Platform 2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content