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 1 post 71 karma points notactivated
    5 days ago
    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

Please Sign in or register to post replies

Write your reply to:

Draft