hypriot / os-rootfs

The root filesystem of HypriotOS
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
68 stars 40 forks source link

Error reading from server http://httpredir.debian.org #38

Closed StefanScherer closed 8 years ago

StefanScherer commented 8 years ago

Way too often we have trouble with http://httpredir.debian.org in Travis builds.

Get:110 http://httpredir.debian.org/debian/ jessie/main libopus0 amd64 1.1-2 [156 kB]
Err http://httpredir.debian.org/debian/ jessie/main libruby2.1 amd64 2.1.5-2+deb8u2
  Error reading from server. Remote end closed connection [IP: 128.31.0.66 80]
Get:111 http://httpredir.debian.org/debian/ jessie/main openbios-sparc all 1.1+svn1306-2 [157 kB]
Get:112 http://httpredir.debian.org/debian/ jessie/main libspice-server1 amd64 0.12.5-1+deb8u2 [472 kB]
Get:113 http://httpredir.debian.org/debian/ jessie/main seabios all 1.7.5-1 [112 kB]
Get:114 http://httpredir.debian.org/debian/ jessie/main openbios-ppc all 1.1+svn1306-2 [108 kB]
Get:115 http://httpredir.debian.org/debian/ jessie/main libbrlapi0.6 amd64 5.2~20141018-5 [81.1 kB]
Get:116 http://httpredir.debian.org/debian/ jessie/main rubygems-integration all 1.8 [4514 B]
Get:117 http://httpredir.debian.org/debian/ jessie/main libfdt1 amd64 1.4.0+dfsg-1 [15.5 kB]
Get:118 http://httpredir.debian.org/debian/ jessie/main ruby2.1 amd64 2.1.5-2+deb8u2 [275 kB]
Get:119 http://httpredir.debian.org/debian/ jessie/main libpsl0 amd64 0.5.1-1 [41.6 kB]
Get:120 http://httpredir.debian.org/debian/ jessie/main debootstrap all 1.0.67 [62.7 kB]
Get:121 http://httpredir.debian.org/debian/ jessie/main elfutils amd64 0.159-4.2 [275 kB]
Get:122 http://httpredir.debian.org/debian/ jessie/main ruby all 1:2.1.5+deb8u2 [9688 B]
Get:123 http://httpredir.debian.org/debian/ jessie/main shellcheck amd64 0.3.4-3 [842 kB]
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/r/ruby2.1/libruby2.1_2.1.5-2+deb8u2_amd64.deb  Error reading from server. Remote end closed connection [IP: 128.31.0.66 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 58.0 MB in 4s (11.7 MB/s)
The command '/bin/sh -c apt-get update && apt-get install -y     qemu     qemu-user-static     binfmt-support     debootstrap     elfutils     ruby     shellcheck     --no-install-recommends &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
make: *** [build] Error 1

In https://github.com/ctaggart/dotnet-vscode/issues/1 they suggested using apt caching. Maybe this helps.

StefanScherer commented 8 years ago

Fixed with #39 using a Docker base image hypriot/image-builder