Synchronization failed 404 error

Bryan Drenner asked on June 5, 2014 11:25

We're trying to sync a file in our media library from Staging to Production, and with this particular file it fails. It strangely gives a "404: Not Found" error. I found an article that recommends upping ASP.NET's default timeouts and max request lengths in Web.config, but this had no effect. The failure happens within 5 seconds of clicking "Synchronize selected", so I doubt that it's a timeout issue. We're (still) using Kentico 6. Here are the error details:

Event type: Error
Source: Staging
Event code: SYNCSELECTEDTASKSMULTIPLE
Description:    Synchronization failed, see synchronization log for details.
Message: The request failed with HTTP status 404: Not Found. 
Stack Trace: 
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at CMS.Synchronization.CMS.SynchronizationEngine.SyncServerWse.ProcessSynchronizationTask(String taskTitle, String taskType, String taskObjectType, String taskData, String taskBinaryData, String taskServerList, String systemVersion)
at CMS.Synchronization.SyncClient.RunTask(TaskInfo taskObj)

Synchronizing 'Create Media file @WhateverFile@' task

Synchronizing the tasks ...

Event URL:  /CMSModules/Staging/Tools/AllTasks/Tasks.aspx
URL referrer:   http://oursite/CMSModules/Staging/Tools/AllTasks/Tasks.aspx

Recent Answers


Brenden Kehren answered on June 5, 2014 22:23

How large is the file, I've found some larger files cause problems. I believe there are some web.config changes you can make but offhand, I don't recall what they are.

0 votesVote for this answer Mark as a Correct answer

Filip Ligač answered on June 9, 2014 02:52 (last edited on June 9, 2014 02:55)

Hello Bryan,

Brenden is probably referring to <httpRuntime maxRequestLength="2097151"> setting. If this is the only media file for which synchronization fails, you might try to increase a value of this key in a web.config file.

2 votesVote for this answer Mark as a Correct answer

Brian McKeiver answered on June 12, 2014 21:40

I made a blog post about this issue that may help you out too.

http://www.mcbeev.com/Blog/September-2012/Kentico-CMS-Quick-Tip-Content-Staging-and-Large-Files

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.