Home
Support Forums

GitHub actions Nextjs deploy hangs on CDN diffing files

Deploying works locally, just not within the context of the github action.

Site name: modest-turing-407bcb.netlify.app
Relevant action script part:

- name: Deploy to Netlify
  run: yarn netlify deploy --prod
  env:
    NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
    NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
    DEBUG: '*'
  timeout-minutes: 60

Log:

##[debug]Evaluating: secrets.NETLIFY_AUTH_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'NETLIFY_AUTH_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.NETLIFY_SITE_ID
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'NETLIFY_SITE_ID'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating condition for step: 'Deploy to Netlify'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy to Netlify
##[debug]Loading inputs
##[debug]Loading env
Run yarn netlify deploy --prod
##[debug]/usr/bin/bash -e /home/runner/work/_temp/19cb42c3-c389-443b-8192-01dc53cbf8d8.sh
yarn run v1.22.5
$ /home/runner/work/***/***/node_modules/.bin/netlify deploy --prod
2021-09-26T18:14:34.439Z @oclif/config reading core plugin /home/runner/work/***/***/node_modules/netlify-cli
2021-09-26T18:14:34.441Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/package.json
2021-09-26T18:14:34.447Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/oclif.manifest.json
2021-09-26T18:14:34.448Z @oclif/config:netlify-cli using manifest from /home/runner/work/***/***/node_modules/netlify-cli/oclif.manifest.json
2021-09-26T18:14:34.449Z @oclif/config reading user plugins pjson /home/runner/.local/share/netlify-cli/package.json
2021-09-26T18:14:34.450Z @oclif/config loadJSON /home/runner/.local/share/netlify-cli/package.json
2021-09-26T18:14:34.450Z @oclif/config loading plugins [
  '@oclif/plugin-not-found',
  '@oclif/plugin-plugins',
  '@oclif/plugin-help',
  'oclif-plugin-completion'
]
2021-09-26T18:14:34.453Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/package.json
2021-09-26T18:14:34.453Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/package.json
2021-09-26T18:14:34.453Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/package.json
2021-09-26T18:14:34.453Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/netlify-cli/package.json
2021-09-26T18:14:34.454Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/package.json
2021-09-26T18:14:34.454Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/package.json
2021-09-26T18:14:34.454Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/package.json
2021-09-26T18:14:34.455Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/package.json
2021-09-26T18:14:34.455Z @oclif/config reading core plugin /home/runner/work/***/***/node_modules/@oclif/plugin-not-found
2021-09-26T18:14:34.455Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-not-found/package.json
2021-09-26T18:14:34.455Z @oclif/config reading core plugin /home/runner/work/***/***/node_modules/@oclif/plugin-plugins
2021-09-26T18:14:34.455Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-plugins/package.json
2021-09-26T18:14:34.456Z @oclif/config reading core plugin /home/runner/work/***/***/node_modules/@oclif/plugin-help
2021-09-26T18:14:34.456Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-help/package.json
2021-09-26T18:14:34.456Z @oclif/config reading core plugin /home/runner/work/***/***/node_modules/oclif-plugin-completion
2021-09-26T18:14:34.456Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/oclif-plugin-completion/package.json
2021-09-26T18:14:34.457Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-09-26T18:14:34.457Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/oclif-plugin-completion/oclif.manifest.json
2021-09-26T18:14:34.458Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2021-09-26T18:14:34.458Z @oclif/config loadJSON /home/runner/work/***/***/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-09-26T18:14:34.459Z @oclif/config:@oclif/plugin-help using manifest from /home/runner/work/***/***/node_modules/@oclif/plugin-help/oclif.manifest.json
2021-09-26T18:14:34.459Z @oclif/config:oclif-plugin-completion using manifest from /home/runner/work/***/***/node_modules/oclif-plugin-completion/oclif.manifest.json
2021-09-26T18:14:34.459Z @oclif/config:@oclif/plugin-plugins using manifest from /home/runner/work/***/***/node_modules/@oclif/plugin-plugins/oclif.manifest.json
2021-09-26T18:14:34.459Z @oclif/config:@oclif/plugin-not-found using manifest from /home/runner/work/***/***/node_modules/@oclif/plugin-not-found/oclif.manifest.json
2021-09-26T18:14:34.459Z @oclif/config config done
2021-09-26T18:14:34.460Z @oclif/config start init hook
2021-09-26T18:14:34.461Z netlify:netlify-cli:hooks:init start /home/runner/work/***/***/node_modules/netlify-cli/src/hooks/init
2021-09-26T18:14:34.565Z netlify:netlify-cli:hooks:init done
2021-09-26T18:14:34.565Z @oclif/config init hook done
2021-09-26T18:14:34.565Z netlify init version: @oclif/command@1.8.0 argv: [ 'deploy', '--prod' ]
2021-09-26T18:14:34.568Z @oclif/config runCommand deploy [ '--prod' ]
2021-09-26T18:14:34.569Z @oclif/config:netlify-cli require /home/runner/work/***/***/node_modules/netlify-cli/src/commands/deploy.js
2021-09-26T18:14:35.964Z @oclif/config start prerun hook
2021-09-26T18:14:35.964Z @oclif/config prerun hook done
2021-09-26T18:14:35.965Z netlify:deploy init version: @oclif/command@1.8.0 argv: [ '--prod' ]
Deploy path:        /home/runner/work/***/***/packages/client/out_publish
Functions path:     /home/runner/work/***/***/packages/client/out_functions
Configuration path: /home/runner/work/***/***/netlify.toml
Functions folder "/home/runner/work/***/***/packages/client/out_functions" specified but it doesn't exist! Will proceed without deploying functions
Deploying to main site URL...
- Hashing files...
- Looking for a functions cache...
✔ Deploying functions from cache (use --skip-functions-cache to override)
✔ Finished hashing 123 files and 1 functions
- CDN diffing files...
Warning: 
{
  "name": "TimeoutError"
}

    at Object.warn (/home/runner/work/***/***/node_modules/@oclif/errors/lib/index.js:49:15)
    at warn (/home/runner/work/***/***/node_modules/netlify-cli/src/utils/command-helpers.js:96:10)
    at reportDeployError (/home/runner/work/***/***/node_modules/netlify-cli/src/commands/deploy.js:223:7)
    at runDeploy (/home/runner/work/***/***/node_modules/netlify-cli/src/commands/deploy.js:290:5)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async DeployCommand.run (/home/runner/work/***/***/node_modules/netlify-cli/src/commands/deploy.js:459:21)
    at async DeployCommand._run (/home/runner/work/***/***/node_modules/@oclif/command/lib/command.js:43:20)
    at async Config.runCommand (/home/runner/work/***/***/node_modules/@oclif/config/lib/config.js:173:24)
    at async Main.run (/home/runner/work/***/***/node_modules/@oclif/command/lib/main.js:27:9)
TimeoutError: Promise timed out after 1200000 milliseconds
    at Timeout._onTimeout (/home/runner/work/***/***/node_modules/p-wait-for/node_modules/p-timeout/index.js:34:63)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 2.
##[debug]Finishing: Deploy to Netlify

Hey there, @JulianKarhof :wave:

Welcome to the Netlify Forums, and thanks for reaching out! Would you mind sharing your project repo with us? This will help us look into this further. Thanks!