ARTbio / GalaxyKickStart

Ansible playbooks for Galaxy Server deployment
GNU General Public License v3.0
24 stars 22 forks source link

GalaxyKickstart docker error when playing the playbook #339

Closed ccedmendoza closed 5 years ago

ccedmendoza commented 5 years ago

When playing the ansible playbook this is the error I get:

TASK [galaxyprojectdotorg.galaxy-os : Update APT cache] *********************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: 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://download.docker.com/linux/ubuntu/dists/xenial/InRelease  , E:Some index files failed to download. They have been ignored, or old ones used instead."}

It seems to be a problem with docker

drosofff commented 5 years ago

avant de jouer le playbook, essaye apt update -y et probablement un problème de version de apt-transport-https.

c'est assez dépendant de ton environnement: quel est il ?

ccedmendoza commented 5 years ago

To be more precise: ubuntu 16

ccedmendoza commented 5 years ago

tried to update:

Hit:1 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease                                                
Hit:3 http://europe-west1.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease                                              
Hit:4 http://ppa.launchpad.net/galaxyproject/nginx/ubuntu xenial InRelease                                                          
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                                   
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease              
Reading package lists... Done                     
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/xenial/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.
drosofff commented 5 years ago

Is it an IFB-core VM ? Try prabi. IFB-core cloud sucks. NB: the docker deployment of KS is Travis-tested. It works.

ccedmendoza commented 5 years ago

Nope, it's a GCE vm. I made it work by doing the following:

apt-get install apt-transport-https
apt-get update
# remove previously added docker repository in the list 
vi /etc/apt/sources.list
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
ccedmendoza commented 5 years ago

found the problem. I launched a ubuntu 16.04 minimal