I’m experiencing a deployment timeout: Build exceeded maximum allowed runtime
It seems odd that yarn install would timeout, especially since locally the 5th step takes very little time.
I’m not sure what levers I can pull. I tried using the default YARN version and I also tried forcing the YARN version to my local version (1.22.17), but neither worked.
You’ll see in the build output below that I enabled debug logs so there is more info.
we need to know your netlify site name.
https://app.netlify.com/sites/pp-ait-ui-dev
Build problems? Link or paste the FULL build log & build settings screenshot
9:07:40 AM: Build ready to start
9:07:42 AM: build-image version: 6ebfb829398e07eb99ad5455777162ff19838822 (xenial)
9:07:42 AM: build-image tag: v3.10.5
9:07:42 AM: buildbot version: 7eafb394e33f42f945c880ce4ac17c149867813a
9:07:42 AM: Building without cache
9:07:42 AM: Starting to prepare the repo for build
9:07:43 AM: No cached dependencies found. Cloning fresh repo
9:07:43 AM: git clone https://github.com/Platform-Pioneers/automated-invoice-tracker
9:07:44 AM: Preparing Git Reference refs/heads/dev
9:07:44 AM: Parsing package.json dependencies
9:07:45 AM:
❯ Initial build environment
baseRelDir: true
branch: dev
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: f543abf9-f1d3-40a4-bbc2-28898c574c8a
❯ UI build settings
baseRelDir: true
build:
command: react-scripts build
environment:
- NETLIFY_BUILD_DEBUG
- REACT_APP_API_BASE_URL
- REACT_APP_GOOGLE_TAG_MANAGER_AUTH
- REACT_APP_GOOGLE_TAG_MANAGER_ID
- REACT_APP_GOOGLE_TAG_MANAGER_PREVIEW
- SKIP_PREFLIGHT_CHECK
- YARN_VERSION
publish: build
❯ Resolved build environment
branch: dev
buildDir: /opt/build/repo
context: production
env: []
❯ Resolved config
build:
command: react-scripts build
commandOrigin: ui
environment:
- NETLIFY_BUILD_DEBUG
- REACT_APP_API_BASE_URL
- REACT_APP_GOOGLE_TAG_MANAGER_AUTH
- REACT_APP_GOOGLE_TAG_MANAGER_ID
- REACT_APP_GOOGLE_TAG_MANAGER_PREVIEW
- SKIP_PREFLIGHT_CHECK
- YARN_VERSION
publish: /opt/build/repo/build
publishOrigin: ui
9:07:46 AM: Starting build script
9:07:46 AM: Installing dependencies
9:07:46 AM: Python version set to 2.7
9:07:46 AM: Attempting node version 'v14.15.0' from .nvmrc
9:07:47 AM: Downloading and installing node v14.15.0...
9:07:47 AM: Downloading https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz...
9:07:48 AM: Computing checksum with sha256sum
9:07:48 AM: Checksums matched!
9:07:51 AM: Now using node v14.15.0 (npm v6.14.8)
9:07:52 AM: Started restoring cached build plugins
9:07:52 AM: Finished restoring cached build plugins
9:07:52 AM: Attempting ruby version 2.7.1, read from environment
9:07:53 AM: Required ruby-2.7.1 is not installed - installing.
9:07:54 AM: Searching for binary rubies, this might take some time.
9:07:54 AM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.7.1.tar.bz2
9:07:54 AM: Checking requirements for ubuntu.
9:07:54 AM: Requirements installation successful.
9:07:55 AM: ruby-2.7.1 - #configure
9:07:55 AM: ruby-2.7.1 - #download
9:07:56 AM: ruby-2.7.1 - #validate archive
9:08:01 AM: ruby-2.7.1 - #extract
9:08:04 AM: ruby-2.7.1 - #validate binary
9:08:05 AM: ruby-2.7.1 - #setup
9:08:05 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
9:08:06 AM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
9:08:06 AM: ruby-2.7.1 - #generating global wrappers........
9:08:06 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
9:08:06 AM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
9:08:07 AM: ruby-2.7.1 - #generating default wrappers........
9:08:07 AM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
9:08:08 AM: Using ruby version 2.7.1
9:08:08 AM: Using PHP version 5.6
9:08:08 AM: Started restoring cached yarn cache
9:08:08 AM: Finished restoring cached yarn cache
9:08:09 AM: Found yarn version (1.22.10) that doesn't match expected (1.22.17)
up to date in 0.04s
9:08:09 AM: Installing yarn at version 1.22.17
9:08:09 AM: Installing Yarn!
9:08:09 AM: > Downloading tarball...
9:08:09 AM: [1/2]: https://yarnpkg.com/downloads/1.22.17/yarn-v1.22.17.tar.gz --> /tmp/yarn.tar.gz.BdPlTL56mx
9:08:09 AM: % Total % Received % Xferd Average Speed Time Time Time Current
9:08:09 AM: Dload Upload Total Spent Left Speed
9:08:10 AM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:08:10 AM: 100 81 100 81 0 0 464 0 --:--:-- --:--:-- --:--:-- 465
9:08:10 AM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:08:10 AM: 100 94 100 94 0 0 210 0 --:--:-- --:--:-- --:--:-- 445
9:08:10 AM: 100 657 100 657 0 0 947 0 --:--:-- --:--:-- --:--:-- 947
9:08:10 AM: 100 1216k 100 1216k 0 0 1165k 0 0:00:01 0:00:01 --:--:-- 1165k
9:08:10 AM: [2/2]: https://yarnpkg.com/downloads/1.22.17/yarn-v1.22.17.tar.gz.asc --> /tmp/yarn.tar.gz.BdPlTL56mx.asc
9:08:10 AM: 100 85 100 85 0 0 3203 0 --:--:-- --:--:-- --:--:-- 3203
9:08:10 AM: 100 99 100 99 0 0 2095 0 --:--:-- --:--:-- --:--:-- 2095
9:08:11 AM: 100 661 100 661 0 0 4614 0 --:--:-- --:--:-- --:--:-- 4614
9:08:11 AM: 0 1028 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9:08:11 AM: 100 1028 100 1028 0 0 6002 0 --:--:-- --:--:-- --:--:-- 1003k
9:08:11 AM: > Verifying integrity...
9:08:11 AM: gpg: Signature made Sat 16 Oct 2021 03:08:26 PM UTC using RSA key ID 69475BAA
9:08:11 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
9:08:11 AM: gpg: WARNING: This key is not certified with a trusted signature!
9:08:11 AM: gpg: There is no indication that the signature belongs to the owner.
9:08:11 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
9:08:11 AM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
9:08:11 AM: > GPG signature looks good
9:08:11 AM: > Extracting to ~/.yarn...
9:08:11 AM: > Adding to $PATH...
9:08:11 AM: > Successfully installed Yarn 1.22.17! Please open another terminal where the `yarn` command will now be available.
9:08:12 AM: No yarn workspaces detected
9:08:12 AM: Started restoring cached node modules
9:08:12 AM: Finished restoring cached node modules
9:08:12 AM: Installing NPM modules using Yarn version 1.22.17
9:08:12 AM: yarn install v1.22.17
9:08:13 AM: [1/5] Validating package.json...
9:08:13 AM: [2/5] Resolving packages...
9:08:13 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^6.4.1"
9:08:13 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^7.4.0"
9:08:13 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^7.1.0"
9:08:13 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^7.1.1"
9:08:13 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^7.1.1"
9:08:14 AM: warning Resolution field "acorn@8.0.1" is incompatible with requested version "acorn@^8.2.4"
9:08:14 AM: [3/5] Fetching packages...
9:09:13 AM: [4/5] Linking dependencies...
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express@2.25.3" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core@2.25.3" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-types@0.9.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > graphql-subscriptions@1.2.1" has unmet peer dependency "graphql@^0.10.5 || ^0.11.3 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > graphql-tools@4.0.8" has unmet peer dependency "graphql@^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > subscriptions-transport-ws@0.9.19" has unmet peer dependency "graphql@>=0.10.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > @apollographql/graphql-upload-8-fork@8.1.3" has unmet peer dependency "graphql@0.13.1 - 15".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > apollo-cache-control@0.14.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > apollo-graphql@0.9.5" has unmet peer dependency "graphql@^14.2.1 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > apollo-server-errors@2.5.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > apollo-server-plugin-base@0.13.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > apollo-tracing@0.15.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > graphql-extensions@0.15.0" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > apollo-server-core > graphql-tag@2.12.6" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > graphql-tools > apollo-link@1.2.14" has unmet peer dependency "graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning "@bull-monitor/express > apollo-server-express > graphql-tools > apollo-utilities@1.3.4" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
9:09:13 AM: warning " > @chakra-ui/icons@1.0.13" has unmet peer dependency "@chakra-ui/system@>=1.0.0".
9:09:13 AM: warning "@chakra-ui/icons > @chakra-ui/icon@1.1.9" has unmet peer dependency "@chakra-ui/system@>=1.0.0".
9:09:13 AM: warning " > @choc-ui/chakra-autocomplete@4.11.3" has incorrect peer dependency "@chakra-ui/react@>=1.6.5".
9:09:13 AM: warning "@emotion/styled > @emotion/babel-plugin@11.3.0" has unmet peer dependency "@babel/core@^7.0.0".
9:09:13 AM: warning "@emotion/styled > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
9:09:13 AM: warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select@2.0.5" has incorrect peer dependency "react@^16.8.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select@2.0.5" has incorrect peer dependency "react-dom@^16.8.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select > react-select@3.1.0" has incorrect peer dependency "react@^16.8.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select > react-select@3.1.0" has incorrect peer dependency "react-dom@^16.8.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select > react-window@1.8.5" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select > react-window@1.8.5" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
9:09:13 AM: warning "monday-ui-react-core > react-windowed-select > react-select > react-input-autosize@2.2.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0-rc || ^16.0".
9:09:13 AM: warning " > routing-controllers@0.9.0" has incorrect peer dependency "class-transformer@^0.3.1".
9:09:13 AM: warning " > routing-controllers@0.9.0" has incorrect peer dependency "class-validator@^0.12.2".
9:09:13 AM: warning " > styled-components@5.3.0" has unmet peer dependency "react-is@>= 16.8.0".
9:09:13 AM: warning " > eslint-config-next@11.0.1" has unmet peer dependency "next@>=10.2.0".
9:09:13 AM: warning " > ts-loader@8.2.0" has unmet peer dependency "webpack@*".
9:09:13 AM: warning " > webpack-cli@4.6.0" has unmet peer dependency "webpack@4.x.x || 5.x.x".
9:09:13 AM: warning "webpack-cli > @webpack-cli/configtest@1.0.2" has unmet peer dependency "webpack@4.x.x || 5.x.x".
9:10:01 AM: [5/5] Building fresh packages...
hi there, so, the default build time for a site is 15 minutes. We can bump this up to more time if there is a payment method on file (i.e credit card) on the account.
I see you are a Pro account member, would you like us to bump you up to 30 mins and see if that helps?
Do you think that will solve the issue? Seems odd that building the fresh packages would take so long. Is that a reflection of the resource constraints of the build server?
i will have to get someone else to take a look at this, but in an attempt to get you unstuck and get a fresh build going, i would suggest you build locally and then push those files. is that something you can try?
i made a mistake i thought i had bumped your build time up to 90 minutes but i forgot a final step to save the changes. so, you were still running as if you only had a 45 minute build timeout.
can you try one more time? thank you, and sorry about that. it is definitely at 90 minutes, i just double checked it.
hi again, i just reviewed your build logs and it really does look like your app requires a 2+ hour build time. I do think you would benefit from trying to optimize this a bit, but i just bumped you up to a 3 hour build time so you can complete the build. if this still doesn’t work, the only real solution i can make is to build locally and then push the completed/built files so you don’t have to build on deploy.
I’ll also have someone from a different team reach out to you and see if we can maybe get you on a different plan to make things more efficient!