Lab41/attalos

Build Error in the Docker Containers

Closed this issue · 4 comments

agude commented

An external user tried to build the Docker containers and ran into the following issues:

Processing triggers for ureadahead (0.100.0-16) ...
Setting up libxss1:amd64 (1:1.2.2-1) ...
Setting up libtk8.6:amd64 (8.6.1-3ubuntu2) ...
Setting up libxtst6:amd64 (2:1.2.2-1) ...
Setting up tk8.6 (8.6.1-3ubuntu2) ...
Setting up tk (8.6.0+6ubuntu3) ...
Setting up libice6:amd64 (2:1.0.8-2) ...
Setting up libsm6:amd64 (2:1.2.1-2) ...
Setting up libxt6:amd64 (1:1.1.4-1) ...
Setting up libxmu6:amd64 (2:1.1.1-1) ...
Setting up libxaw7:amd64 (2:1.0.12-1) ...
Setting up x11-utils (7.7+1) ...
Setting up xterm (297-1ubuntu1) ...
update-alternatives: using /usr/bin/xterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: using /usr/bin/lxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
 ---> 6a05eae6deaf
Removing intermediate container ee71631a0ecc
Step 23 : RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh &&     wget --quiet https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh &&     /bin/bash /Anaconda2-4.0.0-Linux-x86_64.sh -b -p /opt/conda &&     rm /Anaconda2-4.0.0-Linux-x86_64.sh
 ---> Running in 5a282fe8c996
The command '/bin/sh -c echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh &&     wget --quiet https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh &&     /bin/bash /Anaconda2-4.0.0-Linux-x86_64.sh -b -p /opt/conda &&     rm /Anaconda2-4.0.0-Linux-x86_64.sh' returned a non-zero code: 5
make: *** [build] Error 1
agude commented

Can not reproduce. Good output would have looked like this:

---> fea58afbac74
Removing intermediate container ce56613c069b
Step 23 : RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh &&     wget --quiet https://repo.continuum.io/archive/Anaconda2-4.0.0-Linux-x86_64.sh &&     /bin/bash /Anaconda2-4.0.0-Linux-x86_64.sh -b -p /opt/conda &&     rm /Anaconda2-4.0.0-Linux-x86_64.sh
 ---> Running in dfea719612f4
PREFIX=/opt/conda
installing: _cache-0.0-py27_x0 ...
installing: python-2.7.11-0 ...
installing: alabaster-0.7.7-py27_0 ...
installing: anaconda-client-1.4.0-py27_0 ...
installing: anaconda-navigator-1.1.0-py27_0 ...
installing: argcomplete-1.0.0-py27_1 ...
installing: astropy-1.1.2-np110py27_0 ...
installing: babel-2.2.0-py27_0 ...
installing: backports_abc-0.4-py27_0 ...
installing: beautifulsoup4-4.4.1-py27_0 ...
installing: bitarray-0.8.1-py27_0 ...

My best guess is that the wget command failed (maybe due to a firewall on their site). I think that is the case because it never gets to the "echo" command that starts the install script. Also, Exit Code 5 for wget is "SSL verification failure", whereas I doubt Anaconda has such a detailed list of failure states.

Perhaps we should remove the --quiet so future bugs are more obvious.

agude commented

The wget step is the part throwing an error. However, it does work from the command line (outside of docker). Perhaps the version installed on their machine naively and the version in the container differ in their handling of SSL.

agude commented

Additional issues: The Dockerfile.nvidia file also has two curl commands that will fail. We can add -k to ignore the ssl cert if desired.

I'm going to close this for now. I think that disabling SSL checking is probably not a good general modification to the code base. I also agree that, that is the likely issue