Skip to content

Fix TLS error when upgrading nvidia packages. #1068

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

Merged
merged 2 commits into from
Aug 31, 2021
Merged

Conversation

rosbo
Copy link
Contributor

@rosbo rosbo commented Aug 27, 2021

We used to download the nvidia packages using apt over http. However
this is not supported anymore causing a build failure.

After much trial and error, I found that apt was not properly using the system certificate because of a broken
LD_LIBRARY_PATH. See the bug below for full context.

Additionally, new versions of gensim and kornia were released on August 29th and 30th respectively which are incompatible with our version of numpy. I pinned the version of these packages.

http://b/197989446

@@ -11,13 +11,8 @@ ADD clean-layer.sh /tmp/clean-layer.sh
ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
ADD patches/template_conf.json /opt/kaggle/conf.json

# This is necessary for apt to access HTTPS sources
RUN apt-get update && \
apt-get install apt-transport-https && \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package is already part of the gcr.io/deeplearning-platform-release/base-cpu image.

@rosbo rosbo force-pushed the fix-apt-certificates branch from 6de5c1a to 0dd589b Compare August 27, 2021 23:32
@@ -9,8 +9,6 @@ ADD clean-layer.sh /tmp/clean-layer.sh
COPY --from=nvidia /etc/apt/sources.list.d/cuda.list /etc/apt/sources.list.d/
COPY --from=nvidia /etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/
COPY --from=nvidia /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/cuda.gpg
# See b/142337634#comment28
RUN sed -i 's/deb https:\/\/developer.download.nvidia.com/deb http:\/\/developer.download.nvidia.com/' /etc/apt/sources.list.d/*.list
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a workaround to download the packages over http.

However, NVIDIA servers forces https now.

Removing the work-around now that we can fetch package over https with apt.

We used to download the nvidia packages using apt over http. However
this is not supported anymore causing a build failure.

I found that `apt` was failing to connect over https to the NVIDIA
download servers because of the `libgnutls.so` included in conda which
was used in place of the default version when we updated the
`LD_LIBRARY_PATH`. See the bug below for full context.

http://b/197989446
@rosbo rosbo force-pushed the fix-apt-certificates branch from 0dd589b to 9d12541 Compare August 30, 2021 17:01
@rosbo rosbo requested a review from Philmod August 31, 2021 16:59
@rosbo rosbo merged commit a4e6f95 into main Aug 31, 2021
@rosbo rosbo deleted the fix-apt-certificates branch August 31, 2021 20:19
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 this pull request may close these issues.

2 participants