Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 20, 2016 @ 11:57
    Jeroen Breuer
    0

    Trying to fix XML Data Integrity

    Hello,

    Somehow preview doesn't work for all pages in the website. I'm not sure what could be the problem, but when I do the XML Data Integrity check it reports issues with the cmsContentXml table so it might be related to that.

    When I press the fix button I get the following error:

    Database exception occurred
    System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization=7; handshake=13; [Login] initialization=0; authentication=0; [Post-Login] complete=0;   ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
       at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
       at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
       at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
    ClientConnectionId:bf60aba0-14c1-4e92-9547-2b9d32c3b266
    Error Number:-2,State:0,Class:11
    ClientConnectionId before routing:0086af55-d7aa-4140-a629-c9bb522f3326
    Routing Destination:project-prod.database.secure.windows.net,1433
    

    Since that didn't work I tried to visit /umbraco/dialogs/republish.aspx?xml=true and use that to rebuild the XML. This results into 2 errors:

    An error occurred executing RePublishAll
    System.InvalidOperationException: This SqlTransaction has completed; it is no longer usable.
       at System.Data.SqlClient.SqlTransaction.ZombieCheck()
       at System.Data.SqlClient.SqlTransaction.Rollback()
       at Umbraco.Core.Persistence.Database.CleanupTransaction()
       at Umbraco.Core.Persistence.Database.AbortTransaction()
       at Umbraco.Core.Persistence.Transaction.Dispose()
       at Umbraco.Core.Persistence.Repositories.ContentRepository.RebuildXmlStructures(Func`2 serializer, Int32 groupSize, IEnumerable`1 contentTypeIds)
       at Umbraco.Core.Services.ContentService.RebuildXmlStructures(Int32[] contentTypeIds)
       at Umbraco.Core.Services.ContentService.RePublishAll(Int32 userId)
    

    And

    Database exception occurred
    System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization=7; handshake=13; [Login] initialization=0; authentication=0; [Post-Login] complete=0;   ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
       at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
       at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
       at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
       at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
    ClientConnectionId:3a911a97-f754-49f2-b29f-e92d92b285ef
    Error Number:-2,State:0,Class:11
    ClientConnectionId before routing:f5836a1d-ecdd-4455-a03a-b933c9af25e1
    Routing Destination:project-prod.database.secure.windows.net,1433
    

    The timeout for the connection string is already set to 300. What is the best way to fix the XML Data Integrity? I'm using Umbraco 7.5.3.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 20, 2016 @ 12:33
    Jeroen Breuer
    0

    I set the timeout on the connection string to 300, but I forgot it was set back to 30 in the config transforms. Now updated everywhere. Will post an update again once production is updated.

    Jeroen

  • Jesper Hauge 298 posts 487 karma points c-trib
    Dec 20, 2016 @ 12:34
  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 27, 2016 @ 11:52
    Jeroen Breuer
    100

    The production has been updated and with the connection string timeout set to 300 it's possible to fix the XML Data Integrity.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft