Solved

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

Posted on 2011-03-15
3
2,096 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

696 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