autolab / autolab-oneclick

Apache License 2.0
6 stars 17 forks source link

Failed to fetch docker, HttpError 404 #8

Open Arnei opened 7 years ago

Arnei commented 7 years ago

Greetings Autolab Users,

we recently tried to do a local install of Autolab, but are stuck at the following error:

W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/vivid/edge/binary-amd64/Packages HttpError404

E: Some index files failed to download. They have been ignored, or old ones used instead. Fetched 21.4 MB in 5s (4146 kB/s) ERROR: Service 'tango' failed to build: The command '/bin/sh -c curl -sSL https://get.docker.com/ | sh' returned a non-zero code: 100 ./install.sh: Zeile 98: ./install.sh: Datei oder Verzeichnis nicht gefunden

It appears the script tries to install docker from a dead link. It did not even choose the right dist, as we are on Ubuntu 16.04.2, so it should be xenial instead of vivid (or at least I think so, my ubuntu dist knowledge is minimal). What's more is that we already have docker installed, so there really should be need for another installation. Does someone have an idea on how the one-click installation script could be changed to prevent this error?

devanshk commented 7 years ago

Looking into this..

devanshk commented 7 years ago

Made a hotfix on branch hotfix_docker. See if that works for you.

Arnei commented 7 years ago

That gives me this error:

[5/6] Init docker images and containers... ERROR: no such image: mysql: failed to get digest sha256:ec161391b8c32a70b45c4eb505fb94b674a41e7de920a20d37887252e7385d61: open /var/lib/docker/image/aufs/imagedb/content/sha256/ec161391b8c32a70b45c4eb505fb94b674a41e7de920a20d37887252e7385d61: no such file or directory ./install.sh: line 98: ./install.sh: No such file or directory

When I try to rerun the install.sh, it hangs on this...:

[2/6] Downloading source file... fatal: destinationpath 'Tango' already exists and is not an empty directory.

...Forcing me to run the uninstall.sh everytime I want to retry the installation. Maybe this is intended, I just wanted to make sure to mention it.

devanshk commented 7 years ago

Looks like a bug with the uninstall script not performing a full reset - the script runs to completion on a fresh install of Ubuntu 16.04.2.

Are you running this on a VM or existing system?

Arnei commented 7 years ago

An existing system.

devanshk commented 7 years ago

Alright, I've been able to replicate it. Main issue is that uninstall.sh throws rm: cannot remove '/var/lib/docker/aufs': Device or resource busy which contains the containers that errored out. The install script expects autolab-related images and containers to be cleared from /var/lib/docker before it runs. Still working on a fix to this.