Solved

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

Posted on 2011-03-15
3
2,043 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
  • 2
3 Comments
 
LVL 3

Expert Comment

by:shjacks55
Comment Utility
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
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now