### Please confirm the following
- [X] I agree to follow this project's [code… of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
- [X] I have checked the [current issues](https://github.com/ansible/awx/issues) for duplicates.
- [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
- [X] I am **NOT** reporting a (potential) security vulnerability. (These should be emailed to `security@ansible.com` instead.)
### Bug Summary
I'm on minikube and AWX 21.8.0 for months without any problem. Since some hours, AWX cannot install some collections anymore from Ansible Galaxy platform.
After some investigation, it seems it has to do with a high number of publicated versions of collections. I did not change any configuration on AWX since months and i don't know why it stars to fail only today.
Some collections i tried (with versions count) :
```text
community.general 131 ERROR
ansible.netcommon 164 ERROR
community.vmware 338 ERROR
community.grafana 19 INSTALL OK
community.sops 24 INSTALL OK
galaxyproject.general 1 INSTALL OK
community.sap_install 8 INSTALL OK
community.crypto 69 INSTALL OK
community.digitalocean 31 INSTALL OK
community.mysql 52 INSTALL OK
community.postgresql 40 INSTALL OK
community.docker 75 INSTALL OK
```
I also tried to purge some filesystem use in minikube with `docker image prune -af` reclaiming 40GB on 82GB total to avoid filesystem being full but it doesn't seem related. VM and minikube has not been restarted since 10 months.
In all my deployments, i'm using collections/requirements.yml file with :
```yaml
---
- name: community.general
```
### AWX version
21.8.0
### Select the relevant components
- [ ] UI
- [ ] UI (tech preview)
- [ ] API
- [ ] Docs
- [X] Collection
- [ ] CLI
- [ ] Other
### Installation method
minikube
### Modifications
no
### Ansible version
2.15.1
### Operating system
CentOS Linux release 7.9.2009 (Core)
### Web browser
_No response_
### Steps to reproduce
1. Install AWX 21.8.0
2. Create a git repository with collections/requirements.yml file including community.general
3. Try project update from git sources
### Expected results
Big collections installing fine.
### Actual results
Error in project update:
```
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
unexpected error when getting available versions of collection
community.general: '/api/v3/plugin/ansible/content/published/collections/index/
community/general/versions/'
ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/'
```
And full stacktrace is
```
ansible-galaxy [core 2.12.5.post0]
config file = None
configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
ansible collection location = /var/lib/awx/projects/.__awx_cache/_1690__awx_error_test_dev/stage/requirements_collections
executable location = /usr/local/bin/ansible-galaxy
python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)]
jinja version = 2.11.3
libyaml = True
No config file found; using defaults
Reading requirement file at '/var/lib/awx/projects/_1690__awx_error_test_dev/deployment/collections/requirements.yml'
Starting galaxy collection install process
Process install dependency map
Opened /home/runner/.ansible/galaxy_token
the full traceback was:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'community.general'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/ansible-galaxy", line 128, in <module>
exit_code = cli.run()
File "/usr/local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 569, in run
return context.CLIARGS['func']()
File "/usr/local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 86, in method_wrapper
return wrapped_method(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 1203, in execute_install
self._execute_install_collection(
File "/usr/local/lib/python3.8/site-packages/ansible/cli/galaxy.py", line 1230, in _execute_install_collection
install_collections(
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/__init__.py", line 548, in install_collections
dependency_map = _resolve_depenency_map(
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/__init__.py", line 1364, in _resolve_depenency_map
return collection_dep_resolver.resolve(
File "/usr/local/lib/python3.8/site-packages/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/local/lib/python3.8/site-packages/resolvelib/resolvers.py", line 318, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "/usr/local/lib/python3.8/site-packages/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "/usr/local/lib/python3.8/site-packages/resolvelib/resolvers.py", line 79, in from_requirement
cands = build_iter_view(provider.find_matches([requirement]))
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/dependency_resolution/providers.py", line 214, in find_matches
coll_versions = self._api_proxy.get_collection_versions(first_req)
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 101, in get_collection_versions
return set(
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 101, in <genexpr>
return set(
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 82, in _get_collection_versions
raise last_error
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/collection/galaxy_api_proxy.py", line 61, in _get_collection_versions
versions = api.get_collection_versions(requirement.namespace, requirement.name)
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/api.py", line 126, in wrapped
return method(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/api.py", line 869, in get_collection_versions
data = self._call_galaxy(to_native(next_link, errors='surrogate_or_strict'),
File "/usr/local/lib/python3.8/site-packages/ansible/module_utils/api.py", line 157, in run_function
return call_retryable_function()
File "/usr/local/lib/python3.8/site-packages/ansible/galaxy/api.py", line 396, in _call_galaxy
path_cache = self._cache[cache_id][url_info.path]
KeyError: '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/'
```
### Additional information
_No response_