Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not work out of the box. #24

Open
tetienne opened this issue Mar 3, 2022 · 0 comments
Open

Example does not work out of the box. #24

tetienne opened this issue Mar 3, 2022 · 0 comments

Comments

@tetienne
Copy link

tetienne commented Mar 3, 2022

Hello,

Just trying this example, and because of NodeJS version, the build failed:

Logs
�[90m$�[0m /etc/buildkite-agent/hooks/environment
~~~ :earth_asia: Setting up environment variables

export BUILDKITE_AGENTS_PER_INSTANCE="1"

export BUILDKITE_ECR_POLICY="none"

export BUILDKITE_SECRETS_BUCKET="buildkite-managedsecretsbucket-mz89bc8bqo2o"

export BUILDKITE_STACK_NAME="buildkite"

export BUILDKITE_STACK_VERSION="v5.7.2"

export BUILDKITE_DOCKER_EXPERIMENTAL="false"

export DOCKER_VERSION="20.10.9"

export PLUGINS_ENABLED="secrets ecr docker-login"

export AWS_DEFAULT_REGION="eu-west-1"

export AWS_REGION="eu-west-1"

~~~ :llama: Setting up elastic stack environment (v5.7.2)

Checking docker

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Checking disk space

Disk space free: 246G

Inodes free: 125M

Configuring built-in plugins

Secrets plugin enabled

ECR plugin enabled

Docker-login plugin enabled

Discovered current region as "eu-west-1"

Discovered bucket region as "eu-west-1"

~~~ Downloading secrets from :s3: buildkite-managedsecretsbucket-mz89bc8bqo2o

Checking S3 for SSH keys:

- rails-parallel-docker-example/private_ssh_key

- rails-parallel-docker-example/id_rsa_github

- private_ssh_key

- id_rsa_github

Checking S3 for environment files:

- env

- environment

- rails-parallel-docker-example/env

- rails-parallel-docker-example/environment

Checking S3 for git credentials:

- git-credentials

- rails-parallel-docker-example/git-credentials

Started ephemeral ssh-agent (pid 5661)

Loading buildkite-managedsecretsbucket-mz89bc8bqo2o/private_ssh_key (3389 bytes) into ssh-agent (pid 5661)

Evaluating 132 bytes of env

Agent pid 5661

--- Fixing permissions for 'buildkite-i-00fad6c0ec42a9fc0-1/livestorm-1/rails-parallel-docker-example'...



�[90m# BUILDKITE_AGENTS_PER_INSTANCE added�[0m
�[90m# BUILDKITE_PLUGIN_S3_SECRETS_BUCKET added�[0m
�[90m# BUILDKITE_STACK_NAME added�[0m
�[90m# DOCKER_LOGIN_PLUGIN_ENABLED added�[0m
�[90m# AWS_DEFAULT_REGION added�[0m
�[90m# SECRETS_PLUGIN_ENABLED added�[0m
�[90m# SSH_AUTH_SOCK added�[0m
�[90m# BUILDKITE_STACK_VERSION added�[0m
�[90m# BUILDKITE_DOCKER_EXPERIMENTAL added�[0m
�[90m# BUILDKITE_ECR_POLICY added�[0m
�[90m# AWS_REGION added�[0m
�[90m# PLUGINS_ENABLED added�[0m
�[90m# DOCKER_CONFIG added�[0m
�[90m# ECR_PLUGIN_ENABLED added�[0m
�[90m# BUILDKITE_SECRETS_BUCKET added�[0m
�[90m# SSH_AGENT_PID added�[0m
�[90m# DOCKER_VERSION added�[0m
�[90m# BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY added�[0m
~~~ Preparing plugins
�[90m# Plugin "github.com/buildkite-plugins/docker-compose-buildkite-plugin#v3.9.0" already checked out (6c417a2)�[0m
~~~ Running plugin docker-compose pre-checkout hook
�[90m$�[0m /var/lib/buildkite-agent/plugins/github-com-buildkite-plugins-docker-compose-buildkite-plugin-v3-9-0/hooks/pre-checkout
~~~ Preparing working directory
�[90m$�[0m cd /var/lib/buildkite-agent/builds/buildkite-i-00fad6c0ec42a9fc0-1/livestorm-1/rails-parallel-docker-example
�[90m$�[0m git remote set-url origin https://github.com/buildkite/rails-docker-parallel-example.git
�[90m$�[0m git clean -ffxdq
�[90m$�[0m git fetch -v --prune -- origin 64ddda315bb44d883cae7d2c914fd309e3baacd4
POST git-upload-pack (102 bytes)

From https://github.com/buildkite/rails-docker-parallel-example

 * branch            64ddda315bb44d883cae7d2c914fd309e3baacd4 -> FETCH_HEAD

�[90m$�[0m git checkout -f 64ddda315bb44d883cae7d2c914fd309e3baacd4
HEAD is now at 64ddda3 Update dependency puma to v4.3.9 [SECURITY]

�[90m# Cleaning again to catch any post-checkout changes�[0m
�[90m$�[0m git clean -ffxdq
�[90m# Checking to see if Git data needs to be sent to Buildkite�[0m
�[90m$�[0m buildkite-agent meta-data exists buildkite:git:commit
~~~ Running global pre-command hook
�[90m$�[0m /etc/buildkite-agent/hooks/pre-command
~~~ Running plugin docker-compose command hook
�[90m$�[0m /var/lib/buildkite-agent/plugins/github-com-buildkite-plugins-docker-compose-buildkite-plugin-v3-9-0/hooks/command
~~~ :docker: Building Docker Compose Service: app

⚠� No pre-built image found from a previous 'build' step for this service and config file. Building image...

�[90m$�[0m docker-compose -f docker-compose.yml -p buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63 build --pull app

Building app

Sending build context to Docker daemon  48.13kB



Step 1/15 : FROM ruby:latest

latest: Pulling from library/ruby

Digest: sha256:a1ebc64daa170324dde5b668829de85487575eaa2bdea5216b4c983b1822f9df

Status: Image is up to date for ruby:latest

 ---> 8f824f60c31e

Step 2/15 : EXPOSE 5000

 ---> Using cache

 ---> 7b96e3202f31

Step 3/15 : ENV RAILS_ENV=test

 ---> Using cache

 ---> c569850cf362

Step 4/15 : RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main" > /etc/apt/sources.list.d/pgdg.list     && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -     && apt-get update     && apt-get install -y postgresql-client-10

 ---> Using cache

 ---> ff50028d0677

Step 5/15 : RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -     && apt-get update     && apt-get install -y nodejs     && npm install -q -g npm

 ---> Running in aa38aceef733



================================================================================

================================================================================



                              DEPRECATION WARNING                            



  Node.js 11.x is no longer actively supported!



  You will not receive security or critical stability updates for this version.



  You should migrate to a supported version of Node.js as soon as possible.

  Use the installation script that corresponds to the version of Node.js you

  wish to install. e.g.



   * https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium"

   * https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium" (recommended)

   * https://deb.nodesource.com/setup_16.x — Node.js 16 "Gallium"



  Please see https://github.com/nodejs/Release for details about which

  version may be appropriate for you.



  The NodeSource Node.js distributions repository contains

  information both about supported versions of Node.js and supported Linux

  distributions. To learn more about usage, see the repository:

    https://github.com/nodesource/distributions



================================================================================

================================================================================



Continuing in 20 seconds ...





## Installing the NodeSource Node.js 11.x repo...





## Populating apt-get cache...



+ apt-get update

Hit:1 http://security.debian.org/debian-security bullseye-security InRelease

Hit:2 http://deb.debian.org/debian bullseye InRelease

Hit:3 http://deb.debian.org/debian bullseye-updates InRelease

Hit:4 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease

Reading package lists...



## Installing packages required for setup: lsb-release...



+ apt-get install -y lsb-release > /dev/null 2>&1



## Confirming "bullseye" is supported...



+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_11.x/dists/bullseye/Release'



## Your distribution, identified as "bullseye", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support



The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_11.x | bash -     && apt-get update     && apt-get install -y nodejs     && npm install -q -g npm' returned a non-zero code: 1

�[31mERROR�[0m: Service 'app' failed to build : Build failed

�[31m🚨 Error: The command exited with status 1�[0m
^^^ +++
^^^ +++
user command error: The plugin docker-compose command hook exited with status 1
~~~ Uploading artifacts
�[90m$�[0m buildkite-agent artifact upload log/**/*
�[38;5;48m2022-03-03 09:06:46 INFO  �[0m �[0mNo files matched paths: log/**/*�[0m

~~~ Running global pre-exit hook
�[90m$�[0m /etc/buildkite-agent/hooks/pre-exit
~~~ Stopping ssh-agent 5661

Agent pid 5661 killed

�[90m# SSH_AGENT_PID removed�[0m
�[90m# SSH_AUTH_SOCK removed�[0m
~~~ Running plugin docker-compose pre-exit hook
�[90m$�[0m /var/lib/buildkite-agent/plugins/github-com-buildkite-plugins-docker-compose-buildkite-plugin-v3-9-0/hooks/pre-exit
~~~ :docker: Cleaning up after docker-compose

�[90m$�[0m docker-compose -f docker-compose.yml -p buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63 kill

�[90m$�[0m docker-compose -f docker-compose.yml -p buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63 rm --force -v

No stopped containers

�[90m$�[0m docker-compose -f docker-compose.yml -p buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63 down --volumes

Removing network buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63_default

�[33mWARNING�[0m: Network buildkite11a8f97bd8bc4b39a9d1c8e85d8f2f63_default not found.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant