locked
Content deployment problems RRS feed

  • Question

  • We have our internet site running on SP2010 and we decided to rebuild our stage environment.  As part of that we took a backup of our production authoring farm and dumped it into our new staging authoring environment, then tried to do a regular content deployment to the 'production' stage farm, and it fails.

    The error we get in CA every time a deployment is run is:

    "Content deployment job 'Media Deployment - Daily' failed.The remote upload Web request failed."

    In the event viewer I get:

    "Failed to transfer files to destination server for Content Deployment job 'Media Deployment - Daily'. Exception was: 'System.Net.WebException: The remote server returned an error: (404) Not Found.
       at System.Net.HttpWebRequest.GetResponse()
       at Microsoft.SharePoint.Publishing.Internal.Administration.HttpDataTransfer.UploadFile(String sourceFilePath, String postToUrl, String& responseXml)
       at Microsoft.SharePoint.Publishing.Administration.ContentDeploymentJob.UploadFilesToRemoteServer(Guid remoteJobId, String adminPortUrl)
       at Microsoft.SharePoint.Publishing.Administration.ContentDeploymentJob.DoServerToServer()'"

     

    In the IIS Logs I got:

    2012-01-24 07:32:25 170.92.7.151 POST /_admin/Content+Deployment/DeploymentUpload.aspx filename=%22ExportedFiles189.cab%22&remoteJobId=%22b2e1a9e0-b074-47dd-8227-bb133a578b75%22 47181 - 170.92.7.161 - 404 13 0 46
    2012-01-24 07:32:26 170.92.7.151 POST /_vti_adm/ContentDeploymentRemoteImport.asmx - 47181 - 170.92.7.161 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.5448) 401 1 2148074254 0
    2012-01-24 07:32:26 170.92.7.151 POST /_vti_adm/ContentDeploymentRemoteImport.asmx - 47181 xxx\srvc_xxxx_farm 170.92.7.161 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.5448) 200 0 0 765

    I found the following things on the internet which I tried to figure out how they apply to me:

    http://blogs.msdn.com/b/sudeepg/archive/2009/11/10/content-deployment-the-remote-server-returned-an-error-404-not-found.aspx

    http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/requestLimits

    http://forums.iis.net/p/1066272/1543441.aspx

     

    What I'm trying to figure out is which setting I should change?  In IIS I have the "Maximum Allowed Content Length (Bytes)" set to 2147483647, which is the same as in our production farm. This setting also has the same number in the web.config files as well.

    In the Web.config I have: httpRuntime maxRequestLength="2097151", which is the same as in production as well.

    And lastly in the web.config I have: httpRuntime maxRequestLength="51200", which is the same as production.

    I'm not sure if all of these defaults work in production because the content was slowly phased in, whereas now we are trying to do the first migration in the new stage environment in one big chunk, (I don't know of any other way to do it).  The content comes out to roughly 6gb, and the highest I can set the maxrequestlength setting to in IIS manager is 4gb, so I assume i'm missing something.  I'm not sure if I should try to set it higher in the web.config file or not.

    Sorry this post has gone on so long.  If anyone has any suggestions I'd love to hear them.

    Thanks.

    Ted

     

     

    Wednesday, January 25, 2012 7:38 PM

Answers

  • In IIS manager MMC locate the central admin website. Expand it. Double check if ther eis a _admin virtual directory. if yes: expand it and double check if there is a "Content Deployment" virtual directory. If yes: expand it and double check if it contains a DeploymentUpload.aspx page.

     


    Stefan Goßner
    Senior Escalation Engineer - Microsoft CSS
    This post is provided "AS IS" with no warrenties and confers no rights.
    • Marked as answer by Ted McLaughlin Thursday, January 26, 2012 8:02 PM
    Thursday, January 26, 2012 4:42 PM

All replies

  • It seems that on the import server there is no file behind the url /_admin/Content+Deployment/DeploymentUpload.aspx.

    Please double check in IIS manager on the web site used for central admin.


    Stefan Goßner
    Senior Escalation Engineer - Microsoft CSS
    This post is provided "AS IS" with no warrenties and confers no rights.
    Thursday, January 26, 2012 3:58 PM
  • It seems that on the import server there is no file behind the url /_admin/Content+Deployment/DeploymentUpload.aspx.

    Please double check in IIS manager on the web site used for central admin.

    Stefan,

    Thank you for your reply.  However to be honest I am not sure what you mean.  When you say that there is no file behind the url /_admin/content+deployment, what do you mean?   When I set up the paths in the configure content deployment window I don't get an option to add anything other than the "/" for root of the web app.

    Since I saw your reply I have been clicking in and out of every option in IIS manager for Central Admin on both the source and destination servers trying to figure out what I missed, but can't figure it out. (It's probably right in front of my face, but I don't know enough to recognize it).

    Thanks again for your help.

    Ted

     

    Thursday, January 26, 2012 4:06 PM
  • In IIS manager MMC locate the central admin website. Expand it. Double check if ther eis a _admin virtual directory. if yes: expand it and double check if there is a "Content Deployment" virtual directory. If yes: expand it and double check if it contains a DeploymentUpload.aspx page.

     


    Stefan Goßner
    Senior Escalation Engineer - Microsoft CSS
    This post is provided "AS IS" with no warrenties and confers no rights.
    • Marked as answer by Ted McLaughlin Thursday, January 26, 2012 8:02 PM
    Thursday, January 26, 2012 4:42 PM
  • Stefan,

    Your answer wasn't exactly the issue but it was close enough to get me to the problem.

    When I drilled down to that _admin/content deployment page and then clicked on Explore, lo and behold there was a web.config file there, (in addition to the upload.aspx file).  I looked it and sure enough the maxuploadcontent setting was set to 10mb.


    So I changed that to something like 2gb, and I was able to get past that error!  YAY!

    Of course now I am getting a completely different error, and one that will be every bit as difficult to solve :-(.  But I'll screw with that one myself for awhile and then if I can't figure it out I'll post a different thread on that one.

    Thanks again for your help!

    Ted

     

    Thursday, January 26, 2012 8:08 PM
  • Thanks guys, I was able to use this to fix my issue.

    Just a few notes, make these changes on the TARGET server, not the source. (or at least it didnt work until I did it on the target server)

    I blogged this here: https://eschrader.com/2017/04/26/sharepoint-2010-content-deployment-job-failed-the-remote-upload-web-request-failed-the-remote-server-returned-an-error-404-not-found/

    This is what finally worked for me, On the target WFE(s) modified web.config same as above:

    1. On target WFE(s), Edit the web.config file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\Content Deployment

      <httpRuntime maxRequestLength=”307200” />

      <requestLimits maxAllowedContentLength=”314572800” />

      1. old values (for backup purposes)

        <httpRuntime maxRequestLength=”102400″ />

        <requestLimits maxAllowedContentLength=”104857600″ />

    2. On target WFE(s), perform an IIS reset
    3. Launch the CDP job again and it should run.

    • Proposed as answer by ESchrader Thursday, April 27, 2017 3:53 AM
    Thursday, April 27, 2017 3:53 AM