aerospike / aerospike-server.docker

Dockerfiles for Aerospike Server
Other
141 stars 68 forks source link

Failing to Build -- release artifacts modified? #21

Closed tianon closed 7 years ago

tianon commented 7 years ago

Looks like the release artifact on https://www.aerospike.com for 3.11.0.2 was modified since this was updated (4 days ago) -- was that intentional? (ie, was it an innocent mistake, or a malicious one?)

In either case, here's the build log showing the failure: (minus a bunch of apt-get output)

Sending build context to Docker daemon 11.26 kB
Step 1/10 : FROM ubuntu:xenial
 ---> f49eec89601e
Step 2/10 : ENV AEROSPIKE_VERSION 3.11.0.2
 ---> Using cache
 ---> c3b6b507dd15
Step 3/10 : ENV AEROSPIKE_SHA256 a6dfff8d278f628ca681ec92cdefaef9f8a7c534e5c9feece5060ac7d3b65453
 ---> Using cache
 ---> 835f09b9b54b
Step 4/10 : RUN apt-get update -y   && apt-get install -y wget python python-argparse python-bcrypt openssl python-openssl logrotate net-tools iproute2 iputils-ping   && wget "https://www.aerospike.com/artifacts/aerospike-server-community/${AEROSPIKE_VERSION}/aerospike-server-community-${AEROSPIKE_VERSION}-ubuntu16.04.tgz" -O aerospike-server.tgz   && echo "$AEROSPIKE_SHA256 *aerospike-server.tgz" | sha256sum -c -   && mkdir aerospike   && tar xzf aerospike-server.tgz --strip-components=1 -C aerospike   && dpkg -i aerospike/aerospike-server-*.deb   && dpkg -i aerospike/aerospike-tools-*.deb   && mkdir -p /var/log/aerospike/   && mkdir -p /var/run/aerospike/   && rm -rf aerospike-server.tgz aerospike /var/lib/apt/lists/*   && dpkg -r wget ca-certificates   && dpkg --purge wget ca-certificates   && apt-get purge -y
 ---> Running in 2b3e4434c9f1
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
...
Fetched 24.7 MB in 3s (7547 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates cron file libatm1 libexpat1 libffi6 libgmp10
  libgnutls-openssl27 libgnutls30 libhogweed4 libidn11 libmagic1 libmnl0
  libnettle6 libp11-kit0 libpopt0 libpython-stdlib libpython2.7-minimal
  libsqlite3-0 libssl1.0.0 libtasn1-6 libxtables11 mime-support
  python-cffi-backend python-cryptography python-enum34 python-idna
  python-ipaddress python-minimal python-pkg-resources python-pyasn1
  python-six python2.7 python2.7-minimal
Suggested packages:
  anacron checksecurity exim4 | postfix | mail-transport-agent iproute2-doc
  gnutls-bin mailx python-doc python-tk python-cryptography-doc
  python-cryptography-vectors python-enum34-doc python-openssl-doc
  python-openssl-dbg python-setuptools doc-base python2.7-doc binutils
  binfmt-support
The following NEW packages will be installed:
  ca-certificates cron file iproute2 iputils-ping libatm1 libexpat1 libffi6
  libgmp10 libgnutls-openssl27 libgnutls30 libhogweed4 libidn11 libmagic1
  libmnl0 libnettle6 libp11-kit0 libpopt0 libpython-stdlib
  libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libssl1.0.0 libtasn1-6
  libxtables11 logrotate mime-support net-tools openssl python python-bcrypt
  python-cffi-backend python-cryptography python-enum34 python-idna
  python-ipaddress python-minimal python-openssl python-pkg-resources
  python-pyasn1 python-six python2.7 python2.7-minimal wget
0 upgraded, 44 newly installed, 0 to remove and 4 not upgraded.
Need to get 9521 kB of archives.
After this operation, 38.6 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 cron amd64 3.0pl1-128ubuntu2 [68.4 kB]
...
Running hooks in /etc/ca-certificates/update.d...
done.
--2017-01-21 16:04:38--  https://www.aerospike.com/artifacts/aerospike-server-community/3.11.0.2/aerospike-server-community-3.11.0.2-ubuntu16.04.tgz
Resolving www.aerospike.com (www.aerospike.com)... 52.9.212.130, 52.8.162.132
Connecting to www.aerospike.com (www.aerospike.com)|52.9.212.130|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6876045 (6.6M) [application/x-gzip]
Saving to: 'aerospike-server.tgz'

     0K .......... .......... .......... .......... ..........  0%  473K 14s
    50K .......... .......... .......... .......... ..........  1%  877K 11s
   100K .......... .......... .......... .......... ..........  2% 1.23M 9s
   150K .......... .......... .......... .......... ..........  2%  948K 8s
   200K .......... .......... .......... .......... ..........  3% 1.09M 8s
   250K .......... .......... .......... .......... ..........  4% 1.46M 7s
   300K .......... .......... .......... .......... ..........  5% 1.49M 7s
   350K .......... .......... .......... .......... ..........  5% 1.57M 6s
   400K .......... .......... .......... .......... ..........  6% 1.42M 6s
   450K .......... .......... .......... .......... ..........  7% 1.64M 6s
   500K .......... .......... .......... .......... ..........  8% 1.67M 6s
   550K .......... .......... .......... .......... ..........  8% 1.68M 5s
   600K .......... .......... .......... .......... ..........  9% 2.31M 5s
   650K .......... .......... .......... .......... .......... 10% 2.83M 5s
   700K .......... .......... .......... .......... .......... 11% 1.76M 5s
   750K .......... .......... .......... .......... .......... 11% 2.44M 4s
   800K .......... .......... .......... .......... .......... 12% 2.71M 4s
   850K .......... .......... .......... .......... .......... 13% 1.74M 4s
   900K .......... .......... .......... .......... .......... 14% 2.75M 4s
   950K .......... .......... .......... .......... .......... 14% 3.07M 4s
  1000K .......... .......... .......... .......... .......... 15% 2.66M 4s
  1050K .......... .......... .......... .......... .......... 16% 2.45M 4s
  1100K .......... .......... .......... .......... .......... 17% 3.67M 4s
  1150K .......... .......... .......... .......... .......... 17% 2.58M 3s
  1200K .......... .......... .......... .......... .......... 18% 2.61M 3s
  1250K .......... .......... .......... .......... .......... 19% 3.14M 3s
  1300K .......... .......... .......... .......... .......... 20% 3.71M 3s
  1350K .......... .......... .......... .......... .......... 20% 2.87M 3s
  1400K .......... .......... .......... .......... .......... 21% 5.14M 3s
  1450K .......... .......... .......... .......... .......... 22% 2.46M 3s
  1500K .......... .......... .......... .......... .......... 23% 6.57M 3s
  1550K .......... .......... .......... .......... .......... 23% 3.97M 3s
  1600K .......... .......... .......... .......... .......... 24% 2.54M 3s
  1650K .......... .......... .......... .......... .......... 25% 6.74M 3s
  1700K .......... .......... .......... .......... .......... 26% 2.48M 3s
  1750K .......... .......... .......... .......... .......... 26% 6.97M 3s
  1800K .......... .......... .......... .......... .......... 27% 4.75M 2s
  1850K .......... .......... .......... .......... .......... 28% 3.02M 2s
  1900K .......... .......... .......... .......... .......... 29% 7.46M 2s
  1950K .......... .......... .......... .......... .......... 29% 4.93M 2s
  2000K .......... .......... .......... .......... .......... 30% 2.97M 2s
  2050K .......... .......... .......... .......... .......... 31% 6.14M 2s
  2100K .......... .......... .......... .......... .......... 32% 5.77M 2s
  2150K .......... .......... .......... .......... .......... 32% 3.38M 2s
  2200K .......... .......... .......... .......... .......... 33% 6.19M 2s
  2250K .......... .......... .......... .......... .......... 34% 8.07M 2s
  2300K .......... .......... .......... .......... .......... 34% 3.21M 2s
  2350K .......... .......... .......... .......... .......... 35% 7.39M 2s
  2400K .......... .......... .......... .......... .......... 36% 5.27M 2s
  2450K .......... .......... .......... .......... .......... 37% 4.18M 2s
  2500K .......... .......... .......... .......... .......... 37% 4.75M 2s
  2550K .......... .......... .......... .......... .......... 38% 8.43M 2s
  2600K .......... .......... .......... .......... .......... 39% 7.72M 2s
  2650K .......... .......... .......... .......... .......... 40% 4.16M 2s
  2700K .......... .......... .......... .......... .......... 40% 5.53M 2s
  2750K .......... .......... .......... .......... .......... 41% 8.91M 2s
  2800K .......... .......... .......... .......... .......... 42% 6.01M 2s
  2850K .......... .......... .......... .......... .......... 43% 3.84M 1s
  2900K .......... .......... .......... .......... .......... 43% 6.36M 1s
  2950K .......... .......... .......... .......... .......... 44% 9.57M 1s
  3000K .......... .......... .......... .......... .......... 45% 8.10M 1s
  3050K .......... .......... .......... .......... .......... 46% 5.12M 1s
  3100K .......... .......... .......... .......... .......... 46% 5.46M 1s
  3150K .......... .......... .......... .......... .......... 47% 8.31M 1s
  3200K .......... .......... .......... .......... .......... 48% 6.86M 1s
  3250K .......... .......... .......... .......... .......... 49% 6.45M 1s
  3300K .......... .......... .......... .......... .......... 49% 4.91M 1s
  3350K .......... .......... .......... .......... .......... 50% 5.92M 1s
  3400K .......... .......... .......... .......... .......... 51% 18.4M 1s
  3450K .......... .......... .......... .......... .......... 52% 8.87M 1s
  3500K .......... .......... .......... .......... .......... 52% 7.38M 1s
  3550K .......... .......... .......... .......... .......... 53% 5.21M 1s
  3600K .......... .......... .......... .......... .......... 54% 5.11M 1s
  3650K .......... .......... .......... .......... .......... 55% 10.4M 1s
  3700K .......... .......... .......... .......... .......... 55% 11.9M 1s
  3750K .......... .......... .......... .......... .......... 56% 7.77M 1s
  3800K .......... .......... .......... .......... .......... 57% 6.10M 1s
  3850K .......... .......... .......... .......... .......... 58% 7.09M 1s
  3900K .......... .......... .......... .......... .......... 58% 8.08M 1s
  3950K .......... .......... .......... .......... .......... 59% 10.5M 1s
  4000K .......... .......... .......... .......... .......... 60% 8.53M 1s
  4050K .......... .......... .......... .......... .......... 61% 8.04M 1s
  4100K .......... .......... .......... .......... .......... 61% 6.36M 1s
  4150K .......... .......... .......... .......... .......... 62% 6.88M 1s
  4200K .......... .......... .......... .......... .......... 63% 10.1M 1s
  4250K .......... .......... .......... .......... .......... 64% 11.6M 1s
  4300K .......... .......... .......... .......... .......... 64% 11.8M 1s
  4350K .......... .......... .......... .......... .......... 65% 9.93M 1s
  4400K .......... .......... .......... .......... .......... 66% 5.43M 1s
  4450K .......... .......... .......... .......... .......... 67% 7.06M 1s
  4500K .......... .......... .......... .......... .......... 67% 11.7M 1s
  4550K .......... .......... .......... .......... .......... 68% 10.6M 1s
  4600K .......... .......... .......... .......... .......... 69% 11.7M 1s
  4650K .......... .......... .......... .......... .......... 69% 11.1M 1s
  4700K .......... .......... .......... .......... .......... 70% 8.58M 1s
  4750K .......... .......... .......... .......... .......... 71% 6.91M 1s
  4800K .......... .......... .......... .......... .......... 72% 7.62M 1s
  4850K .......... .......... .......... .......... .......... 72% 11.5M 1s
  4900K .......... .......... .......... .......... .......... 73% 11.3M 0s
  4950K .......... .......... .......... .......... .......... 74% 11.8M 0s
  5000K .......... .......... .......... .......... .......... 75% 10.5M 0s
  5050K .......... .......... .......... .......... .......... 75% 10.5M 0s
  5100K .......... .......... .......... .......... .......... 76% 7.87M 0s
  5150K .......... .......... .......... .......... .......... 77% 10.4M 0s
  5200K .......... .......... .......... .......... .......... 78% 8.48M 0s
  5250K .......... .......... .......... .......... .......... 78% 11.6M 0s
  5300K .......... .......... .......... .......... .......... 79% 11.0M 0s
  5350K .......... .......... .......... .......... .......... 80% 8.85M 0s
  5400K .......... .......... .......... .......... .......... 81% 16.5M 0s
  5450K .......... .......... .......... .......... .......... 81% 10.3M 0s
  5500K .......... .......... .......... .......... .......... 82% 10.1M 0s
  5550K .......... .......... .......... .......... .......... 83% 10.0M 0s
  5600K .......... .......... .......... .......... .......... 84% 9.71M 0s
  5650K .......... .......... .......... .......... .......... 84% 11.8M 0s
  5700K .......... .......... .......... .......... .......... 85% 11.4M 0s
  5750K .......... .......... .......... .......... .......... 86% 7.95M 0s
  5800K .......... .......... .......... .......... .......... 87% 11.5M 0s
  5850K .......... .......... .......... .......... .......... 87% 11.1M 0s
  5900K .......... .......... .......... .......... .......... 88% 11.7M 0s
  5950K .......... .......... .......... .......... .......... 89% 11.4M 0s
  6000K .......... .......... .......... .......... .......... 90% 8.75M 0s
  6050K .......... .......... .......... .......... .......... 90% 11.3M 0s
  6100K .......... .......... .......... .......... .......... 91% 11.7M 0s
  6150K .......... .......... .......... .......... .......... 92% 12.0M 0s
  6200K .......... .......... .......... .......... .......... 93% 11.3M 0s
  6250K .......... .......... .......... .......... .......... 93% 11.5M 0s
  6300K .......... .......... .......... .......... .......... 94% 11.4M 0s
  6350K .......... .......... .......... .......... .......... 95% 11.6M 0s
  6400K .......... .......... .......... .......... .......... 96% 8.76M 0s
  6450K .......... .......... .......... .......... .......... 96% 11.5M 0s
  6500K .......... .......... .......... .......... .......... 97% 11.5M 0s
  6550K .......... .......... .......... .......... .......... 98% 11.3M 0s
  6600K .......... .......... .......... .......... .......... 99% 11.3M 0s
  6650K .......... .......... .......... .......... .......... 99% 11.8M 0s
  6700K .......... ....                                       100% 15.0M=1.6s

2017-01-21 16:04:40 (4.21 MB/s) - 'aerospike-server.tgz' saved [6876045/6876045]

aerospike-server.tgz: FAILED
sha256sum: WARNING: 1 computed checksum did NOT match
Removing intermediate container 2b3e4434c9f1
The command '/bin/sh -c apt-get update -y   && apt-get install -y wget python python-argparse python-bcrypt openssl python-openssl logrotate net-tools iproute2 iputils-ping   && wget "https://www.aerospike.com/artifacts/aerospike-server-community/${AEROSPIKE_VERSION}/aerospike-server-community-${AEROSPIKE_VERSION}-ubuntu16.04.tgz" -O aerospike-server.tgz   && echo "$AEROSPIKE_SHA256 *aerospike-server.tgz" | sha256sum -c -   && mkdir aerospike   && tar xzf aerospike-server.tgz --strip-components=1 -C aerospike   && dpkg -i aerospike/aerospike-server-*.deb   && dpkg -i aerospike/aerospike-tools-*.deb   && mkdir -p /var/log/aerospike/   && mkdir -p /var/run/aerospike/   && rm -rf aerospike-server.tgz aerospike /var/lib/apt/lists/*   && dpkg -r wget ca-certificates   && dpkg --purge wget ca-certificates   && apt-get purge -y' returned a non-zero code: 1
tianon commented 7 years ago

Running ./update.sh gives me the following SHA256 change, but IMO this change ought to be looked into as well (to make sure we know why the bits on the server changed):

diff --git a/Dockerfile b/Dockerfile
index 8cfa5ea..cb13c6d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@
 FROM ubuntu:xenial

 ENV AEROSPIKE_VERSION 3.11.0.2
-ENV AEROSPIKE_SHA256 a6dfff8d278f628ca681ec92cdefaef9f8a7c534e5c9feece5060ac7d3b65453            
+ENV AEROSPIKE_SHA256 3ede8b3232a8ca0f0e34f2eb9f37fa244dc502020f2d185f96ee3097d88cda21

 # Install Aerospike Server and Tools
tianon commented 7 years ago

Might also be worth pointing out that update.sh appears to scrape the sha256 value from aerospike-server-community-${fullVersion}-debian7.tgz.sha256, while the Dockerfile actually downloads aerospike-server-community-${fullVersion}-ubuntu16.04.tgz (not sure whether that's actually relevant, simply an observation).

volmarl commented 7 years ago

Thanks for bringing this up. Our build systems had a glitch that got resolved. Let me update the offcial repo.