# "Build Initialising" times are longer than usual

**URL:** <https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215>\
**Category:** Bugs\
**Tags:** continua-ci, fixed\
**Created:** [May 15, 2022, 2:05pm UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215 "2022-05-15T14:05:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)\
**Post date:** [May 15, 2022, 2:05pm UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215/1 "2022-05-15T14:05:48Z")

</div>

Hi Guys,

Our builds used to be in “Build Initialising” state for a few seconds max, before queueing and running.  
Recently (few days) they are in “Build Initialising” state ~1 minute, which is much longer.  
Wondering what could cause this and how to resolve it?

We’re running Continua CI 1.9.2.810 with 1 server and few agents.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [May 15, 2022, 11:14pm UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215/2 "2022-05-15T23:14:42Z")

</div>

Hi Arik,

The “Build Initialising” state is made up of several processes. You can see which one is taking the most time of the Timeline tab of the Build view.

It is most likely to be waiting for a repository to be checked for new changeset and updating that changeset in the repository cache. If so, then what type of repository is it and has it got significantly larger recently?

If there are no clues in the timeline, then a debug log would be needed to look into this in more depth.

---

<div class="post-metadata">

**Author:** ![ktopaz](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/ktopaz/32/2390_2.png) [@ktopaz](https://www.finalbuilder.com/forums/u/ktopaz)\
**Post date:** [May 16, 2022, 12:23pm UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215/3 "2022-05-16T12:23:34Z")

</div>

According to the timeline tab, it is the “Associating changesets with the build.” that takes all this time - this step alone is ~1 minute, this never took more than 1-2 seconds previously.

Perhaps this is an issue with the DB?

Our repositories didn’t grow in any significant order of magnitude.  
We’re using 2 git repos for our builds: 1 of them is big mono repo (few GBs)  
But we don’t checkout files from this mono repo to the CI workspace.  
The other repo is really small and only has the FinalBuilder Projects and some scripts in it.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [May 16, 2022, 11:13pm UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215/4 "2022-05-16T23:13:39Z")

</div>

Hi Arik,

This step only takes a couple of hundred milliseconds on our server, so we need some more details from you to help diagnose this. Can you [enable debug logging](https://wiki.finalbuilder.com/display/continua/Debug+Logging) on the server, run a build, then send the debug log to me via direct message or support email? The debug log will include some timings in this area which will help us to narrow down which database query or otherwise is causing the bottleneck.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [May 26, 2022, 6:18am UTC](https://www.finalbuilder.com/forums/t/build-initialising-times-are-longer-than-usual/7215/5 "2022-05-26T06:18:48Z")

</div>

A fix for this issue has been included in [v1.9.2.895](https://www.finalbuilder.com/forums/t/continua-ci-v1-9-2-895-released/7226).
