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

Task "Add RabbitMQ repository" fails with "apt.cache.FetchFailedException" error #9

Open
ThomasVille opened this issue Feb 5, 2021 · 1 comment · May be fixed by #10
Open

Task "Add RabbitMQ repository" fails with "apt.cache.FetchFailedException" error #9

ThomasVille opened this issue Feb 5, 2021 · 1 comment · May be fixed by #10

Comments

@ThomasVille
Copy link

Hi,

On Ubuntu 18.04, when running the role Stouts.rabbitmq, the task Add RabbitMQ repository fails with the following output:

    dev-image: TASK [include_role : Stouts.rabbitmq] ******************************************
    dev-image: 
    dev-image: TASK [Stouts.rabbitmq : Add RabbitMQ key] **************************************
    dev-image: changed: [dev-image]
    dev-image: 
    dev-image: TASK [Stouts.rabbitmq : Add RabbitMQ repository] *******************************
    dev-image: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt.cache.FetchFailedException: E:The repository 'http://www.rabbitmq.com/debian testing Release' does not have a Release file.
    dev-image: fatal: [dev-image]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1612460983.32-163575430444603/AnsiballZ_apt_repository.py\", line 113, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1612460983.32-163575430444603/AnsiballZ_apt_repository.py\", line 105, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1612460983.32-163575430444603/AnsiballZ_apt_repository.py\", line 48, in invoke_module\n    imp.load_module('__main__', mod, module, MOD_DESC)\n  File \"/tmp/ansible_apt_repository_payload_J1E2W8/__main__.py\", line 550, in <module>\n  File \"/tmp/ansible_apt_repository_payload_J1E2W8/__main__.py\", line 542, in main\n  File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 586, in update\n    raise FetchFailedException(e)\napt.cache.FetchFailedException: E:The repository 'http://www.rabbitmq.com/debian testing Release' does not have a Release file.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

When checking the page Installing on Debian and Ubuntu of the documentation of RabbitMQ, I can't find any mention of http://www.rabbitmq.com/debian and the 2 recommended ways to install RabbitMQ are either using BinTray or PackageCloud.

So I believe the URL of the repository is now out of date.

@ThomasVille ThomasVille linked a pull request Feb 9, 2021 that will close this issue
@JoseKilo
Copy link

I had more luck using BinTray instead of PackageCloud. When I tried to use PackageCloud I got errors because it couldn't find a compatible version of Erlang. It may be related to my distro and/or other config.

The RabbitMQ team maintains a repo for the Erlang package in BinTray, but not in PackageCloud (at least when I checked the docs: https://www.rabbitmq.com/install-debian.html).

I made the change on my own fork, pasting it here in case it's useful to anyone:
JoseKilo@4a4ed2f

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.

2 participants