"ERROR! Expecting requirements file to be a dict with the key 'collections' that contains a list of collections to install"

Getting this error when I try to sync the git repository in latest AWX version.
AWX Operator Version: 0.21.0
Kubernetes : v1.20.0

AWX. version: 21.0.0

TASK [fetch galaxy collections from collections/requirements.(yml/yaml)] *******10:10:37

29
[WARNING]: Unable to find

30
‘/var/lib/awx/projects/ collections’ in expected

31
paths (use -vvvvv to see paths)

32
failed: [localhost] (item=/var/lib/awx/projects/ /requirements.yml) => {“ansible_loop_var”: “item”, “changed”: false, “cmd”: [“ansible-galaxy”, “collection”, “install”, “-r”, “/var/lib/awx/projects//requirements.yml”, “–collections-path”, “/var/lib/awx/projects/./stage/requirements_collections”], “delta”: “0:00:00.622536”, “end”: “2022-05-12 17:10:38.083129”, “item”: “/var/lib/awx/projects//requirements.yml”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-05-12 17:10:37.460593”, “stderr”: “ERROR! Expecting requirements file to be a dict with the key ‘collections’ that contains a list of collections to install”, “stderr_lines”: [“ERROR! Expecting requirements file to be a dict with the key ‘collections’ that contains a list of collections to install”], “stdout”: “”, “stdout_lines”: }

33

Please suggest the solution.
Is there anything I need to install on k8s cluster or AWX containers or on git repository.

Thanks,
Jagruti Belani

Hi Jagruiti,

Sounds like the /requirements.yml file is not properly formatted. e.g. https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#install-multiple-collections-with-a-requirements-file

If you need help formatting, you can copy and paste that file contents here

Seth