jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

Gosu sometimes cant be installed correctly #108

Closed gustawdaniel closed 3 years ago

gustawdaniel commented 6 years ago

Sometimes I observe the following error. Unfortunately it is not reproducible because I see it in only some percent of builds. But it is not one depart case. I have seen this errors some times.

Processing triggers for libc-bin (2.19-18+deb8u10) ...

converted 'https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64' (ANSI_X3.4-1968) -> 'https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64' (UTF-8)
--2018-07-05 20:51:31--  https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb9a88-8591-11e6-9802-291a1e7e3b2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=1a241d5fa1671c09f0288ddd71a3a08cc0817217efecb64540175ee01efe0592&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64&response-content-type=application%2Foctet-stream [following]
converted 'https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb9a88-8591-11e6-9802-291a1e7e3b2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=1a241d5fa1671c09f0288ddd71a3a08cc0817217efecb64540175ee01efe0592&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb9a88-8591-11e6-9802-291a1e7e3b2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180705/us-east-1/s3/aws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=1a241d5fa1671c09f0288ddd71a3a08cc0817217efecb64540175ee01efe0592&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=gosu-amd64&response-content-type=application/octet-stream' (UTF-8)
--2018-07-05 20:51:31--  https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb9a88-8591-11e6-9802-291a1e7e3b2b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180705/us-east-1/s3/aws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=1a241d5fa1671c09f0288ddd71a3a08cc0817217efecb64540175ee01efe0592&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=gosu-amd64&response-content-type=application/octet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.227.232
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.227.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1286720 (1.2M) [application/octet-stream]
Saving to: '/usr/local/bin/gosu'

     0K .......... .......... .......... .......... ..........  3% 1.22M 1s
    50K .......... .......... .......... .......... ..........  7% 3.62M 1s
   100K .......... .......... .......... .......... .......... 11% 3.64M 0s
   150K .......... .......... .......... .......... .......... 15% 3.63M 0s
   200K .......... .......... .......... .......... .......... 19% 3.66M 0s
   250K .......... .......... .......... .......... .......... 23% 3.64M 0s
   300K .......... .......... .......... .......... .......... 27% 3.81M 0s
   350K .......... .......... .......... .......... .......... 31% 51.7M 0s
   400K .......... .......... .......... .......... .......... 35% 3.85M 0s
   450K .......... .......... .......... .......... .......... 39% 66.3M 0s
   500K .......... .......... .......... .......... .......... 43% 3.91M 0s
   550K .......... .......... .......... .......... .......... 47% 82.8M 0s
   600K .......... .......... .......... .......... .......... 51% 3.98M 0s
   650K .......... .......... .......... .......... .......... 55% 88.0M 0s
   700K .......... .......... .......... .......... .......... 59% 65.0M 0s
   750K .......... .......... .......... .......... .......... 63% 3.98M 0s
   800K .......... .......... .......... .......... .......... 67% 89.5M 0s
   850K .......... .......... .......... .......... .......... 71%  123M 0s
   900K .......... .......... .......... .......... .......... 75% 4.09M 0s
   950K .......... .......... .......... .......... .......... 79% 69.8M 0s
  1000K .......... .......... .......... .......... .......... 83% 85.5M 0s
  1050K .......... .......... .......... .......... .......... 87% 70.9M 0s
  1100K .......... .......... .......... .......... .......... 91% 4.19M 0s
  1150K .......... .......... .......... .......... .......... 95% 76.0M 0s
  1200K .......... .......... .......... .......... .......... 99% 68.4M 0s
  1250K ......                                                100%  106M=0.2s

2018-07-05 20:51:31 (6.10 MB/s) - '/usr/local/bin/gosu' saved [1286720/1286720]

converted 'https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc' (ANSI_X3.4-1968) -> 'https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc' (UTF-8)
--2018-07-05 20:51:31--  https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64.asc
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb862e-8591-11e6-8c1a-503ca4b54c7c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=4bbb5d994930e49d9e1119e1c6fe57871647744cb4afe76671a06ba3d7b7033d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64.asc&response-content-type=application%2Foctet-stream [following]
converted 'https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb862e-8591-11e6-8c1a-503ca4b54c7c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180705%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=4bbb5d994930e49d9e1119e1c6fe57871647744cb4afe76671a06ba3d7b7033d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dgosu-amd64.asc&response-content-type=application%2Foctet-stream' (ANSI_X3.4-1968) -> 'https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb862e-8591-11e6-8c1a-503ca4b54c7c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180705/us-east-1/s3/aws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=4bbb5d994930e49d9e1119e1c6fe57871647744cb4afe76671a06ba3d7b7033d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=gosu-amd64.asc&response-content-type=application/octet-stream' (UTF-8)
--2018-07-05 20:51:31--  https://github-production-release-asset-2e65be.s3.amazonaws.com/19708981/0afb862e-8591-11e6-8c1a-503ca4b54c7c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A/20180705/us-east-1/s3/aws4_request&X-Amz-Date=20180705T205131Z&X-Amz-Expires=300&X-Amz-Signature=4bbb5d994930e49d9e1119e1c6fe57871647744cb4afe76671a06ba3d7b7033d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment;%20filename=gosu-amd64.asc&response-content-type=application/octet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.227.232
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.227.232|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 543 [application/octet-stream]
Saving to: '/usr/local/bin/gosu.asc'

     0K                                                       100% 16.7M=0s

2018-07-05 20:51:32 (16.7 MB/s) - '/usr/local/bin/gosu.asc' saved [543/543]

gpg: keyring `/tmp/tmp.masltKEI65/secring.gpg' created
gpg: keyring `/tmp/tmp.masltKEI65/pubring.gpg' created
gpg: requesting key BF357DD4 from hkp server p80.pool.sks-keyservers.net
gpgkeys: key B42F6819007F00F88E364FD4036A9C25BF357DD4 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
The command '/bin/sh -c cd $APP_SOURCE_DIR &&   $BUILD_SCRIPTS_DIR/install-deps.sh &&   $BUILD_SCRIPTS_DIR/install-node.sh &&   $BUILD_SCRIPTS_DIR/install-phantom.sh &&   $BUILD_SCRIPTS_DIR/install-graphicsmagick.sh &&   $BUILD_SCRIPTS_DIR/install-mongo.sh &&   $BUILD_SCRIPTS_DIR/install-meteor.sh &&   $BUILD_SCRIPTS_DIR/build-meteor.sh &&   $BUILD_SCRIPTS_DIR/post-build-cleanup.sh' returned a non-zero code: 2
Exited with code 2

What can we do to avoid this error?

gustawdaniel commented 6 years ago

I had the same error again using Circle Ci. Has anyone seen this bug too?

hellogerard commented 5 years ago

Experiencing this intermittently when building the image also. GPG servers seem to be known to be flaky [1]. There are some workarounds [2]. Would love get this remedied and pushed!

  1. https://github.com/docker-library/official-images/issues/4252
  2. https://github.com/tianon/pgp-happy-eyeballs
imhazige commented 5 years ago

Mark, deploy the same meteor application many many times, today suddenly encounter this problem, now I know it is such a problem.

timbaas commented 5 years ago

I've just switched to the following fork which fixed it for me: https://github.com/gbhrdt/meteor-launchpad

gustawdaniel commented 3 years ago

There is connected issue with proposed fix:

https://github.com/tianon/gosu/issues/35

gustawdaniel commented 3 years ago

Closed as related with https://github.com/jshimko/meteor-launchpad/issues/138