我们的核心数据库出现了问题,该数据库已由前一天的备份数据库恢复。
在那之后,网站运行得很好,但是,我们在发布任何更改时都有问题。一旦er点击发布按钮,“发布初始化..”消息只是延长了持续的时间。在“发布开始/结束”时,事件日志中也没有记录任何内容。
因此,当我们尝试使用database Cleanup工具清理master/web数据库时,SQL错误弹出。
有谁有解决这个问题的办法吗?
这是我在清理"web“数据库时遇到的错误。
Job started: CleanUpDatabases|System.Exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.Data.DataException: Error executing SQL command: declare @x bigint set @x = 0 DECLARE @item TABLE(ID uniqueidentifier,parentID uniqueidentifier) INSERT INTO @item (ID,parentID) SELECT [ID],[ParentID] FROM [Items] DECLARE @temp TABLE(ID uniqueidentifier) WHILE (SELECT count(id) FROM @item ) <> @x begin set @x = (SELECT count(id) FROM @item ) delete from @temp; insert into @temp (ID) SELECT id FROM @item where parentID = @nullId update @item SET Parentid =@nullId where Parentid in (select id from @temp) delete from @item where id in (select id from @temp) end UPDATE [Items] SET [Parentid] = @nullId where [ID] in (select id from @item) ; DELETE from [Items] where [ID] in (select id from @item) ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out
--- End of inner exception stack trace ---
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)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, 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 Sitecore.Data.DataProviders.Sql.DataProviderCommand.ExecuteNonQuery()
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at Sitecore.Data.DataProviders.Sql.DataProviderCommand.ExecuteNonQuery()
at Sitecore.Data.DataProviders.Sql.SqlDataApi.<>c__DisplayClass15.<Execute>b__14()
at Sitecore.Data.DataProviders.NullRetryer.Execute[T](Func`1 action, Action recover)
at Sitecore.Data.DataProviders.Sql.SqlDataProvider.CleanupDatabase(CallContext context)
at Sitecore.Data.DataProviders.DataProvider.CleanupDatabase(CallContext context, DataProviderCollection providers)
at Sitecore.Shell.Applications.Databases.CleanUp.CleanUpForm.Cleaner.CleanUp()|Job ended: CleanUpDatabases (units processed: )
发布于 2015-02-06 04:35:13
这里提供了一个解释:
https://sitecorebasics.wordpress.com/2011/04/12/timeout-error-when-running-cleanupdatabases-job/
您需要在Sitecore配置中增加DefaultSQLTimeout
设置。尝试将其设置为30分钟。
<setting name=”DataProviderTimeout” value=”00:30:00″ />
在这里也回答了:
https://sitecorebasics.wordpress.com/2011/04/12/timeout-error-when-running-cleanupdatabases-job/
发布于 2016-03-09 14:46:54
我尝试了很多方法,唯一有效的方法是在和web服务器和数据库服务器<代码>E29之间同步时间。
您可以更新两台服务器中的时间,也可以使用Internet时间选项卡。
在那之后,它运行得很好。
这在使用Sitecore 6.6时是有效的。
https://stackoverflow.com/questions/28352460
复制相似问题