RuntimeError: project local_path user cannot be found in /var/lib/awx/projects

Hi,

I am running ansible awx role on oracle virtual box. Role has been ran perfectly and i was able to access the Ansible awx. I have added the playbooks manually and create a template to perform the job.

But while running job template i am getting below error:

Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/awx/main/tasks.py”, line 799, in run
cwd = self.build_cwd(instance, **kwargs)
File “/usr/lib/python2.7/site-packages/awx/main/tasks.py”, line 1188, in build_cwd
(job.project.local_path, root))
RuntimeError: project local_path user cannot be found in /var/lib/awx/projects

Thanks

Rahul

If you are using a manual project then you’ll need to make sure the project is in the same directory in both the web container and task containers.

We strongly recommend using source control to manage your playbooks/roles.

Hi Matt,

Thanks for suggestion. I have already synced up both containers directories and its working meanwhile i will work on source control part.

Is there a way to run the Ansible AWX on a standalone server rather running on dockers or openshift?

Thanks again.

Rahul Rana

That’s currently all we are planning to include in AWX directly.

Hey would you mind sharing where both web containers and task containers directories are and perhaps give an example on how to sync them up? Do we also have to resatr the server after adding a project manually ? thanks

your project directories should live in /var/lib/awx/projects

so for example: /var/lib/awx/projects/superawesomeplaybooks/

on both containers. The best example I can give of syncing them up is to put the playbooks into a git repository and then sync them using project syncs. It’s super handy and convenient and is supported natively in AWX. So, add an scm credential (your ssh key for example) then go create a new project… select Git (or any of the other scm types) then put the repository location in, and you’re done!

http://docs.ansible.com/ansible-tower/latest/html/userguide/projects.html