?
Solved

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

Posted on 2011-03-15
3
Medium Priority
?
2,152 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Screencast - Getting to Know the Pipeline
Suggested Courses

862 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