Advertisement

02.19.2008 at 09:44AM PST, ID: 23175083
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Stsadm.exe import failing

Asked by markmaske in MOSS-Sharepoint, Windows 2003 Server

Tags: , ,

We have a Windows 2003 R2 server on which Sharepoint services was running.  It got destroyed without a current proper backup.  I have the data files (.mdf/.ldf) and I have an older backup (contains .bak files) that I have used before to restore the whole thing.  Right now the Sharepoint is running properly with no data in it and none of our sites or anything.  I would like to restore the data from the .mdf/.ldf files if possible or from the old backup if that isn't possible.  I have been trying to use stsadm.exe to import the data since I don't want to a restore because I don't want it to restore security information.  The command I am using is: stsadm.exe -o import -url http://servername -filename c:\Data\WSS_Content.mdf
that gives me:
[2/19/2008 11:21:13 AM]: Start Time: 2/19/2008 11:21:13 AM.
[2/19/2008 11:21:13 AM]: Progress: Initializing Import.
[2/19/2008 11:21:13 AM]: Error: Unable to read cabinet info from c:\Data\WSS_Content.mdf
[2/19/2008 11:21:13 AM]: Debug:    at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)
   at Microsoft.SharePoint.Deployment.ImportDataFileManager.<>c__DisplayClass2.<Uncompress>b__0()
   at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)
[2/19/2008 11:21:13 AM]: FatalError: Failed to read package file.
   at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)
   at Microsoft.SharePoint.Deployment.SPImport.Run()
*** Inner exception:
Unable to read cabinet info from c:\Data\WSS_Content.mdf
   at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)
   at Microsoft.SharePoint.Deployment.ImportDataFileManager.<>c__DisplayClass2.<Uncompress>b__0()
   at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)
[2/19/2008 11:21:13 AM]: Progress: Import Completed.
[2/19/2008 11:21:13 AM]: Finish Time: 2/19/2008 11:21:13 AM.
[2/19/2008 11:21:13 AM]: Completed with 0 warnings.
[2/19/2008 11:21:13 AM]: Completed with 2 errors.

I also get an error if I try to import the old backup:
[2/19/2008 10:00:22 AM]: Start Time: 2/19/2008 10:00:22 AM.
[2/19/2008 10:00:22 AM]: Progress: Initializing Import.
[2/19/2008 10:00:22 AM]: Warning: Import requirement file c:\Data\SPBackup\Requirements.xml was not found no verifications ran.
[2/19/2008 10:00:22 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSettings.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.FileInfo.Open(FileMode mode, FileAccess access)
   at Microsoft.SharePoint.Deployment.SPImport.DeserializeExportSettings()
   at Microsoft.SharePoint.Deployment.SPImport.Run()
[2/19/2008 10:00:22 AM]: Progress: Import Completed.
[2/19/2008 10:00:22 AM]: Finish Time: 2/19/2008 10:00:22 AM.
[2/19/2008 10:00:22 AM]: Completed with 1 warnings.
[2/19/2008 10:00:22 AM]: Completed with 1 errors.
[2/19/2008 10:21:11 AM]: Start Time: 2/19/2008 10:21:11 AM.
[2/19/2008 10:21:11 AM]: Progress: Initializing Import.
[2/19/2008 10:21:11 AM]: Warning: Import requirement file c:\Data\SPBackup\Requirements.xml was not found no verifications ran.
[2/19/2008 10:21:11 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSettings.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.FileInfo.Open(FileMode mode, FileAccess access)
   at Microsoft.SharePoint.Deployment.SPImport.DeserializeExportSettings()
   at Microsoft.SharePoint.Deployment.SPImport.Run()
[2/19/2008 10:21:11 AM]: Progress: Import Completed.
[2/19/2008 10:21:11 AM]: Finish Time: 2/19/2008 10:21:11 AM.
[2/19/2008 10:21:11 AM]: Completed with 1 warnings.
[2/19/2008 10:21:11 AM]: Completed with 1 errors.
[2/19/2008 11:19:42 AM]: Start Time: 2/19/2008 11:19:42 AM.
[2/19/2008 11:19:42 AM]: Progress: Initializing Import.
[2/19/2008 11:19:42 AM]: Warning: Import requirement file c:\Data\SPBackup\Requirements.xml was not found no verifications ran.
[2/19/2008 11:19:42 AM]: FatalError: Could not find file 'c:\Data\SPBackup\ExportSettings.xml'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.FileInfo.Open(FileMode mode, FileAccess access)
   at Microsoft.SharePoint.Deployment.SPImport.DeserializeExportSettings()
   at Microsoft.SharePoint.Deployment.SPImport.Run()
[2/19/2008 11:19:42 AM]: Progress: Import Completed.
[2/19/2008 11:19:42 AM]: Finish Time: 2/19/2008 11:19:42 AM.
[2/19/2008 11:19:42 AM]: Completed with 1 warnings.
[2/19/2008 11:19:42 AM]: Completed with 1 errors.
Start Free Trial
[+][-]02.19.2008 at 09:52AM PST, ID: 20930705

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MOSS-Sharepoint, Windows 2003 Server
Tags: Microsoft, Sharepoint Services, 3.0
Sign Up Now!
Solution Provided By: merowinger
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.19.2008 at 11:37AM PST, ID: 20931740

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 11:50AM PST, ID: 20931872

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628