"Build was canceled. Unity Cloud Build restarted this build process, look for the next one."

Hi,
I’m seeing this error quite often after some 30min when the build starts:
45: Build was canceled
46: Unity Cloud Build restarted this build process, look for the next one.

Typically the build is successful on the next one.

Any thoughts why this happens?

We’re also seeing ~40-50% of our builds randomly stalling out and restarting. Our average successful build is ~15 minutes, but an average timeout is ~30 minutes, so we’re wasting a lot of time waiting. Would love to hear why this happens.

Seeing this same issue happen to our Android builds…IOS building fine but android seems to restart periodically…

We’ve just started seeing this on both our iOS and Android builds. Has there been any feedback from support as to how to resolve this issue?

Thanks

Rajan

This is happening to us as well. :frowning:

We are still seeing this issue (just a couple of minutes ago).

@dannyd Do you know if the UCB guys know about this issue?

There are different reasons that a restart happens. For more information please read here: https://support.unity3d.com/hc/en-us/articles/205215513-Why-does-my-build-restart-with-no-explanation-in-Unity-Cloud-Build-

We’re looking into what’s causing a higher number of restarts than usual. Will post more soon. Thanks for your patience.

Cheers,
Patrick

We’ve made some configuration changes behind the scenes, and monitoring their effects. Please let us know how your restart rates fare.

Cheers,
Patrick

1 Like

Thanks @odbb and @patrickc

@odbb if UCB has successfully built a client before, does UCB redownload the whole repo everytime, or does it just update it? Also does it rebuild the whole library folder everytime? If so that sounds like a waste of bandwidth/cpu usage/time. (Maybe there should be options like “clean repo on every build” and “clean library on every build”)

As of today, Cloud Build caches the Library directory between builds, but does a full re-download from source control. The “Clean Build” button will flush the Library and re-build it. Dedicated build servers (on the “Enterprise” tier) can cache source control between builds as an option.

You can disable Library caching from the project settings/targets page.

Cheers,
Patrick