The build is not failing. It’s stuck at the ‘building’ stage, and has been for over 14 hours. The subsequent build is stuck at ‘new’, unable to begin until the broken one is resolved.
Previous builds and deploys were successful, and there was only a minor cosmetic change before the unsuccessful deploy.
It appears to be a bug on the server end. There is this line in the build log:
9:21:26 PM: mv: cannot stat '/opt/buildhome/.nvm/versions/node/10': No such file or directory
9:21:26 PM: Cached node version 10
9:21:26 PM: /usr/local/bin/run-build-functions.sh: line 561: [: : integer expression expected
Note the reference is to ‘node version 10’, but I specified v11.9.0 in the .nvmrc, as logged earlier in the build:
9:21:00 PM: Attempting node version 'v11.9.0' from .nvmrc
9:21:01 PM: v11.9.0 is already installed.
9:21:01 PM: Now using node v11.9.0 (npm v6.5.0)
Any ideas on how to kill that build and continue with the next one?
(If an admin can help, it’s this deploy focused-elion-17290b/deploys/5caf85816a59bd000857e78c)
(As to the time in the log being 9:21 PM and my saying ‘over 14 hours’, it’s 11:28 AM here now. I promise I can tell time! )
@rendall I believe the builds timeout after 15 mins. Just kick off your next build and it should start running. No way to delete the build, just ignore it.
If you think you have a bug in your build environment, use the clear cache option on the “trigger deploy” in the admin dashboard under deploys.
Sorry for the trouble, Rendall! That stuck build was caused by a bad deploy of our build service, which we cleared up soon after - didn’t realize it had left builds hanging though or we would have hunted them down.
I’ve unstuck that one and the next one went through.
@fool I’m having a similar problem that I think was caused by some experimentation in which I changed the NODE_ENV to ‘development’. It’s cause the Netlify to launch a Vue.js dev server with no way to kill the process. Can you advise?
@fool lol I waited 25 min before posting here because I read somewhere there was a 15min timeout on builds, but 2 minutes after I posted the build was auto-killed after 30 minutes. Sorry for the trouble!
No problem, @esilverman! Basically, your build must complete in 15 minutes, and the deploy will time out in 30 minutes in case it hangs for whatever reason. So please reach out to Support if its been longer than 30 minutes!
I have noticed that yarn will sometimes hang the continuous build, while npm will go through.
That said, if the hanging deployment prevents later deployment, it’s a different issue and Netlify staff will have to delete the deploy. At least, that was so in my case.
…and as Dennis asked @hbarcelos if you could link us to it in your response then we are most likely to be able to help, since we can’t otherwise find it to investigate
Sorry to see the trouble! It’s not any of the usual failure modes and the internal logs don’t seem to have any more details, so I can’t tell what is going on there either.
So I’ll try to get some advice from our operations team to check on it for us when they’re back in the office on Monday.
Hi again and sorry to say we didn’t get this diagnosed well during our time with the operations team this week. What I can tell is it is definitely about the files themselves, not the build process, so my proposal instead is to ask if you could send perhaps via DM a zipfile of your built site (I cannot see your repo; our staff cannot in general, only our build network can). That way, I can see if I can figure out what is causing problems by some experiments deploying it myself (on my own site of course!)
I have the same issues with 2 of my builds I tried just now… What do I do? I tried killing and rebuilding - did not work. I have enabled build plugins and incremental gatsby builds.
^ @fool
9:14:33 PM: Started saving go dependencies
9:14:33 PM: Finished saving go dependencies
9:14:33 PM: Build script success
9:14:33 PM: Starting to deploy site from 'public'
9:14:33 PM: Creating deploy tree asynchronously
9:14:33 PM: Creating deploy upload records
9:14:35 PM: 54 new files to upload
9:14:35 PM: 5 new functions to upload
9:15:36 PM: Finished processing build request in 4m8.045737795s