Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

[FAILED]:::TASK [mediapeers.ansible-role-influxdb : Add InfluxData repository] #3

Open
ghost opened this issue Aug 29, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 29, 2018

Hey ho,

I tried to deploy influxdb with your ansible role and this error appears.
Maybe its on my side, maybe on yours. I just want to let you know and maybe you have an idea how to fix it.

docker: TASK [mediapeers.ansible-role-influxdb : Add InfluxData repository] ************
    docker: An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt.cache.FetchFailedException: E:The method driver /usr/lib/apt/methods/https could not be found., W:Is the package apt-transport-https installed?, E:Failed to fetch https://repos.influxdata.com/ubuntu/dists/xenial/InRelease  , E:Some index files failed to download. They have been ignored, or old ones used instead.
    docker: fatal: [127.0.0.1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_txayrW/ansible_module_apt_repository.py\", line 550, in <module>\n    main()\n  File \"/tmp/ansible_txayrW/ansible_module_apt_repository.py\", line 542, in main\n    cache.update()\n  File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 487, in update\n    raise FetchFailedException(e)\napt.cache.FetchFailedException: E:The method driver /usr/lib/apt/methods/https could not be found., W:Is the package apt-transport-https installed?, E:Failed to fetch https://repos.influxdata.com/ubuntu/dists/xenial/InRelease  , E:Some index files failed to download. They have been ignored, or old ones used instead.\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
@ghost
Copy link
Author

ghost commented Aug 29, 2018

you maybe want to include this task:

- name: Check that HTTPS transport is available to APT
  apt:
    name: "apt-transport-https"
    state: present

@stefanhorning
Copy link
Contributor

stefanhorning commented Nov 26, 2018

If you are running this on docker it might anyway be better to go with a different strategy and just use the docker images provided by InfluxData and run each app in a seperate container (one process per container).

As this role will install 3 apps in once, I am a bit reluctant to add things to provide a baseline for minimalistic docker images, as it's designed to run against Ubuntu Server, where things like apt-transport-https are usually preinstalled.

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

No branches or pull requests

1 participant