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

Deploy failing for v1.0 branch missing npm package #2001

Closed
jlewi opened this issue Jun 16, 2020 · 5 comments
Closed

Deploy failing for v1.0 branch missing npm package #2001

jlewi opened this issue Jun 16, 2020 · 5 comments

Comments

@jlewi
Copy link
Contributor

jlewi commented Jun 16, 2020

Per #1984 I cut a 1.0 branch. Netlify auto-triggered a deploy but the deploy is failing. The logs are
below.

It looks like an npm package postcss-cli is missing.

So far it looks like PR previews and master is deploying fine. Not sure why that is.

3:24:42 PM: Build ready to start
3:24:44 PM: build-image version: c23500190e408b04bdfcf9703d16c460ef03b813
3:24:44 PM: build-image tag: v3.3.15
3:24:44 PM: buildbot version: 85ab9be17c6555a1d991d1cf7b0dbb73c18d0b92
3:24:44 PM: Fetching cached dependencies
3:24:44 PM: Starting to download cache of 426.6MB
3:24:49 PM: Finished downloading cache in 4.857444615s
3:24:49 PM: Starting to extract cache
3:25:01 PM: Finished extracting cache in 12.269516078s
3:25:01 PM: Finished fetching cache in 17.226443229s
3:25:01 PM: Starting to prepare the repo for build
3:25:02 PM: Preparing Git Reference refs/heads/v1.0-branch
3:25:04 PM: Starting build script
3:25:04 PM: Installing dependencies
3:25:04 PM: Python version set to 2.7
3:25:04 PM: Started restoring cached node version
3:25:08 PM: Finished restoring cached node version
3:25:08 PM: v8.17.0 is already installed.
3:25:09 PM: Now using node v8.17.0 (npm v6.13.4)
3:25:09 PM: Started restoring cached build plugins
3:25:09 PM: Finished restoring cached build plugins
3:25:09 PM: Attempting ruby version 2.3.6, read from environment
3:25:09 PM: Started restoring cached ruby version
3:25:10 PM: Finished restoring cached ruby version
3:25:11 PM: Using ruby version 2.3.6
3:25:12 PM: Successfully installed bundler-2.1.4
3:25:12 PM: 1 gem installed
3:25:12 PM: Using PHP version 5.6
3:25:12 PM: 5.2 is already installed.
3:25:12 PM: Using Swift version 5.2
3:25:12 PM: Started restoring cached go cache
3:25:13 PM: Finished restoring cached go cache
3:25:13 PM: Installing Go version 1.10
3:25:13 PM: unset GOOS;
3:25:13 PM: unset GOARCH;
3:25:13 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64';
3:25:13 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64/bin:${PATH}";
3:25:13 PM: go version >&2;
3:25:13 PM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.10.linux.amd64.env';
3:25:13 PM: go version go1.10 linux/amd64
3:25:13 PM: Installing missing commands
3:25:13 PM: Verify run directory
3:25:14 PM: ​
3:25:14 PM: ┌─────────────────────────────┐
3:25:14 PM: │        Netlify Build        │
3:25:14 PM: └─────────────────────────────┘
3:25:14 PM: ​
3:25:14 PM: ❯ Version
3:25:14 PM:   @netlify/build 2.0.10
3:25:14 PM: ​
3:25:14 PM: ❯ Flags
3:25:14 PM:   deployId: 5ee946aacf33160007f29e8a
3:25:14 PM:   mode: buildbot
3:25:14 PM: ​
3:25:14 PM: ❯ Current directory
3:25:14 PM:   /opt/build/repo
3:25:14 PM: ​
3:25:14 PM: ❯ Config file
3:25:14 PM:   /opt/build/repo/netlify.toml
3:25:14 PM: ​
3:25:14 PM: ❯ Context
3:25:14 PM:   branch-deploy
3:25:14 PM: ​
3:25:14 PM: ┌────────────────────────────────────┐
3:25:14 PM: │ 1. build.command from netlify.toml │
3:25:14 PM: └────────────────────────────────────┘
3:25:14 PM: ​
3:25:14 PM: $ hugo
3:25:14 PM: Building sites …
3:25:16 PM: ERROR 2020/06/16 22:25:16 error: failed to transform resource: POSTCSS: failed to transform "scss/main.css" (text/css): PostCSS not found; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/
3:25:18 PM: Total in 3528 ms
3:25:18 PM: Error: Error building site: logged 1 error(s)
3:25:18 PM: ​
3:25:18 PM: ┌─────────────────────────────┐
3:25:18 PM: │   "build.command" failed    │
3:25:18 PM: └─────────────────────────────┘
3:25:18 PM: ​
3:25:18 PM:   Error message
3:25:18 PM:   Command failed with exit code 255: hugo
3:25:18 PM: ​
3:25:18 PM:   Error location
3:25:18 PM:   In build.command from netlify.toml:
3:25:18 PM:   hugo
3:25:18 PM: ​
3:25:18 PM:   Resolved config
3:25:18 PM:   build:
3:25:18 PM:     command: hugo
3:25:18 PM:     publish: /opt/build/repo/public
3:25:18 PM: Caching artifacts
3:25:18 PM: Started saving build plugins
3:25:18 PM: Finished saving build plugins
3:25:18 PM: Started saving pip cache
3:25:18 PM: Finished saving pip cache
3:25:18 PM: Started saving emacs cask dependencies
3:25:18 PM: Finished saving emacs cask dependencies
3:25:18 PM: Started saving maven dependencies
3:25:18 PM: Finished saving maven dependencies
3:25:18 PM: Started saving boot dependencies
3:25:18 PM: Finished saving boot dependencies
3:25:19 PM: Started saving go dependencies
3:25:21 PM: Finished saving go dependencies
3:25:21 PM: Error running command: Build script returned non-zero exit code: 1
3:25:21 PM: Failing build: Failed to build site
3:25:21 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
3:25:21 PM: Finished processing build request in 37.597200996s
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the labels:

Label Probability
kind/bug 0.91

Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.

@jlewi
Copy link
Contributor Author

jlewi commented Jun 16, 2020

@joeliedtke @RFMVasconcelos @rmgogogo @Bobgy @animeshsingh does someone want to investigate?

Deploying from master works just fine.

@joeliedtke
Copy link
Member

/assign

I'll look into this.

@joeliedtke
Copy link
Member

/close

The deploy is working now that the configuration has been updated for branch deployments.

@k8s-ci-robot
Copy link
Contributor

@joeliedtke: Closing this issue.

In response to this:

/close

The deploy is working now that the configuration has been updated for branch deployments.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

3 participants