l3ender / nexus-repository-ansiblegalaxy

A Nexus Repository 3 plugin that allows usage of Ansible Galaxy repositories.
30 stars 12 forks source link

Unable to install collection from new Galaxy #23

Open xaviou opened 1 year ago

xaviou commented 1 year ago

New Galaxy has been released yesterday (cf. https://forum.ansible.com/t/new-ansible-galaxy/1155) and it broke the current plugin.

How to reproduce: in Nexus create a repository named ansible-galaxy-proxy with the recipe ansiblegalaxy (proxy) and a remote location on https://galaxy.ansible.com

Then on a command line, try do download any collection:

ansible-galaxy collection install community.crypto:2.8.1 --force --server http://mynexus/repository/ansible-galaxy-proxy/
Process install dependency map
Starting collection install process
Installing 'community.crypto:2.8.1' to '/home/myhome/.ansible/collections/ansible_collections/community/crypto'
ERROR! Unexpected Exception, this is probably a bug: HTTP Error 404: Not Found
jagular-spb commented 1 year ago

Same thing on our side

lamm commented 1 year ago

Same for us. To workaround the issue you can modify the galaxy URL in the repository configuration to point to the old galaxy version : https://old-galaxy.ansible.com/ Problem is that this version is now read-only so new collections (or collections update) will not be available.

jagular-spb commented 1 year ago

cc @l3ender

cniweb commented 1 year ago

Hi @l3ender, Until when can you fix this? Thanks, Christian

cniweb commented 1 year ago

I think this spot could be the problem: https://github.com/l3ender/nexus-repository-ansiblegalaxy/blob/85bf7613e0a2be6721accc11dcdf72806bd891c5/nexus-repository-ansiblegalaxy/src/main/java/org/sonatype/nexus/plugins/ansiblegalaxy/internal/proxy/AnsibleGalaxyProxyFacetImpl.java#L211

Aibek-biz commented 9 months ago

I tried old site, but got same error. Recreate repo do not help)