Build time-out issue

Hi everybody,

I hope someone can help me with this.
I’m trying to create a netlify function using the CLI functions:create.
I was able yesterday to deploy the apollo-graphql server (from the template) and it worked.
Then I made some other try outs trying to integrate firebase-admin in there with no luck. When I finally realized what could have been the issue for firebase-admin to not work in there I faced a timeout deploy failure.
I thought something in my code was wrong again so i decided to restart from scratch (using the apollo graphql template as it is) but now the deployment fails always with the timeout issue and I don’t really understand why.

thank you for your helps!

I pasted the build logs here:

2:42:07 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: β€˜functions’ versus β€˜β€™ in the Netlify UI
2:42:07 PM: Creating functions prep folder
2:42:07 PM: Starting build script
2:42:07 PM: Installing dependencies
2:42:01 PM: Build ready to start
2:42:04 PM: build-image version: 30f629161c0736b1a3ecd8b418e5eeffab5c0faf
2:42:04 PM: build-image tag: v3.3.14
2:42:04 PM: buildbot version: 578c7628507b646d2c2478c57933187c689f36ec
2:42:04 PM: Fetching cached dependencies
2:42:04 PM: Failed to fetch cache, continuing with build
2:42:04 PM: Starting to prepare the repo for build
2:42:05 PM: No cached dependencies found. Cloning fresh repo
2:42:05 PM: git clone https://github.com/fuvizzo/smart-menu-back-end
2:42:05 PM: Preparing Git Reference refs/heads/master
2:42:08 PM: v10.20.1 is already installed.
2:42:09 PM: Now using node v10.20.1 (npm v6.14.4)
2:42:09 PM: Started restoring cached build plugins
2:42:09 PM: Finished restoring cached build plugins
2:42:09 PM: Attempting ruby version 2.6.2, read from environment
2:42:10 PM: Using ruby version 2.6.2
2:42:11 PM: Using PHP version 5.6
2:42:11 PM: 5.2 is already installed.
2:42:11 PM: Using Swift version 5.2
2:42:11 PM: Started restoring cached node modules
2:42:11 PM: Finished restoring cached node modules
2:42:11 PM: Installing NPM modules using NPM version 6.14.4
2:42:12 PM: npm
2:42:12 PM: notice created a lockfile as package-lock.json. You should commit this file.
2:42:12 PM: npm
2:42:12 PM: WARN smart-menu-back-end@1.0.0 No description
2:42:12 PM: npm WARN smart-menu-back-end@1.0.0 No repository field.
2:42:12 PM: up to date in 0.518s
2:42:12 PM: found 0 vulnerabilities
2:42:12 PM: NPM modules installed
2:42:13 PM: Started restoring cached go cache
2:42:13 PM: Finished restoring cached go cache
2:42:13 PM: go version go1.12 linux/amd64
2:42:13 PM: go version go1.12 linux/amd64
2:42:13 PM: Installing missing commands
2:42:13 PM: Verify run directory
2:42:14 PM: ​
2:42:14 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
2:42:14 PM: β”‚ Netlify Build β”‚
2:42:14 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2:42:14 PM: ​
2:42:14 PM: ❯ Version
2:42:14 PM: @netlify/build 1.0.11
2:42:14 PM: ​
2:42:14 PM: ❯ Flags
2:42:14 PM: mode: buildbot
2:42:15 PM: ​
2:42:15 PM: ❯ Current directory
2:42:15 PM: /opt/build/repo
2:42:15 PM: ​
2:42:15 PM: ❯ Config file
2:42:15 PM: /opt/build/repo/netlify.toml
2:42:15 PM: ​
2:42:15 PM: ❯ Context
2:42:15 PM: production
2:42:15 PM: ​
2:42:15 PM: ❯ Loading plugins
2:42:15 PM: - @netlify/plugin-functions-core@1.0.11 from core
2:42:16 PM: ​
2:42:16 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
2:42:16 PM: β”‚ 1. build.command from netlify.toml β”‚
2:42:16 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2:42:16 PM: ​
2:42:16 PM: $ npm run build:functions
2:42:16 PM: > smart-menu-back-end@1.0.0 build:functions /opt/build/repo
2:42:16 PM: > cd functions/apollo-graphql && npm install
2:42:20 PM: > core-js@3.6.5 postinstall /opt/build/repo/functions/apollo-graphql/node_modules/core-js
2:42:20 PM: > node -e β€œtry{require(β€˜./postinstall’)}catch(e){}”
2:42:20 PM: Thank you for using core-js ( GitHub - zloirock/core-js: Standard Library ) for polyfilling JavaScript standard library!
2:42:20 PM: The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
2:42:20 PM: > https://opencollective.com/core-js
2:42:20 PM: > https://www.patreon.com/zloirock
2:42:20 PM: Also, the author of core-js ( zloirock (Denis Pushkarev) Β· GitHub ) is looking for a good job -)
2:42:20 PM: > @apollo/protobufjs@1.0.4 postinstall /opt/build/repo/functions/apollo-graphql/node_modules/@apollo/protobufjs
2:42:20 PM: > node scripts/postinstall
2:42:20 PM: npm
2:42:20 PM: WARN apollo-graphql@1.0.0 No repository field.
2:42:20 PM: added 121 packages from 221 contributors and audited 122 packages in 3.447s
2:42:20 PM: 17 packages are looking for funding
2:42:20 PM: run npm fund for details
2:42:20 PM: found 0 vulnerabilities
2:42:20 PM: ​
2:42:20 PM: (build.command completed in 4.5s)
2:42:20 PM: ​
2:42:20 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
2:42:20 PM: β”‚ 2. onPostBuild command from @netlify/plugin-functions-core β”‚
2:42:20 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2:42:20 PM: ​
2:42:20 PM: Packaging functions from functions
2:42:26 PM: Functions packaged in /tmp/zisi-5ed254991c844829ed3278e4
2:42:26 PM: - apollo-graphql.zip
2:42:26 PM: ​
2:42:26 PM: (@netlify/plugin-functions-core onPostBuild completed in 6.1s)
2:42:26 PM: ​
2:42:26 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
2:42:26 PM: β”‚ Netlify Build Complete β”‚
2:42:26 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
2:42:26 PM: ​
2:42:26 PM: (Netlify Build completed in 11.8s)
2:42:27 PM: Caching artifacts
2:42:27 PM: Started saving node modules
2:42:27 PM: Finished saving node modules
2:42:27 PM: Started saving build plugins
2:42:27 PM: Finished saving build plugins
2:42:27 PM: Started saving pip cache
2:42:27 PM: Finished saving pip cache
2:42:27 PM: Started saving emacs cask dependencies
2:42:27 PM: Finished saving emacs cask dependencies
2:42:27 PM: Started saving maven dependencies
2:42:27 PM: Finished saving maven dependencies
2:42:27 PM: Started saving boot dependencies
2:42:27 PM: Finished saving boot dependencies
2:42:27 PM: Started saving go dependencies
2:42:27 PM: Finished saving go dependencies
2:42:30 PM: Build script success
2:42:30 PM: Starting to deploy site from β€˜/’
2:42:30 PM: Creating deploy tree asynchronously
2:42:31 PM: Creating deploy upload records
2:47:31 PM: Failing build: Failed to deploy site
2:47:32 PM: Failed during stage β€˜deploying site’: Failed to execute deploy: Error: deploy timed out while waiting to enter states: prepared,ready
2:47:32 PM: Finished processing build request in 5m27.961221093s

Hi @fuvizzo, the issue seems related to the incident mentioned here: netlifystatus.com. That incident has since been resolved. Are you still seeing this issue?

1 Like