Building of site was failed

Hello Netlify Support,

I have several websites on netlify platform, but I am facing a building issue on a site.

2:06:28 AM: info [gatsby-plugin-netlify] Created 0 SSR/DSG redirects...
2:06:29 AM: success onPostBuild - 1.499s
2:06:31 AM: info Done building in 1346.957437177 sec
2:06:31 AM: ​
2:06:31 AM: (build.command completed in 22m 27.9s)
2:06:31 AM: Skipping Gatsby Functions and SSR/DSG support
2:06:31 AM: Skipping Gatsby Functions and SSR/DSG support
2:08:45 AM: Failed during stage 'building site': Command was cancelled
2:08:45 AM: Execution cancelled
2:08:45 AM: Failing build: Failed to build site
2:08:45 AM: Finished processing build request in 26m18.291s

Site ID: dad69011-4a45-4401-a65f-7ac274008ec2

As you can see in the log list, building was completed, but it was cancelled in some minutes.
In my view, this issue is not because of building time limit. Current site’s building time limit is 3600.
Could you please help me solve this issue?
Thank you for your assistance.

Hi, @RistoBin. The issue is normally a zombie child process which did not exit correctly so it is preventing the build from completing. You can see if this is the cause or not by adding && ps -ef to the end of the build command and then examining the ps -ef output in the build logs.

In other words, if your build command is this:

npm run build

You can see what is causing it to hang with this:

npm run build && pf -ef

Would you be willing to test that and let us know the id for the deploy where you made the test? If so, we can examine the logs and let you know what we find there.