Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Caroline Törnqvist 2 posts 72 karma points notactivated
    May 22, 2020 @ 11:20
    Caroline Törnqvist
    0

    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.

    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()
    

    Thankful for any suggestions

  • Guido Adam 21 posts 65 karma points
    Aug 13, 2020 @ 06:15
    Guido Adam
    0

    Hi Caroline, did you even manage to get this solved? Even with the latest version, we still getting this error. Thanks. Guido

  • Caroline Törnqvist 2 posts 72 karma points notactivated
    Aug 17, 2020 @ 12:52
    Caroline Törnqvist
    0

    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

  • Tim Mather 33 posts 136 karma points
    Apr 19, 2021 @ 11:44
    Tim Mather
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft