Deploy ends in timeout, last log before timeout: info - Launching 31 workers

Hi, as in the title basically. I’ve resolved some issues with dependencies, but after upgrade to next 13 a preview deployment can’t be, well, deployed.

Here are the logs from the last try

7:49:13 PM: build-image version: c0621868af5001023389eeaa9dbfbbaf313f67e2 (focal)
7:49:13 PM: buildbot version: c0621868af5001023389eeaa9dbfbbaf313f67e2
7:49:13 PM: Building without cache
7:49:13 PM: Starting to prepare the repo for build
7:49:14 PM: No cached dependencies found. Cloning fresh repo
7:49:14 PM: git clone --filter=blob:none https://github.com/Technigo/technigo-web
7:49:14 PM: Preparing Git Reference pull/124/head
7:49:15 PM: Parsing package.json dependencies
7:49:16 PM: Starting build script
7:49:16 PM: Installing dependencies
7:49:16 PM: Python version set to 2.7
7:49:17 PM: Downloading and installing node v16.17.0...
7:49:17 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
7:49:18 PM: Computing checksum with sha256sum
7:49:18 PM: Checksums matched!
7:49:19 PM: Now using node v16.17.0 (npm v8.15.0)
7:49:20 PM: Enabling Node.js Corepack
7:49:20 PM: Started restoring cached build plugins
7:49:20 PM: Finished restoring cached build plugins
7:49:20 PM: Attempting Ruby version 2.6.2, read from environment
7:49:20 PM: Required ruby-2.6.2 is not installed - installing.
7:49:20 PM: Searching for binary rubies, this might take some time.
7:49:20 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
7:49:20 PM: Checking requirements for ubuntu.
7:49:21 PM: Requirements installation successful.
7:49:21 PM: ruby-2.6.2 - #configure
7:49:21 PM: ruby-2.6.2 - #download
7:49:21 PM: ruby-2.6.2 - #validate archive
7:49:24 PM: ruby-2.6.2 - #extract
7:49:26 PM: ruby-2.6.2 - #validate binary
7:49:26 PM: ruby-2.6.2 - #setup
7:49:26 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
7:49:27 PM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
7:49:27 PM: ruby-2.6.2 - #generating global wrappers........
7:49:27 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
7:49:27 PM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
7:49:27 PM: ruby-2.6.2 - #generating default wrappers........
7:49:27 PM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
7:49:28 PM: Using Ruby version 2.6.2
7:49:28 PM: Using PHP version 8.0
7:49:28 PM: Started restoring cached corepack dependencies
7:49:28 PM: Finished restoring cached corepack dependencies
7:49:28 PM: Started restoring cached yarn cache
7:49:28 PM: Finished restoring cached yarn cache
7:49:28 PM: No yarn workspaces detected
7:49:28 PM: Started restoring cached node modules
7:49:28 PM: Finished restoring cached node modules
7:49:28 PM: Installing npm packages using Yarn version 1.22.19
7:49:29 PM: yarn install v1.22.19
7:49:29 PM: warning package.json: No license field
7:49:29 PM: warning No license field
7:49:29 PM: [1/4] Resolving packages...
7:49:29 PM: [2/4] Fetching packages...
7:49:42 PM: [3/4] Linking dependencies...
7:49:46 PM: [4/4] Building fresh packages...
7:49:48 PM: Done in 19.15s.
7:49:48 PM: npm packages installed using Yarn
7:49:48 PM: warning package.json: No license field
7:49:48 PM: Started restoring cached go cache
7:49:48 PM: Finished restoring cached go cache
7:49:48 PM: Installing Go version 1.12 (requested 1.12)
7:49:53 PM: go version go1.12 linux/amd64
7:49:53 PM: Detected 1 framework(s)
7:49:53 PM: "next" at version "13.1.6"
7:49:53 PM: Section completed: initializing
7:49:54 PM: ​
7:49:54 PM:   Netlify Build                                                 
7:49:54 PM: ────────────────────────────────────────────────────────────────
7:49:54 PM: ​
7:49:54 PM: ❯ Version
7:49:54 PM:   @netlify/build 29.5.8
7:49:54 PM: ​
7:49:54 PM: ❯ Flags
7:49:54 PM:   baseRelDir: false
7:49:54 PM:   buildId: 63f51222f7117f0072a9b412
7:49:54 PM:   deployId: 63f51222f7117f0072a9b414
7:49:54 PM: ​
7:49:54 PM: ❯ Current directory
7:49:54 PM:   /opt/build/repo
7:49:54 PM: ​
7:49:54 PM: ❯ Config file
7:49:54 PM:   No config file was defined: using default values.
7:49:54 PM: ​
7:49:54 PM: ❯ Context
7:49:54 PM:   deploy-preview
7:49:54 PM: ​
7:49:54 PM: ❯ Using Next.js Runtime - v4.30.4
7:49:56 PM: ​
7:49:56 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
7:49:56 PM: ────────────────────────────────────────────────────────────────
7:49:56 PM: ​
7:49:56 PM: No Next.js cache to restore.
7:49:56 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
7:49:56 PM: ​
7:49:56 PM: (@netlify/plugin-nextjs onPreBuild completed in 17ms)
7:49:56 PM: ​
7:49:56 PM:   2. Build command from Netlify app                             
7:49:56 PM: ────────────────────────────────────────────────────────────────
7:49:56 PM: ​
7:49:56 PM: $ yarn deploy
7:49:56 PM: yarn run v1.22.19
7:49:56 PM: warning package.json: No license field
7:49:56 PM: $ next build && next export && cp _redirects out/_redirects
7:49:56 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
7:49:56 PM: info  - Linting and checking validity of types...
7:49:58 PM: ./src/pages/_document.tsx
7:49:58 PM: 62:11  Warning: Prefer `next/script` component when using the inline script for Google Analytics. See: https://nextjs.org/docs/messages/next-script-for-ga  @next/next/next-script-for-ga
7:49:58 PM: ./src/slices/VideoHero/index.tsx
7:49:58 PM: 261:11  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Use `<Image />` from `next/image` instead to utilize Image Optimization. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
7:49:58 PM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
7:50:02 PM: info  - Creating an optimized production build...
7:50:02 PM: info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
7:50:02 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
7:50:14 PM: info  - Compiled successfully
7:50:14 PM: info  - Collecting page data...
7:50:21 PM: info  - Generating static pages (0/4)
7:50:21 PM: info  - Generating static pages (1/4)
7:50:21 PM: info  - Generating static pages (2/4)
7:50:21 PM: info  - Generating static pages (3/4)
7:50:21 PM: info  - Generating static pages (4/4)
7:50:21 PM: info  - Finalizing page optimization...
7:50:21 PM: Route (pages)                              Size     First Load JS
7:50:21 PM: ┌ λ /                                      238 B           359 kB
7:50:21 PM: ├   /_app                                  0 B             270 kB
7:50:21 PM: ├ λ /[...slug]                             198 B           359 kB
7:50:21 PM: ├ ○ /404                                   250 B           270 kB
7:50:21 PM: ├ ○ /apply                                 272 B           270 kB
7:50:21 PM: ├ λ /form/[slug]                           4.21 kB         292 kB
7:50:21 PM: ├ ○ /notify-me                             276 B           270 kB
7:50:21 PM: ├ λ /preview                               1.2 kB          277 kB
7:50:21 PM: └ λ /signup/[slug]                         7.11 kB         283 kB
7:50:21 PM: + First Load JS shared by all              270 kB
7:50:21 PM:   ├ chunks/framework-2c79e2a64abdb08b.js   45.2 kB
7:50:21 PM:   ├ chunks/main-e27c278221c16b82.js        31.7 kB
7:50:21 PM:   ├ chunks/pages/_app-5b7d378dfcb0f1b9.js  191 kB
7:50:21 PM:   └ chunks/webpack-203aa54535d94ebd.js     1.93 kB
7:50:21 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
7:50:21 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
7:50:22 PM: info  - using build directory: /opt/build/repo/.next
7:50:22 PM: info  - Copying "static build" directory
7:50:22 PM: info  - Launching 31 workers
8:35:08 PM: Build exceeded maximum allowed runtime

a picture of the setup:


Node version is set int the env vars to 16.17.0
And the yarn version to 1.22.19

and if it helps the current package.json, maybe there’s something there that conflicts

{
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start",
    "deploy": "next build && next export && cp _redirects out/_redirects",
    "lint": "eslint ./"
  },
  "dependencies": {
    "@babel/core": "^7.21.0",
    "@babel/plugin-syntax-flow": "^7.18.6",
    "@babel/plugin-transform-react-jsx": "^7.21.0",
    "@prismicio/client": "^6.7.3",
    "@prismicio/helpers": "^2.3.9",
    "@sentry/browser": "^7.38.0",
    "@zeit/next-typescript": "^1.1.1",
    "body-scroll-lock": "^4.0.0-beta.0",
    "cookie": "^0.5.0",
    "drip-nodejs": "^3.1.1",
    "express": "^4.18.2",
    "js-cookie": "^3.0.1",
    "moment": "^2.29.4",
    "next": "^13.1.6",
    "nprogress": "^0.2.0",
    "react": "^18.2.0",
    "react-cookie-consent": "^8.0.1",
    "react-dom": "^18.2.0",
    "react-is": "^18.2.0",
    "styled-components": "^5.3.6",
    "styled-normalize": "^8.0.7",
    "url-loader": "^4.1.1",
    "webpack": "^5.75.0"
  },
  "devDependencies": {
    "@netlify/plugin-nextjs": "^4.30.4",
    "@next/eslint-plugin-next": "^13.1.6",
    "@types/cookie": "^0.5.1",
    "@types/js-cookie": "^3.0.3",
    "@types/next": "^9.0.0",
    "@types/node": "^18.14.0",
    "@types/nprogress": "^0.2.0",
    "@types/react": "^18.0.28",
    "@types/react-dom": "^18.0.11",
    "@types/styled-components": "^5.1.26",
    "@typescript-eslint/eslint-plugin": "^5.53.0",
    "@typescript-eslint/parser": "^5.53.0",
    "babel-eslint": "^10.1.0",
    "babel-plugin-module-resolver": "^5.0.0",
    "babel-plugin-styled-components": "^2.0.7",
    "eslint": "^8.34.0",
    "eslint-config-react-app": "^7.0.1",
    "eslint-plugin-flowtype": "^8.0.3",
    "eslint-plugin-import": "^2.27.5",
    "eslint-plugin-jsx-a11y": "^6.7.1",
    "eslint-plugin-react": "^7.32.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "node-loader": "^2.0.0",
    "typescript": "^4.9.5",
    "yarn-audit-fix": "^9.3.9",
    "yarn-upgrade-all": "^0.7.2"
  },
  "version": "0.0.0"
}

