Try our conversational search powered by Generative AI!

The wait operation timed out after removing block as property

Vote:
 

So i am receive an "the wait operation timed out" error when trying to load my web app.  I removed a block that was used as a property on my base page and have around 10,000 pages on the site.  I assume it is the "Model Syncronizaiton" that is causing the timeout but that is just me assuming.  I set the SQL connection timeout to 1000 to see if that would allow it to finish but without luck either.  Any help would be greatly appreciated.

[Win32Exception (0x80004005): The wait operation timed out]

[SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +2442634
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5766568
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +285
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4162
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +58
   System.Data.SqlClient.SqlDataReader.get_MetaData() +89
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) +409
   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) +2031
   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) +911
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +64
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +240
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +41
   System.Data.Common.DbCommand.ExecuteReader() +14
   EPiServer.DataAccess.<>c__DisplayClass31_0.b__0() +369
   EPiServer.Data.Providers.<>c__DisplayClass28_0`1.b__0() +52
   EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute(Func`1 method) +706
   EPiServer.Data.Providers.SqlDatabaseHandler.Execute(Func`1 action) +124
   EPiServer.DataAccess.PropertyDefinitionDB.CheckUsage(Int32 propertyDefinitionID, Boolean onlyNoneMasterLanguage, Boolean onlyPublished, Boolean isDynamic) +104
   EPiServer.DataAbstraction.DefaultPropertyDefinitionRepository.CheckUsage(Int32 propertyDefinitionID, Boolean onlyLanguageSpecific, Boolean onlyPublished, Boolean isDynamic) +43
   EPiServer.DefaultContentProvider.IsPropertyDefinitionUsed(PropertyDefinition propertyDefinition) +42
   EPiServer.Core.<>c__DisplayClass7_0.b__0(ContentProvider contentProvider) +18
   EPiServer.Core.ContentProviderMap.Iterate(Func`2 contentProviderFunction) +95
   EPiServer.Core.DefaultContentModelUsageService.IsPropertyDefinitionUsed(PropertyDefinition propertyDefinition) +82
   EPiServer.DataAbstraction.RuntimeModel.PropertyDefinitionSynchronizer.IsPropertyDefinitionUsed(PropertyDefinition propertyDefinition) +11
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.b__14_0(ContentTypeModel model) +185
   System.Threading.Tasks.<>c__DisplayClass31_0`2.b__0(Int32 i) +63
   System.Threading.Tasks.<>c__DisplayClass17_0`1.b__1() +926
   System.Threading.Tasks.Task.InnerInvoke() +73
   System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) +18
   System.Threading.Tasks.<>c__DisplayClass176_0.b__0(Object ) +208

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4126993
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +12256921
   System.Threading.Tasks.Task.Wait() +15
   System.Threading.Tasks.Parallel.ForWorker(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) +892
   System.Threading.Tasks.Parallel.ForEachWorker(IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) +228
   System.Threading.Tasks.Parallel.ForEachWorker(IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) +252
   System.Threading.Tasks.Parallel.ForEach(IEnumerable`1 source, Action`1 body) +110
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelRegister.AnalyzeProperties() +76
   EPiServer.DataAbstraction.RuntimeModel.ContentTypeModelScanner.Sync(Boolean commitChanges) +226
   EPiServer.Initialization.Internal.ModelSyncInitialization.Initialize(InitializationEngine context) +375
   EPiServer.Framework.Initialization.Internal.<>c__DisplayClass3_0.b__0() +19
   EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key) +52
   EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context) +80
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +245

[InitializationException: Initialize action failed for Initialize on class EPiServer.Initialization.Internal.ModelSyncInitialization, EPiServer, Version=9.12.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +558
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +114
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +32
   EPiServer.Framework.Initialization.<>c.b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +366
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +76
   ChildrensHospitalColorado.CHOCApplication..ctor() +29
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0db9b8d2\ee38c5a4\App_global.asax.qeo9ahr7.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +114
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1088
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +260
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9963380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

[Pasting files is not allowed]

#161186
Oct 07, 2016 1:44
Vote:
 

It's checking if any of the pages that contain the removed property has property data. If it's all null everywhere it will delete the property from the content type.

If there's a value somewhere it will show the property in Admin mode but flag it as missing in code. You need some manual handling in to get rid of it in that situation.

Since you got a lot of pages (and versions, what's your uimaxversions value?) it's usally wiser to hide the the property and mark it obsolete or renaming it to something that flags it shouldn't be used. That way you won't need a big time window to complete the startup work in any environment.

#162167
Oct 11, 2016 23:02
Vote:
 

Same problem, except I have a brand new project. If I change or update existing properties, I get the same timeout error. I have very few pages, so it can't be that "there's too many". How can I increase the timeout value there? How do I manage something like this?

#176558
Mar 21, 2017 14:15
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.