shipping-docker / vessel

Up and running with small Docker environments
https://vessel.shippingdocker.com
MIT License
1.07k stars 106 forks source link

Build Failure - Segmentation Fault :( #76

Closed NoelDavies closed 6 years ago

NoelDavies commented 6 years ago

Description

After doing a clean install of vessel on a new project (not this one - #70) I get the following:

./vessel build
Building app
Step 1/17 : FROM ubuntu:16.04
 ---> f975c5035748
Step 2/17 : LABEL maintainer="Chris Fidao"
 ---> Using cache
 ---> c5da905871fc
Step 3/17 : RUN useradd -ms /bin/bash -u 1337 vessel
 ---> Using cache
 ---> 5bb6ec163926
Step 4/17 : WORKDIR /var/www/html
 ---> Using cache
 ---> 9d9b9573b247
Step 5/17 : ENV GOSU_VERSION 1.7
 ---> Using cache
 ---> f023e8c26a74
Step 6/17 : RUN set -x     && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/*     && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"     && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"     && export GNUPGHOME="$(mktemp -d)"     && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4     && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu     && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc     && chmod +x /usr/local/bin/gosu     && gosu nobody true     && apt-get purge -y --auto-remove ca-certificates wget
 ---> Running in 9aea301baa7a
+ apt-get update
Segmentation fault
ERROR: Service 'app' failed to build: The command '/bin/sh -c set -x     && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/*     && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"     && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"     && export GNUPGHOME="$(mktemp -d)"     && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4     && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu     && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc     && chmod +x /usr/local/bin/gosu     && gosu nobody true     && apt-get purge -y --auto-remove ca-certificates wget' returned a non-zero code: 139

OS

My OS is:

Docker

The output of docker version:

Client:
 Version:   18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24
 Built: Wed Mar 21 23:06:22 2018
 OS/Arch:   darwin/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:  18.03.0-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.4
  Git commit:   0520e24
  Built:    Wed Mar 21 23:14:32 2018
  OS/Arch:  linux/amd64
  Experimental: true

The output of docker-compose version:

docker-compose version 1.20.1, build 5d8c71b
docker-py version: 3.1.4
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017
fideloper commented 6 years ago

Hi! I wonder if you need to allocate more ram to the docker VM? It’s part of the settings in the Docker menu. On Tue, Apr 3, 2018 at 06:02 Daniel Noel-Davies notifications@github.com wrote:

Description

After doing a clean install of vessel on a new project (not this one - #70 https://github.com/shipping-docker/vessel/issues/70) I get the following:

./vessel build Building app Step 1/17 : FROM ubuntu:16.04 ---> f975c5035748 Step 2/17 : LABEL maintainer="Chris Fidao" ---> Using cache ---> c5da905871fc Step 3/17 : RUN useradd -ms /bin/bash -u 1337 vessel ---> Using cache ---> 5bb6ec163926 Step 4/17 : WORKDIR /var/www/html ---> Using cache ---> 9d9b9573b247 Step 5/17 : ENV GOSU_VERSION 1.7 ---> Using cache ---> f023e8c26a74 Step 6/17 : RUN set -x && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc && chmod +x /usr/local/bin/gosu && gosu nobody true && apt-get purge -y --auto-remove ca-certificates wget ---> Running in 9aea301baa7a

  • apt-get update Segmentation fault ERROR: Service 'app' failed to build: The command '/bin/sh -c set -x && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/* && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc && chmod +x /usr/local/bin/gosu && gosu nobody true && apt-get purge -y --auto-remove ca-certificates wget' returned a non-zero code: 139

OS

My OS is:

  • [x ] MacOS [High Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client: Version: 18.03.0-ce API version: 1.37 Go version: go1.9.4 Git commit: 0520e24 Built: Wed Mar 21 23:06:22 2018 OS/Arch: darwin/amd64 Experimental: false Orchestrator: swarm

Server: Engine: Version: 18.03.0-ce API version: 1.37 (minimum version 1.12) Go version: go1.9.4 Git commit: 0520e24 Built: Wed Mar 21 23:14:32 2018 OS/Arch: linux/amd64 Experimental: true

The output of docker-compose version:

docker-compose version 1.20.1, build 5d8c71b docker-py version: 3.1.4 CPython version: 3.6.4 OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shipping-docker/vessel/issues/76, or mute the thread https://github.com/notifications/unsubscribe-auth/AAch0_t7yazjskSRBg7Z2Ozw-cAjfcwOks5tk1bVgaJpZM4TE3qU .

NoelDavies commented 6 years ago

It was on 12GB, but seems to be fine now - just a heads up to anybody reading this in the future (spooky!):

If you have the same issue, I had to completely reset docker, and it was fine. 🤷‍♂️

Thanks for your help anyway @fideloper

fideloper commented 6 years ago

👍

NoelDavies commented 6 years ago

Still getting the node box refusing to boot up through chris. I think I know why though.

The link to the image goes to https://hub.docker.com/r/vessel/node/ which is a 404.

Any ideas?

fideloper commented 6 years ago

I'll have to see if I can recreate that on my end - I've had a few people let me know the node box may have some issues lately. They probably made some changes on their newest base image that I need to account for