?
Solved

msdeploy error 0x80070020 cannot access file - being used by another process

Posted on 2011-03-15
3
Medium Priority
?
2,126 Views
Last Modified: 2012-05-11
I am trying to migrate a site from iis6 server2k3 32 bit to iis7  server 2008 64 bit. I have successfully migrated a number of sites but am having trouble with the main site. The command line is below. The error is returned on the package creation on the 2k3 iis6 server.

Here's the error
Error: An error was encountered when processing '00000002.ps1'.
Error: The error code was 0x80070020.
Error: The process cannot access 'c:\Inetpub\catalog.wci\00000002.ps1' because it is being used by a
nother process.
Error count: 1.

I found the ignoreErrors switch. This apparently works with the objectname filepath or dirpath. I have not specified either of those parameters on the source or destination and instead have used the metakey to move individual websites. I do use filepath with a skip switch to skip files in /documents and settings, not sure why they would be needed, but now get  error 0x80070020, being used by another process, on \inetpub\catalog.wci\ . I guess I could continue to skip folders that return errors but I don't know how that wil affect the migration results.

The question is, can I safely skip these folders, can i use the ignoreErrors option, or should I just stop the websites for the duration of the package creation? Any other ideas?

Thanks Again,

Dennis
msdeploy -verb:sync -source:metakey=lm/w3svc/228398852 
-dest:package=d:\!webstores\xxxxxsapps.zip,encryptPassword=password -enableLink:apppool -skip:objectname=filepath,absolutePath="Documents
 and Settings\\*" > d:\!webstores\xxxxxsapps.log

Open in new window

0
Comment
Question by:froshcoach
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:shjacks55
ID: 35142943
file in use or corrupt. doesn't make sense for a powershell script is being called from the inetpub root.. disable the IIS webserver service. what does '00000002.ps1' do? Websearch suggests the error is anti-virus or scurity software. have you tried migrating the website in frontpage or sharepoint designer?
0
 

Accepted Solution

by:
froshcoach earned 0 total points
ID: 35143550
shjacks55,

I have not tried any other migration methods as this tool was working and appears to the method of choice where iis6 and 7 are involved.

The site involved is a retail site, so taking it down has financial implications. Because of this, I would like to avoid that option if possible. In any event, it will take at least a couple of days to get an OK.

I think there might be an answer in the skip options explained here:
http://blog.torresdal.net/2010/08/16/NoClickWebDeploymentPart2WebDeployAkaMsdeploy.aspx

or here using the config file:

http://blogs.iis.net/msdeploy/archive/2008/05/23/how-to-write-skip-and-replace-rules-for-msdeploy.aspx?CommentPosted=true#commentmessage

but I don't understand the consequences well enough to use these options confidently nor do I understand the syntax well enough to get it work as expected.

Thanks,

Den
0
 

Author Closing Comment

by:froshcoach
ID: 35381859
It appears that I will have to experiment by excluding the folders returning errors or by taking the web server down for the package creation.

Thanks for the feedback.

Den
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question