Deploy hangs on "waiting for deploy to go live."

Deploying to draft URL...
✔ Finished hashing 21577 files
✔ CDN requesting 10755 files
✔ Finished uploading 10755 assets
o Waiting for deploy to go live... ›   Warning:
 ›   {
 ›      "name": "TimeoutError"
 ›   }
 ›
O Waiting for deploy to go live...TimeoutError: Promise timed out after 1200000 milliseconds
    at Timeout._onTimeout (/usr/local/lib/node_modules/netlify-cli/node_modules/p-timeout/index.js:27:54)

10k files is more than the CLI can successfully upload without some special config, since it takes more than 5 minutes which is when things get cut off by default.

Could you try:

netlify deploy --timeout 900 to give yourself 15 minutes instead? or maybe even 1800 for a half hour?

So… Netlify is not suitable for large websites? (+100k pages)

Same happening with my website. Less than 100 pages…

1 Like

Maybe CLI downgrade would work for you as well.

I kind of disappointed with Netlify, I was hoping use on the company I work for…

Did you try manually setting the timeout as @fool mentioned? What were your results? That should workaround the TimeoutError that you are seeing.

Yes @Dennis / @fool, now I’m getting

$ netlify deploy --prod --timeout=9999 --dir=public
Deploying to live site URL...
✔ Finished hashing 134220 files
◴ CDN diffing files... ›   Warning:
›   {
›      "deploy": {
›        "id": "5e08d0096855a36645d87c09",
›        "site_id": "f69dd0e0-701c-4972-b49d-fcfcb7a0252e",
›        "build_id": null,
›        "state": "error",
›        "name": "viralizedfy",
›        "url": "https://viralizou.app",
›        "ssl_url": "https://viralizou.app",
›        "admin_url": "https://app.netlify.com/sites/viralizedfy",
›        "deploy_url": "http://5e08d0096855a36645d87c09.viralizedfy.netlify.com",
›        "deploy_ssl_url": "https://5e08d0096855a36645d87c09--viralizedfy.netlify.com",
›        "created_at": "2019-12-29T16:10:49.686Z",
›        "updated_at": "2019-12-29T16:32:33.910Z",
›        "user_id": "5993619f6f4c505b50cfda24",
›        "error_message": "Deploy is too big",
›        "required": [],
›        "required_functions": null,
›        "commit_ref": null,
›        "review_id": null,
›        "branch": "master",
›        "commit_url": null,
›        "skipped": null,
›        "locked": null,
›        "log_access_attributes": {
›          "type": "firebase",
›          "url": "https://netlify-builds1.firebaseio.com/deploys/5e08d0096855a36645d87c09/log",
›          "endpoint": "https://netlify-builds1.firebaseio.com",
›          "path": "/deploys/5e08d0096855a36645d87c09/log",
›          "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE1Nzc2MzcxNTUsImQiOnsidWlkIjoiIn19.j3SBTkVPsV_lyV-jSY50rXqFX74Yy-ntE-CkJDf9i5U"
›        },
›        "title": null,
›        "review_url": null,
›        "published_at": null,
›        "context": "production",
›        "deploy_time": null,
›        "available_functions": [],
›        "summary": {
›          "status": "unavailable",
›          "messages": []
›        },
›        "screenshot_url": null,
›        "site_capabilities": {
›          "title": "Netlify Team Free",
›          "asset_acceleration": true,
›          "form_processing": true,
›          "cdn_propagation": "partial",
›          "build_gc_exchange": "buildbot-gc",
›          "build_node_pool": "buildbot-external-ssd",
›          "domain_aliases": true,
›          "secure_site": false,
›          "prerendering": true,
›          "proxying": true,
›          "ssl": "custom",
›          "rate_cents": 0,
›          "yearly_rate_cents": 0,
›          "cdn_network": "free_cdn_network",
›          "ipv6_domain": "cdn.makerloop.com",
›          "branch_deploy": true,
›          "managed_dns": true,
›          "geo_ip": true,
›          "split_testing": true,
›          "id": "nf_team_dev",
›          "cdn_tier": "reg"
›        },
›        "committer": null,
›        "skipped_log": null,
›        "manual_deploy": true
›      }
›   }
›
◷ CDN diffing files...Error: Deploy 5e08d0096855a36645d87c09 had an error
    at loadDeploy (/usr/local/lib/node_modules/netlify-cli/node_modules/netlify/src/deploy/util.js:55:29)
    at runMicrotasks (<anonymous>)

Based on the output you pasted, your deploy is too big. Deploying 100k files in one go does not work very well. Can you tell me how big your public folder is?

@Dennis

find . -type f | sed -n ‘s/…*.//p’ | sort | uniq -c
65289 html
132105 jpg
179 png
1 txt
1 xml

du -h -d 1
18M ./gifs
2.5G ./static
152M ./videos
1.4G ./images
196K ./audios
4.0G .

btw, does Netlify uses Firebase?

"log_access_attributes": {
    "type": "firebase",
    "url": "https://netlify-builds1.firebaseio.com/deploys/5e08d0096855a36645d87c09/log",
    "endpoint": "https://netlify-builds1.firebaseio.com",
    "path": "/deploys/5e08d0096855a36645d87c09/log",
},

Yea, 4 gigabytes would definitely be too big to deploy. I recommend that you host your video and audio files on a storage service like S3 and link to them on your site.

With regards to Firebase, we do use it to stream our build logs.