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

ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/community/general/versions/' #657

Closed
DorBreger opened this issue Mar 14, 2024 · 9 comments
Labels
needs_triage New item that needs to be triaged

Comments

@DorBreger
Copy link

when running ansible-build and requiring community.general. Here are my files
requierments.txt
execution-enviroment.yml:

version: 1
dependencies:
  galaxy: requirments.yml
  python: requierments.txt

additional_build_steps:
  prepend: |
    RUN pip3 install --upgrade pip setuptools```

requirments.yml:
```---
collections:
  - lowlydba.sqlserver
  - community.general```
 I am running with `ansible-builder build --tag sqlrunner --container-runtime docker`
@github-actions github-actions bot added the needs_triage New item that needs to be triaged label Mar 14, 2024
@DorBreger
Copy link
Author

output.txt
this is the full output of the command

@Akasurde
Copy link
Member

Please update Ansible and Ansible Builder versions. This issue is already resolved.

@DorBreger
Copy link
Author

I am running on the latest version of ansible-builder. ansible-builder --version gives 3.0.1.

@DorBreger
Copy link
Author

As for ansible, I don't even have it installed. It's not required

@Akasurde
Copy link
Member

@DorBreger Could you please update the execution-enviroment.yml to version 3 as per - https://ansible.readthedocs.io/projects/builder/en/latest/definition/#version-3-sample-file?

@sivel
Copy link
Member

sivel commented Mar 14, 2024

The underlying problem is that the v1 schema uses a no longer supported base image, that includes an unsupported ansible-core version.

As indicated in #657 (comment) you will need to update to the v3 schema, and explicitly install a supported ansible-core version.

@DorBreger
Copy link
Author

Thank you. This worked. you might want to rewrite the introduction

@Akasurde
Copy link
Member

@DorBreger Thanks for the update. The introduction blog post is old (2020), you might want to visit https://www.redhat.com/en/blog/unlocking-efficiency-harnessing-the-capabilities-of-ansible-builder-3.0 for the latest updates.

@DorBreger
Copy link
Author

Thank you @Akasurde. At least now this problem will be indexed by search engines :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_triage New item that needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants