I'm having a recurring deadlock issue with a site running multiple instances on Azure. The offending query is:
SELECT [umbracoServer].[id], [umbracoServer].[address], [umbracoServer].[computerName], [umbracoServer].[registeredDate], [umbracoServer].[lastNotifiedDate], [umbracoServer].[isActive], [umbracoServer].[isMaster] FROM [umbracoServer] WHERE id > 0
Site is running 7.3.5 on latest Azure database, SQL 2016.
The Umbraco configuration is pretty much standard with only 1 change in the web.config:
I've not found a solution to this, despite a lot of digging about... If you ever find anything do let us know. I don't know if newer versions of Umbraco have addressed this problem or not - is this issue being ignored by the Umbraco team?
I've upgraded to 776 and am now getting the same issue. Site has been running for a year on Azure. Now with the upgrade we are receiving deadlock info in the admin panel.
Umbraco.Web.Strategies.ServerRegistrationEventHandler - Failed to update server record in database.
2017-10-08 02:35:45,558 [P4920/D2/T24] ERROR Umbraco.Web.Strategies.ServerRegistrationEventHandler - Failed to update server record in database.
System.Data.SqlServerCe.SqlCeException (0x80004005): There is a file sharing violation. A different process might be using the file. [ D:\home\site\wwwroot\AppData\Umbraco.sdf ]
at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent)
at System.Data.SqlServerCe.SqlCeConnection.Open()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.<>cDisplayClass200.
Also here after upgrade to 7.7 errors like these appear in the log
2017-10-09 14:04:13,042 [P280036/D2/T1043] ERROR Umbraco.Core.Persistence.UmbracoDatabase - Exception (9432cba7).
System.Data.SqlClient.SqlException (0x80131904): Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
at System.Data.SqlClient.SqlDataReader.Read()
at Umbraco.Core.Persistence.Database.<Query>d__71.MoveNext()
ClientConnectionId:9e282a5f-5111-418e-908a-0d3884cecb7f
Error Number:1205,State:51,Class:13
2017-10-09 14:04:13,089 [P280036/D2/T1043] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: This SqlTransaction has completed; it is no longer usable.
at System.Data.SqlClient.SqlTransaction.ZombieCheck()
at System.Data.SqlClient.SqlTransaction.Commit()
at Umbraco.Core.Persistence.Database.CleanupTransaction()
at Umbraco.Core.Persistence.Database.CompleteTransaction()
at Umbraco.Core.Scoping.Scope.DisposeLastScope()
at Umbraco.Core.Scoping.Scope.Dispose()
at Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources()
at Umbraco.Core.DisposableObject.Dispose(Boolean disposing)
at Umbraco.Core.DisposableObject.Dispose()
at Umbraco.Core.Services.ContentService.GetDescendants(IContent content)
at *.Page_Load(Object sender, EventArgs e) in **:line 82
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
7.3.5 Deadlock, umbracoServer query
I'm having a recurring deadlock issue with a site running multiple instances on Azure. The offending query is:
Site is running 7.3.5 on latest Azure database, SQL 2016.
The Umbraco configuration is pretty much standard with only 1 change in the web.config:
Any help would be appreciated!
We have the same issue in Umbraco 7.3.4 on a load balancing server - not Azure.
Did you find the reason/solution?
We are getting about 3 or 4 deadlocks a minute. They are all around the umbracoServer table, where multiple processes are trying to update this table.
Thanks in advance
Hi Anz,
Your set-up sounds the same as mine... Did you ever manage to fix this?
If you are still stuck, here's what I've found out, as minimal as it is (and without any solution):
Currently we only get these deadlocks in 7.3.4 - other versions we've used are ok (so far).
The UmbracoTraceLog has entries which match the reported deadlock times, and mentions:
and
I'm wondering if upgrading Umbraco would be the only way to fix this, but I'd need reassurance from Umbraco HQ that it would before I do anything.
Good luck if you're still stuck with this issue too...!
UPDATE: This has now started happening on a 7.3.3 and 7.3.6 site too.
hi - any news on this issue?
Has this issue been addressed anywhere, does anybody know?
Same issue for me on 7.3.3, 7.3.4 and 7.3.6 load balanced servers.
In the absence of any news I've raised a bug here.
Hi Gordon and all,
I am meeting this problem too with Umbraco 7.3.1.
Do you have any workaround solution to overcome this ?
Regards
Hi
I've not found a solution to this, despite a lot of digging about... If you ever find anything do let us know. I don't know if newer versions of Umbraco have addressed this problem or not - is this issue being ignored by the Umbraco team?
Thanks
Thank you for your prompt response. I keep investigating deeply about this.
Has this ever been resolved?
I've upgraded to 776 and am now getting the same issue. Site has been running for a year on Azure. Now with the upgrade we are receiving deadlock info in the admin panel.
Umbraco.Web.Strategies.ServerRegistrationEventHandler - Failed to update server record in database.
2017-10-08 02:35:45,558 [P4920/D2/T24] ERROR Umbraco.Web.Strategies.ServerRegistrationEventHandler - Failed to update server record in database. System.Data.SqlServerCe.SqlCeException (0x80004005): There is a file sharing violation. A different process might be using the file. [ D:\home\site\wwwroot\AppData\Umbraco.sdf ] at System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) at System.Data.SqlServerCe.SqlCeConnection.Open() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.<>cDisplayClass200.
Also here after upgrade to 7.7 errors like these appear in the log
is working on a reply...