locked
SPS 2003 Restore a portal from databases "DuplicateDirectoryException" error RRS feed

  • Question

  • We had our SQL server die.  I have recent backups of the Site, Profile, and Services databases created through SQL Management Studio, not through Sharepoint's automated backup utility.

    On the server where the Sharepoint Portal Server 2003 application was residing, I removed the content database and created a new content database.

    I restored the three database backups onto a new server.

    Then, I tried restoring a portal site through the Sharepoint Central Administration backend, pointing at the three restored databases.

    The process errors out quickly giving this in the log:

     

    13:13:48 Starting portal creation for Reveal
    13:13:48 Values used for restore: PortalUrl=http://servername/ Virtual Server Url=http://servername/ PortalName=Reveal Application Pool=MSSharePointPortalAppPool, user=user SiteDB=(servername, SPS2003_SITE) ProfileDB=(servername, SPS2003_PROF) ServiceDB=(servername, SPS2003_SERV)
    13:13:48 Original values recovered: SiteCountWarning=9000 SiteCountLimit=15000 OriginalPortalUrl=http://servername/ OriginalWorkspaceUrl= PortalWasFederated=FALSE PortalWasCentral=FALSE
    13:13:48 Enter RecoverSite()
    13:13:48 Portal creation failed Microsoft.SharePoint.Portal.Install.DuplicateDirectoryException: Exception of type Microsoft.SharePoint.Portal.Install.DuplicateDirectoryException was thrown. at Microsoft.SharePoint.Portal.Install.c.a(Uri A_0, Uri A_1) at Microsoft.SharePoint.Portal.Admin.c.a() at Microsoft.SharePoint.Portal.Admin.c.f()
    13:13:48 Enter SearchConfigure()

     

    Any help appreciated!

    Tuesday, January 4, 2011 7:39 PM

Answers

  • Hi,

    before attachng new content DB to new site did you detech existing DB ?

    If not then try to detach it first  and then run following stsadm command

    stsadm -o addcontentdb -url <URL of new web application> -dn <DatabaseName> -overwrite

    Please let us know if this will be helpful or not ?


    Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
    • Marked as answer by David HM Tuesday, January 11, 2011 8:10 AM
    Wednesday, January 5, 2011 9:48 AM
  • Hi SharepointIsBusted,

     

    Thank you for share your problem.

     

    The DuplicateDirectoryException may caused by trying to restore a portal to a IIS virtual server with the home directory that is the same as another virtual server. Change the home directory may solve this problem. Could you please check if this problem exist in your restore process?

     

    Hope this could help you.

     

    Regards.

    • Marked as answer by David HM Tuesday, January 11, 2011 8:10 AM
    Thursday, January 6, 2011 2:07 AM

All replies

  • Hi,

    before attachng new content DB to new site did you detech existing DB ?

    If not then try to detach it first  and then run following stsadm command

    stsadm -o addcontentdb -url <URL of new web application> -dn <DatabaseName> -overwrite

    Please let us know if this will be helpful or not ?


    Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/
    • Marked as answer by David HM Tuesday, January 11, 2011 8:10 AM
    Wednesday, January 5, 2011 9:48 AM
  • Hi SharepointIsBusted,

     

    Thank you for share your problem.

     

    The DuplicateDirectoryException may caused by trying to restore a portal to a IIS virtual server with the home directory that is the same as another virtual server. Change the home directory may solve this problem. Could you please check if this problem exist in your restore process?

     

    Hope this could help you.

     

    Regards.

    • Marked as answer by David HM Tuesday, January 11, 2011 8:10 AM
    Thursday, January 6, 2011 2:07 AM