While creating new project with SCM TYPE: Manual getting the following error:
WARNING: There are no available playbook directories in /var/lib/awx/projects. Either that directory is empty, or all of the contents are already assigned to other projects. Create a new directory there and make sure the playbook files can be read by the “awx” system user, or have AWX directly retrieve your playbooks from source control using the SCM Type option above.
I also verified creating a new directory that is not assigned to any other project.
What could be the reason, and how can we solve this?
Check permissions and ownership on the dir you created. Also, there may have to be at least 1 valid looking playbook in the directory to be able to select it.
Also (not to state the obvious) if you are running in a container make sure that you are looking in /var/lib/awx/projects of the container, not the host.
Hopefully you are mapping that path to a folder on the host via project_data_dir in the inventory file.
During the AWX deployment, you might have missed to enable “project_data_dir=/var/lib/awx/projects” in inventory file. Just Re-deploy the AWX by uncommenting the mentioned parameter.