I’ve searched around a bit and found a few other posts regarding this issue. Unfortunately, none of the solutions in those posts resolved my issue. Hoping someone can point me in the right direction.
I am building a site using Nuxt and the
nuxt-generate command. The site has about 8,000 pages. I’ve made several attempts at building so far. The files that fail to upload seem to vary each time, but the usual suspects are the root index.html, 404.html, and sitemap.xml. Those seem to appear most frequently.
At first I assumed it might be sitemap.xml, possibly due to file size. However, when inspecting the latest build logs, sitemap.xml uploads just fine. At least in the last build, it’s actually index.html that ends up failing the build:
failed during stage 'deploying site': Failed to execute deploy: Upload cancelled: index.html
I’ve tried removing some of the problem pages, but to no avail. The only time I can get everything to build properly is by taking out the bulk of the pages. Only then can I get everything to build and publish properly. Before this latest build, I cleared cache as advised in the build docs.
On my local environment, everything builds fine. I can’t really replicate uploading to Netlify’s CDN in my own environment and the logs aren’t terribly verbose about why these uploads fail, so I’m a bit at a loss here. Locally, index.html is only about 36KB, so I don’t believe it’s a filesize issue.
I’m not using any functions.
For additional context, these are the lines leading up to failed build status:
11:32:53 PM: Starting to deploy site from '/dist' 11:32:55 PM: Creating deploy tree asynchronously 11:34:11 PM: 8027 new files to upload 11:34:11 PM: 0 new functions to upload 11:41:18 PM: Starting post processing 11:42:01 PM: Failed to upload file: 404.html 11:42:04 PM: Failed to upload file: users/index.html 11:42:15 PM: Failed to upload file: index.html 11:42:15 PM: Failing build: Failed to deploy site 11:42:15 PM: failed during stage 'deploying site': Failed to execute deploy: Upload cancelled: index.html 11:42:15 PM: Finished processing build request in 13m54.507247491s