We keep getting a SqlException when we try to either empty the recycle bin or rebuild the database cache. It gets a timeout immediately.
It also occurs when we try to create and publish some pages from a custom service we built.
We are using version 8.6.0 and our database is an azure sql database.
We tried with setting the umbraco connection string to 90 sec without success.
System.Data.SqlClient.SqlException (0x80131904): Lock request time out period exceeded.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at NPoco.Database.ExecuteNonQueryHelper(DbCommand cmd)
at NPoco.Database.Execute(String sql, CommandType commandType, Object[] args)
at Umbraco.Core.Persistence.SqlSyntax.SqlServerSyntaxProvider.WriteLock(IDatabase db, TimeSpan timeout, Int32[] lockIds)
at Umbraco.Core.Services.Implement.ContentService.<PerformScheduledPublishInternal>d__59.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Umbraco.Core.Services.Implement.ContentService.PerformScheduledPublish(DateTime date)
at Umbraco.Web.Scheduling.ScheduledPublishing.PerformRun()
Unfortunately we did not solve it, but luckily for us this wasn't the production site yet so we created a new database and so far we haven't got the problem again with the new database.
Lock request time out period exceeded
Hi,
We keep getting a SqlException when we try to either empty the recycle bin or rebuild the database cache. It gets a timeout immediately. It also occurs when we try to create and publish some pages from a custom service we built. We are using version 8.6.0 and our database is an azure sql database. We tried with setting the umbraco connection string to 90 sec without success.
Thankful for any suggestions
Hi Caroline, did you even manage to get this solved? Even with the latest version, we still getting this error. Thanks. Guido
Hi,
Unfortunately we did not solve it, but luckily for us this wasn't the production site yet so we created a new database and so far we haven't got the problem again with the new database.
Regards, Caroline
Same problem as https://our.umbraco.com/forum/using-umbraco-and-getting-started/105187-cannot-acquire-maindomlock-request-timeout, this has been happening since 8.6 and not resolved in 8.12.
is working on a reply...