Getting an error "Unable to unlock StateServer entry for key ..."

nick

New member
#1
I'm seeing multiple occurances of the error below. It doesn't have any stack trace, for me to investigate. Can anybody help out with suggestion on who to troubleshooth this, and handle the error properly:
server version 5.5.7
Thank you
Code:
Exception type: ObjectLockedException 
Exception message: Unable to unlock StateServer entry for key: 0jjtteuvzwmoyvodonpocini: Object locked.
at Soss.Client.DataAccessor.ReleaseLock()
at Soss.Web.SossStoreProvider.ReleaseItemExclusive(HttpContext context, String id, Object lockId)
at System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

admin

Administrator
#1
Hi Nick,

This exception occurs when a web request takes longer than 90 seconds to complete. (90 seconds is the lock timeout for ASP.NET sessions). So this is a side-effect of a very slow page handler.

If a web request takes more than 90 seconds to complete, the request handler loses its exclusive lock on a session and another request can come along and acquire the lock the session. Then, 90+ seconds later, when the original request finally finishes processing and tries to persist its session state updates, it discovers that it has lost its exclusive lock on the session and throws this exception.

To resolve this issue, the best place to start would be to identify any page handlers that are taking an excessively long time to complete.
 
Top