Please let me know if any additional info is needed, I’ll gladly provide it. Thank you in advance and have a nice day

Hi @daniel1 :wave:t6: welcome to the forums can you please share the link to your deploy log?

Sure, here are the logs, and here’s a link, but I don’t know if this is the link you’re asking for, or should I look for another one in the deployment panel

7:49:06 PM: Build ready to start
7:49:13 PM: build-image version: c0621868af5001023389eeaa9dbfbbaf313f67e2 (focal)
7:49:13 PM: buildbot version: c0621868af5001023389eeaa9dbfbbaf313f67e2
7:49:13 PM: Building without cache
7:49:13 PM: Starting to prepare the repo for build
7:49:14 PM: No cached dependencies found. Cloning fresh repo
7:49:14 PM: git clone --filter=blob:none https://github.com/Technigo/technigo-web
7:49:14 PM: Preparing Git Reference pull/124/head
7:49:15 PM: Parsing package.json dependencies
7:49:16 PM: Starting build script
7:49:16 PM: Installing dependencies
7:49:16 PM: Python version set to 2.7
7:49:17 PM: Downloading and installing node v16.17.0...
7:49:17 PM: Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
7:49:18 PM: Computing checksum with sha256sum
7:49:18 PM: Checksums matched!
7:49:19 PM: Now using node v16.17.0 (npm v8.15.0)
7:49:20 PM: Enabling Node.js Corepack
7:49:20 PM: Started restoring cached build plugins
7:49:20 PM: Finished restoring cached build plugins
7:49:20 PM: Attempting Ruby version 2.6.2, read from environment
7:49:20 PM: Required ruby-2.6.2 is not installed - installing.
7:49:20 PM: Searching for binary rubies, this might take some time.
7:49:20 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
7:49:20 PM: Checking requirements for ubuntu.
7:49:21 PM: Requirements installation successful.
7:49:21 PM: ruby-2.6.2 - #configure
7:49:21 PM: ruby-2.6.2 - #download
7:49:21 PM: ruby-2.6.2 - #validate archive
7:49:24 PM: ruby-2.6.2 - #extract
7:49:26 PM: ruby-2.6.2 - #validate binary
7:49:26 PM: ruby-2.6.2 - #setup
7:49:26 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
7:49:27 PM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
7:49:27 PM: ruby-2.6.2 - #generating global wrappers........
7:49:27 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
7:49:27 PM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
7:49:27 PM: ruby-2.6.2 - #generating default wrappers........
7:49:27 PM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
7:49:28 PM: Using Ruby version 2.6.2
7:49:28 PM: Using PHP version 8.0
7:49:28 PM: Started restoring cached corepack dependencies
7:49:28 PM: Finished restoring cached corepack dependencies
7:49:28 PM: Started restoring cached yarn cache
7:49:28 PM: Finished restoring cached yarn cache
7:49:28 PM: No yarn workspaces detected
7:49:28 PM: Started restoring cached node modules
7:49:28 PM: Finished restoring cached node modules
7:49:28 PM: Installing npm packages using Yarn version 1.22.19
7:49:29 PM: yarn install v1.22.19
7:49:29 PM: warning package.json: No license field
7:49:29 PM: warning No license field
7:49:29 PM: [1/4] Resolving packages...
7:49:29 PM: [2/4] Fetching packages...
7:49:42 PM: [3/4] Linking dependencies...
7:49:46 PM: [4/4] Building fresh packages...
7:49:48 PM: Done in 19.15s.
7:49:48 PM: npm packages installed using Yarn
7:49:48 PM: warning package.json: No license field
7:49:48 PM: Started restoring cached go cache
7:49:48 PM: Finished restoring cached go cache
7:49:48 PM: Installing Go version 1.12 (requested 1.12)
7:49:53 PM: go version go1.12 linux/amd64
7:49:53 PM: Detected 1 framework(s)
7:49:53 PM: "next" at version "13.1.6"
7:49:53 PM: Section completed: initializing
7:49:54 PM: ​
7:49:54 PM:   Netlify Build                                                 
7:49:54 PM: ────────────────────────────────────────────────────────────────
7:49:54 PM: ​
7:49:54 PM: ❯ Version
7:49:54 PM:   @netlify/build 29.5.8
7:49:54 PM: ​
7:49:54 PM: ❯ Flags
7:49:54 PM:   baseRelDir: false
7:49:54 PM:   buildId: 63f51222f7117f0072a9b412
7:49:54 PM:   deployId: 63f51222f7117f0072a9b414
7:49:54 PM: ​
7:49:54 PM: ❯ Current directory
7:49:54 PM:   /opt/build/repo
7:49:54 PM: ​
7:49:54 PM: ❯ Config file
7:49:54 PM:   No config file was defined: using default values.
7:49:54 PM: ​
7:49:54 PM: ❯ Context
7:49:54 PM:   deploy-preview
7:49:54 PM: ​
7:49:54 PM: ❯ Using Next.js Runtime - v4.30.4
7:49:56 PM: ​
7:49:56 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
7:49:56 PM: ────────────────────────────────────────────────────────────────
7:49:56 PM: ​
7:49:56 PM: No Next.js cache to restore.
7:49:56 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
7:49:56 PM: ​
7:49:56 PM: (@netlify/plugin-nextjs onPreBuild completed in 17ms)
7:49:56 PM: ​
7:49:56 PM:   2. Build command from Netlify app                             
7:49:56 PM: ────────────────────────────────────────────────────────────────
7:49:56 PM: ​
7:49:56 PM: $ yarn deploy
7:49:56 PM: yarn run v1.22.19
7:49:56 PM: warning package.json: No license field
7:49:56 PM: $ next build && next export && cp _redirects out/_redirects
7:49:56 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
7:49:56 PM: info  - Linting and checking validity of types...
7:49:58 PM: ./src/pages/_document.tsx
7:49:58 PM: 62:11  Warning: Prefer `next/script` component when using the inline script for Google Analytics. See: https://nextjs.org/docs/messages/next-script-for-ga  @next/next/next-script-for-ga
7:49:58 PM: ./src/slices/VideoHero/index.tsx
7:49:58 PM: 261:11  Warning: Using `<img>` could result in slower LCP and higher bandwidth. Use `<Image />` from `next/image` instead to utilize Image Optimization. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
7:49:58 PM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
7:50:02 PM: info  - Creating an optimized production build...
7:50:02 PM: info  - Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
7:50:02 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
7:50:14 PM: info  - Compiled successfully
7:50:14 PM: info  - Collecting page data...
7:50:21 PM: info  - Generating static pages (0/4)
7:50:21 PM: info  - Generating static pages (1/4)
7:50:21 PM: info  - Generating static pages (2/4)
7:50:21 PM: info  - Generating static pages (3/4)
7:50:21 PM: info  - Generating static pages (4/4)
7:50:21 PM: info  - Finalizing page optimization...
7:50:21 PM: Route (pages)                              Size     First Load JS
7:50:21 PM: ┌ λ /                                      238 B           359 kB
7:50:21 PM: ├   /_app                                  0 B             270 kB
7:50:21 PM: ├ λ /[...slug]                             198 B           359 kB
7:50:21 PM: ├ ○ /404                                   250 B           270 kB
7:50:21 PM: ├ ○ /apply                                 272 B           270 kB
7:50:21 PM: ├ λ /form/[slug]                           4.21 kB         292 kB
7:50:21 PM: ├ ○ /notify-me                             276 B           270 kB
7:50:21 PM: ├ λ /preview                               1.2 kB          277 kB
7:50:21 PM: └ λ /signup/[slug]                         7.11 kB         283 kB
7:50:21 PM: + First Load JS shared by all              270 kB
7:50:21 PM:   ├ chunks/framework-2c79e2a64abdb08b.js   45.2 kB
7:50:21 PM:   ├ chunks/main-e27c278221c16b82.js        31.7 kB
7:50:21 PM:   ├ chunks/pages/_app-5b7d378dfcb0f1b9.js  191 kB
7:50:21 PM:   └ chunks/webpack-203aa54535d94ebd.js     1.93 kB
7:50:21 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
7:50:21 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
7:50:22 PM: info  - using build directory: /opt/build/repo/.next
7:50:22 PM: info  - Copying "static build" directory
7:50:22 PM: info  - Launching 31 workers
8:35:08 PM: Build exceeded maximum allowed runtime

Hi @daniel1,

I can see you’re using some server-side rendered endpoints along with next export. I don’t think that’s supposed to work. Are you sure your setup is correct?