Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

"apt-get update" returns a "File has Unexpected Size" error when using cuda:10.1-cudnn7-*-ubuntu18.04 as base image (Docker build failing in CI) #1392

Closed
bnsblue opened this issue Oct 3, 2020 · 7 comments

Comments

@bnsblue
Copy link

bnsblue commented Oct 3, 2020

1. Issue or feature description

I am trying to build a docker image using nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 as the base.

FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
RUN apt-get update

The image builds successfully on my Mac laptop, but in Jenkins CI, it fails at apt-get update. I am attaching the error msg below.

12:05:28  Err:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Packages
12:05:28    File has unexpected size (47871 != 49498). Mirror sync in progress? [IP: 152.195.19.142 443]
12:05:28    Hashes of expected file:
12:05:28     - Filesize:49498 [weak]
12:05:28     - SHA256:332f3ee4e353b8a5e5a2bdd8fdbd47cf140c73822b82b328815f122e09e195a0
12:05:28     - SHA1:4dc8ef9a3ee3c97b3c26d46e07fdd83997e6880b [weak]
12:05:28     - MD5Sum:bbff3b9c3462257479d72521ee78ec29 [weak]
12:05:28    Release file created at: Wed, 23 Sep 2020 22:09:13 +0000

Similar

2. Steps to reproduce the issue

I am not sure how write this section because it fails only in my CI. But the docker file I am using is

FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
RUN apt update

3. Information to attach (optional if deemed irrelevant)

There have been similar issues:
#877
#1328

I tried the following:

  • I added RUN apt-get clean before apt-get update but it didn't help.
  • I also tried waiting for ~20 hours between builds but it gives me the same error
  • I did the approach mentioned here Problem with repositories for Ubuntu 16.04 #571 (comment) -- still doesn't help
  • I did this RUN apt-get -o Acquire::http::proxy=false update, but it still gives me the same error

A response in NVIDIA's developer forum indicates that it could be a CDN issue
https://forums.developer.nvidia.com/t/sudo-apt-get-update-issue/128229/25

@chandru-r
Copy link

I am hitting the same issue -

From: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/Release

49498 Packages.gz

However the file on disk is 47871.

I tried apt-get clean as well but didn't work.

@dotannn
Copy link

dotannn commented Oct 4, 2020

same here

@xf4j
Copy link

xf4j commented Oct 4, 2020

Same here for "nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04".

@nickmayn
Copy link

nickmayn commented Oct 5, 2020

I'm facing the exact same issue

@SeraphicRav
Copy link

SeraphicRav commented Oct 5, 2020

Same for nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04

@klueska
Copy link
Contributor

klueska commented Oct 5, 2020

This is not an issue for nvidia-docker itself.

All issues related to images running on top of nvidia-docker should be directed here:
https://forums.developer.nvidia.com/c/accelerated-computing/nvidia-gpu-cloud-ngc-users/25

@klueska klueska closed this as completed Oct 5, 2020
@chandru-r
Copy link

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

7 participants