Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 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