Previous Next

Thread: sync failing - error 501 not implemented

Last post 05-22-2008 8:25 PM by merk. 15 replies.

Average Rating Rate It (5)

RSS

Page 1 of 2 (16 items) 1 2 Next >

Sort Posts:

  • 05-21-2008, 12:49 AM

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    sync failing - error 501 not implemented

     Hi all,

    This was working previously but since the last update it seems to have stopped. Both servers are IIS6 and i've updated msdeploy on both of them. Here's the command I am running:

     msdeploy -verb:sync -source:metakey=lm/w3svc/587111546,computerName=http://123.123.123.123:80/MSDEPLOY,username=admin,password=xyz -dest:metakey=lm/w3svc/587111546 -verbose

    IP, user and pass not actual values :)

    When i run this i get this error:

    Fatal: Request to remote agent URL 'http://66.199.228.204/MSDEPLOY' failed.  The
     remote server returned an error: (501) Not Implemented.
    Change count: 0
    Fatal count: 1

    I also tried changing MSDEPLOY to MSDEPLOYAGENTSERVICE

  • 05-21-2008, 12:59 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 562

    Re: sync failing - error 501 not implemented

    Hi Merk.
     
    Make sure msdepsvc service is running on the remote machine. And /MSDeployAgentService is the default agent URL. If you didn't override ListenUrl and did a commandline install, agent will listen on http://+:80/msdeployagentservice.

    Kanwal

  • 05-21-2008, 1:00 AM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     nevermind....i was using an invalid IP address ;p

    although now i have a new problem - source server has the sites on D drive and destination has them on C. When it runs it tells me i dont have enough room on D drive. How do I specifiy an alternate drive path?

  • 05-21-2008, 1:14 AM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     thanks ksingla,

    that was almost the right answer... it was running just not on the IP address i was trying to use :) Fixed that problem, but now i have a problem where the source server has the sites on drive D and the destination server has no drive D...it's on C. When i try to sync, it complains i dont have enough room on drive D.

    I thought when it copies, it's supposed to automatically detect where the inetpub directory is and then install there?

    I also tried doing dest:metakey......,dirpath=c:\inetpub..... but i guess i cant specify a metakey destination and path destination at the same time. Which is a little annoying since what if i want to install the same metakey but in a different location? 

    anyhow, thanks for the help

  • 05-21-2008, 2:21 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 562

    Re: sync failing - error 501 not implemented

    Merk,

    I am assuming because you have inetpub folder on C drive on destination, thats the system drive. We do detect system drive and move the data accordingly. Can you pls give me following data as well?

    1. Did this work for you before with the TP build?
    2. Can you pls disable DiskSpace dependencyCheck and see if you see a successful sync? You can do that by changing DefaultDependencyCheck rule in Microsoft.Web.Deployment.config to following.

            <rule name="DefaultDependencyCheck" type="Microsoft.Web.Deployment.DefaultDependencyRuleHandler" isDefault="true">
              <dependencyCheck name="DriveSpace" enabled="false" />
            </rule>

    Thanks.
    Kanwal

  • 05-21-2008, 11:18 AM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

    ksingla:

    Merk,

    I am assuming because you have inetpub folder on C drive on destination, thats the system drive. We do detect system drive and move the data accordingly. Can you pls give me following data as well?

    1. Did this work for you before with the TP build?
    2. Can you pls disable DiskSpace dependencyCheck and see if you see a successful sync? You can do that by changing DefaultDependencyCheck rule in Microsoft.Web.Deployment.config to following.

            <rule name="DefaultDependencyCheck" type="Microsoft.Web.Deployment.DefaultDependencyRuleHandler" isDefault="true">
              <dependencyCheck name="DriveSpace" enabled="false" />
            </rule>

    Thanks.
    Kanwal

     

    previously i moved from a server where everything was on drive C as well so this wouldn't have been an issue. Unfortunately after making the change you asked for, it still fails, although it gets a little further along before failing:

    Action: Adding dirPath (D:\Inetpub\wwwroot\xyz\)
    Fatal: Sync operation 'Add' failed with destination dirPath (D:\Inetpub\wwwroot\xyz)
    Fatal: The device is not ready.

    thanks

  • 05-21-2008, 7:23 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 68

    Re: sync failing - error 501 not implemented

    Hi Merk, could you please run the command with a -verbose switch and send us the output?

    Thanks!

    Yamini

     

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 05-21-2008, 7:40 PM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     I did run it with the verbose switch, although those were the only lines that involved errors. However, i just ran it again and here's the complete output:

    Informational: The dependency check 'IisVersion' found no issues
    Informational: The dependency check 'Iis5IsolationMode' found no issues
    Informational: The dependency check 'IIS7SourceUsingMetabase' found no issues
    Informational: The dependency check 'ConfigRedirection' found no issues
    Informational: The dependency check 'InUseDependency' found no issues
    Informational: The dependency check 'InstalledComponent' found no issues
    Informational: The dependency check 'IsapiCgiExistence' found no issues
    Informational: The dependency check 'UsingW3SVCMimemap' found no issues
    Informational: The dependency check 'AppPoolNotFound' found no issues
    Informational: The dependency check 'DisabledDependency' found no issues
    Informational: The dependency check 'NativeModuleExistence' found no issues
    Informational: The dependency check 'ProviderPathLevelMismatch' found no issues
    Informational: Skipping destination rootWebConfig64 (metaKey/metaProperty[@name='ServerComment']/rootWebConfig64) due to rule BitTo64BitRuleHandler
    Informational: Skipping destination machineConfig64 (metaKey/metaProperty[@name='ServerComment']/machineConfig64) due to rule BitTo64BitRuleHandler
    Informational: Attribute value equality changed to True when comparing metaProperty (/lm/w3svc/587111546/filters/fpexedll.dll/FilterPath) to /lm/w3svc/587111546/filters/fpexedll.dll/FilterPath due to rule EnvironmentVariableNormalize
    Informational: Destination dirPath (D:\Inetpub\wwwroot\wyx) does not match source (D:\Inetpub\wwwroot\barbarasher\wishcraft) differing in attributes (securityDescriptor,parentSecurityDescriptors,attributes).  Update pending
    Action: Adding dirPath (D:\Inetpub\wwwroot\wyx)
    Fatal: Sync operation 'Add' failed with destination dirPath (D:\Inetpub\wwwroot\wyx)
    Fatal: The device is not ready. 
    Change count: 1
    Fatal count: 2
     

    I've just changed the last part of the path for security reasons.

    thanks

  • 05-22-2008, 11:05 AM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     so is there any way i can sync the two servers with one server having sites on drive d and another on drive c and still preserve the site ID's?

  • 05-22-2008, 4:11 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 68

    Re: sync failing - error 501 not implemented

    It seems weird that msdeploy is trying to compare source d:\inetpub to destination d:\inetpub when there is no d:\ drive on destination.

    Like Kanwal mentioned, if d:\ is the system drive on source and c:\ is the system drive on destination, msdeploy will do the conversion for you when site content is under \Inetpub.

    Could you please run

    "msdeploy.exe -verb:GetSystemInfo -source:webserver60"

    on both machines and send us the output so we know what kind of machines you have and try to repro the issue here.

     

    Thanks

    Yamini

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 05-22-2008, 5:02 PM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     Actually, there IS a D drive on the destination server - it's the dvd rom. I forgot about it since i never use it. I'll post the output of that command shortly.

  • 05-22-2008, 5:04 PM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     results from destination server:

    <systemInfo osVersion="5.2" winDir="C:\WINDOWS" machineName="XYZ" processorArchitecture="x86" msdeployVersion="1.0">
      <driveInfo totalFreeBytes="161417588736">
        <drive name="C:" freeBytes="161417588736" />
      </driveInfo>
      <iisSystemInfo iisMajorVersion="6" iisMinorVersion="0">
        <aspNetVersionInfo>
          <aspNetVersion version="1.1.4322.0" />
          <aspNetVersion version="2.0.50727.0" />
        </aspNetVersionInfo>
        <webSvcExtInfo>
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\httpodbc.dll" enabled="False" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\ssinc.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_adm\admin.dll" enabled="True" />
          <webSvcExt path="C:\PHP5\php5isapi.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\asp.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\shtml.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_adm\fpadmdll.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_aut\author.dll" enabled="True" />
          <webSvcExt path="*.exe" enabled="False" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\httpext.dll" enabled="True" />
          <webSvcExt path="*.dll" enabled="False" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\fpcount.exe" enabled="True" />
        </webSvcExtInfo>
        <scriptMapInfo>
          <scriptMap path="C:\WINDOWS\system32\inetsrv\asp.dll" />
          <scriptMap path="C:\WINDOWS\system32\inetsrv\httpodbc.dll" />
          <scriptMap path="C:\WINDOWS\system32\inetsrv\ssinc.dll" />
          <scriptMap path="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" />
        </scriptMapInfo>
      </iisSystemInfo>
    </systemInfo>
     

  • 05-22-2008, 5:06 PM In reply to

    • merk
    • Top 100 Contributor
    • Joined on 09-17-2002, 12:29 PM
    • Pasadena, CA
    • Posts 32

    Re: sync failing - error 501 not implemented

     results from source machine:

    <systemInfo osVersion="5.2" winDir="C:\WINDOWS" machineName="ABC" processorArchitecture="x86" msdeployVersion="1.0">
      <driveInfo totalFreeBytes="56530669568">
        <drive name="C:" freeBytes="20098473984" />
        <drive name="D:" freeBytes="34331824128" />
        <drive name="E:" freeBytes="2100371456" />
      </driveInfo>
      <iisSystemInfo iisMajorVersion="6" iisMinorVersion="0">
        <aspNetVersionInfo>
          <aspNetVersion version="1.1.4322.0" />
          <aspNetVersion version="2.0.50727.0" />
        </aspNetVersionInfo>
        <webSvcExtInfo>
          <webSvcExt path="C:\Python24\python.exe" enabled="True" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\httpodbc.dll" enabled="False" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_adm\admin.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\ssinc.dll" enabled="False" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\asp.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\shtml.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_adm\fpadmdll.dll" enabled="True" />
          <webSvcExt path="D:\PHP\sapi\php4isapi.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" enabled="True" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\_vti_aut\author.dll" enabled="True" />
          <webSvcExt path="C:\WINDOWS\system32\inetsrv\httpext.dll" enabled="False" />
          <webSvcExt path="*.exe" enabled="True" />
          <webSvcExt path="*.dll" enabled="False" />
          <webSvcExt path="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\isapi\fpcount.exe" enabled="True" />
        </webSvcExtInfo>
        <scriptMapInfo>
          <scriptMap path="C:\WINDOWS\system32\inetsrv\asp.dll" />
          <scriptMap path="C:\WINDOWS\system32\inetsrv\httpodbc.dll" />
          <scriptMap path="C:\WINDOWS\system32\inetsrv\ssinc.dll" />
          <scriptMap path="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll" />
        </scriptMapInfo>
      </iisSystemInfo>
    </systemInfo>
     

  • 05-22-2008, 7:23 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 68

    Re: sync failing - error 501 not implemented

    Ok, we see the problem now. Both your systemdrives are c:\. So the EnvironmentVariableRuleHandler will not kick in. When source has content on d:\ which is not the systemdrive, msdeploy will try to move it to d:\ on the destination. Since you dont have a d:\ on the destination to write to, it will fail.

    In order to workaround this, you will need to use -replace parameter in the following manner.

    msdeploy.exe -verb:sync -source:metaKey=/lm/w3svc/1,computerName=machine1 -dest:metaKey=/lm/w3svc/1 -replace:scopeAttributeName=name,scopeAttributeValue=path,targetAttributeName=value,match="d:",replace="c:" -verbose

    This will ensure that all your content from d:\ is transferred to c:\ while preserving siteids.

    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
  • 05-22-2008, 7:30 PM In reply to

    • yaminij
    • Top 50 Contributor
    • Joined on 09-25-2007, 12:41 AM
    • Posts 68

    Re: sync failing - error 501 not implemented

    Alternatively, you can add the following line to your config file under configuration/rules. So the rule will kick in all the time and your command line looks cleaner.

    <rule name="ReplaceDWithC" type="Microsoft.Web.Deployment.ReplaceRuleHandler" isDefault="true" scopeAttributeName="name" scopeAttributeValue="path" targetAttributeName="value" match="d:" replace="c:" />

     

    Thanks

    Yamini
    Thanks
    Yamini Jagadeesan, SDET, Microsoft IIS Team
Page 1 of 2 (16 items) 1 2 Next >
Page view counter