# Build Error (rarely)

**URL:** https://www.finalbuilder.com/forums/t/build-error-rarely/5903
**Category:** Bugs
**Created:** [April 17, 2014, 1:09am UTC](https://www.finalbuilder.com/forums/t/build-error-rarely/5903 "2014-04-17T01:09:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [April 17, 2014, 1:09am UTC](https://www.finalbuilder.com/forums/t/build-error-rarely/5903/1 "2014-04-17T01:09:29Z")

</div>

Seems like a deadlock issue (at the bottom)

Importance: Error

Date: Donnerstag, 17. April 2014

Time: 12:22:35

Message:

Build Controller

An exception occurred while creating build log. Details: Exception: GenericADOException

Message: could not update: [Continua.Modules.Builds.Build#6014][SQL: UPDATE builds\_build SET status\_message = ?, status\_datetime = ? WHERE Id = ?]

Stack Trace: &nbsp; &nbsp;bei NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)

&nbsp; &nbsp;bei NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)

&nbsp; &nbsp;bei NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)

&nbsp; &nbsp;bei NHibernate.Action.EntityUpdateAction.Execute()

&nbsp; &nbsp;bei NHibernate.Engine.ActionQueue.Execute(IExecutable executable)

&nbsp; &nbsp;bei NHibernate.Engine.ActionQueue.ExecuteActions(IList list)

&nbsp; &nbsp;bei NHibernate.Engine.ActionQueue.ExecuteActions()

&nbsp; &nbsp;bei NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)

&nbsp; &nbsp;bei NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)

&nbsp; &nbsp;bei NHibernate.Impl.SessionImpl.Flush()

&nbsp; &nbsp;bei NHibernate.Transaction.AdoTransaction.Commit()

&nbsp; &nbsp;bei Continua.Shared.Data.Hibernate.NHibernateDatabase.SaveChanges()

&nbsp; &nbsp;bei Continua.Modules.Builds.BuildManager.\<\>c\_\_DisplayClass6f.b\_\_6e(Int32 x)

&nbsp; &nbsp;bei Continua.Shared.Utils.LockList`1.WithLock(TId id, Action`1 action)

&nbsp; &nbsp;bei Continua.Modules.Builds.BuildManager.UpdateStatus(Build build, BuildState newState, String message, EntityDTO configuration, EntityDTO project)

&nbsp; &nbsp;bei Continua.Modules.Builds.BuildController.Initialise(Int32 buildId)

Exception: NpgsqlException

Message: FEHLER: 40P01: Verklemmung (Deadlock) entdeckt

Stack Trace: &nbsp; &nbsp;bei Npgsql.NpgsqlState.d\_\_a.MoveNext()

&nbsp; &nbsp;bei Npgsql.ForwardsOnlyDataReader.GetNextResponseObject()

&nbsp; &nbsp;bei Npgsql.ForwardsOnlyDataReader.GetNextRowDescription()

&nbsp; &nbsp;bei Npgsql.ForwardsOnlyDataReader.NextResult()

&nbsp; &nbsp;bei Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError)

&nbsp; &nbsp;bei Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb)

&nbsp; &nbsp;bei Npgsql.NpgsqlCommand.ExecuteNonQuery()

&nbsp; &nbsp;bei NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)

&nbsp; &nbsp;bei NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation)

&nbsp; &nbsp;bei NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [April 18, 2014, 5:47am UTC](https://www.finalbuilder.com/forums/t/build-error-rarely/5903/2 "2014-04-18T05:47:05Z")

</div>

Yes, we have seen the occasional deadlock, and have done a lot of work to try and resolve them, but they so still happen occasionally.
