Builds of react-static app not finishing fully, incomplete site getting deployed

Hi,

Recent builds are finishing earlier and generating incomplete output. I am pasting two different builds to demonstrate the point.

https://app.netlify.com/sites/awesome-list-app/deploys/5ea7282040ef2e00079761e1
1000+ files generated

You can see in the logs the following message -

12:15:52 AM: Exporting HTML across 8 threads…
12:16:09 AM: 26/502 5% 1/s 319.8s
12:16:09 AM: 51/502 10% 3/s 154.5s
12:16:09 AM: 76/502 15% 4/s 98.9s
12:16:09 AM: 101/502 20% 6/s 70.1s
12:16:09 AM: 126/502 25% 7/s 52.7s
12:16:10 AM: 151/502 30% 8/s 42.5s
12:16:10 AM: 176/502 35% 10/s 33.8s
12:16:10 AM: 201/502 40% 11/s 27.5s
12:16:10 AM: 226/502 45% 12/s 22.4s
12:16:10 AM: 251/502 50% 14/s 18.4s
12:16:11 AM: 277/502 55% 14/s 15.6s
12:16:11 AM: 302/502 60% 16/s 12.7s
12:16:11 AM: 327/502 65% 17/s 10.4s
12:16:11 AM: 352/502 70% 18/s 8.3s
12:16:11 AM: 377/502 75% 19/s 6.4s
12:16:11 AM: 402/502 80% 20/s 4.9s
12:16:11 AM: 427/502 85% 22/s 3.5s
12:16:12 AM: 452/502 90% 23/s 2.2s
12:16:12 AM: 477/502 95% 24/s 1.0s
12:16:12 AM: 502/502 100% 25/s 0.0s
12:16:12 AM: [✓] HTML Exported (20s)
12:16:12 AM: Generating sitemap.xml…
12:16:12 AM: [✓] sitemap.xml generated
12:16:12 AM: Your app is now exported! Here’s what we suggest doing next:
12:16:12 AM: - Upload your ‘dist’ directory to your favorite static host! We recommend using Netlify:
12:16:12 AM: - npx netlify-cli deploy
12:16:12 AM: - Analyze your app’s webpack bundles
12:16:12 AM: - react-static bundle --analyze
12:16:12 AM: Done in 39.50s.

However with the newer builds, the output is getting cutoff, and the build is not finishing.

https://app.netlify.com/sites/awesome-list-app/deploys/5ea865c2718f5c0007bdba8c
10:50:35 PM: Exporting HTML across 8 threads…
10:53:38 PM: 26/502 5% 0/s 3357.6s
10:53:38 PM: 51/502 10% 0/s 1621.8s
10:53:38 PM: 76/502 15% 0/s 1028.6s
10:53:38 PM: 101/502 20% 1/s 728.6s
10:53:38 PM: 126/502 25% 1/s 547.6s
10:53:39 PM: 151/502 30% 1/s 428.6s
10:53:39 PM: 176/502 35% 1/s 341.5s
10:53:40 PM: 201/502 40% 1/s 276.9s
10:53:40 PM: 226/502 45% 1/s 225.8s
10:53:40 PM: 251/502 50% 1/s 184.9s
10:53:40 PM: Done in 194.91s.

The output is incomplete. This is resulting in a broken site being deployed.

I have tested the build locally, it works. Tested using the buildbot docker image as well, that is generating 1000+ files as expected.

Hey! Cheers for bearing with us.

That’s an interesting one! First of all, can you try deploying and clearing cache? From the deploy log UI, you can select ‘Retry’ and ‘Clear cache and deploy site’.