Trellis up: ansible-galaxy install fail ([ERROR]: failed to download the file: HTTP Error 404: Not Found)

Hey there, I’m really interested in trying Trellis but running into an issue setting it up…

I’ve just recently tried out Trellis and I’m seeing an error about a failure to download an Ansible role while trying to run trellis up (during provisioning I guess? Forgive me if that’s the wrong term - I’m new to Ansible/Trellis).

# error snippet:

- downloading role from https://github.com/geerlingguy/ansible-role-composer/archive/1.9.0.tar.gz
 [ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - composer was NOT installed successfully.

In addition to seeing it when running trellis up, I can see it by using Ansible directly.

This is on Mac 10.15:

$ trellis --version
0.9.2
$ pip install ansible==2.9.10
...
$ ansible-galaxy install -vvv -r galaxy.yml
ansible-galaxy 2.9.10
  config file = /Users/x/.../trellis.test/trellis/ansible.cfg
  configured module search path = ['/Users/x/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/x/.pyenv/versions/3.8.0/lib/python3.8/site-packages/ansible
  executable location = /Users/x/.pyenv/versions/3.8.0/bin/ansible-galaxy
  python version = 3.8.0 (default, Nov 14 2020, 15:06:01) [Clang 12.0.0 (clang-1200.0.32.2)]
Using /Users/x/.../trellis.test/trellis/ansible.cfg as config file
Reading requirement file at 'galaxy.yml'
found role {'name': 'composer', 'src': 'geerlingguy.composer', 'version': '1.9.0', 'scm': None} in yaml file
found role {'name': 'ntp', 'src': 'geerlingguy.ntp', 'version': '2.2.0', 'scm': None} in yaml file
found role {'name': 'logrotate', 'src': 'nickhammond.logrotate', 'version': 'v0.0.5', 'scm': None} in yaml file
found role {'name': 'swapfile', 'src': 'oefenweb.swapfile', 'version': 'v2.0.32', 'scm': None} in yaml file
found role {'name': 'mailhog', 'src': 'geerlingguy.mailhog', 'version': '2.2.0', 'scm': None} in yaml file
Processing role composer
Opened /Users/x/.ansible/galaxy_token
- downloading role 'composer', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-composer/archive/1.9.0.tar.gz
 [ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - composer was NOT installed successfully.

I’m assuming this is an Ansible-Galaxy CLI issue so I’ve reported it here: https://github.com/ansible/galaxy/issues/2668 (That said, I’m also hoping I’m not the first one to find this and perhaps someone here knows a good workaround).

Thanks for any advice!

This topic was automatically closed after 42 days. New replies are no longer allowed.