Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install collection from new Galaxy #23

Open
xaviou opened this issue Oct 2, 2023 · 6 comments · May be fixed by #24
Open

Unable to install collection from new Galaxy #23

xaviou opened this issue Oct 2, 2023 · 6 comments · May be fixed by #24

Comments

@xaviou
Copy link

xaviou commented Oct 2, 2023

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
Copy link

Same thing on our side

@lamm
Copy link

lamm commented Oct 2, 2023

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
Copy link

jagular-spb commented Oct 2, 2023

cc @l3ender

@cniweb
Copy link

cniweb commented Oct 6, 2023

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

@cniweb
Copy link

cniweb commented Oct 6, 2023

I think this spot could be the problem:

replacers.add(new JsonPrependReplacer(pageFieldName, "/repository/" + getRepository().getName()));

@angeloxx angeloxx linked a pull request Nov 5, 2023 that will close this issue
@Aibek-biz
Copy link

Aibek-biz commented Feb 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants