IIS 7 and Above
FTP: 550 - The process cannot access the file because it is being use...
Last post Feb 21, 2013 06:31 PM by ericrobert
Jul 08, 2010 06:47 PM|that_guy|LINK
I have setup FTP on IIS 7.5 and can use it just fine to transfer various log files (web, smtp, firewall) EXCEPT for the current file being written to (e.g. today's log file)
website_x can transfer yesterdays log file, but not today's log file if there is somebody on the website (and IIS is therefore writing to the log file for website_x). There seems to be a "time out" and after several minutes of no activity on the website
then the log file is "released" by IIS and can be copied over (no traffic on a production website is not the idea though).
This wasn't/isn't a problem on IIS 5.0 (currently running in a live production environment).
Error encountered on 2008 R2 IIS 7.5:
FTP: 550 - The process cannot access the file because it is being used by another process.
Apparently this is a "by design" behavior per the link below.
I followed the suggestions per the link above, but it doesn't resolve. In addition, I don't necessarily think this is an FTP issue, but more of a Windows or IIS "locking" issue because I can reproduce the error trying to transfer the file using remote control
Any suggestions would be appreciated. I can remote control to the server, copy the live log files to a "transfer" directory and then FTP them over, but it'd just be nice to FTP all the log files at once (not just the ones not currently being written to).
iis7.5 file locking
log files locked
Jul 12, 2010 02:04 AM|steve schofield|LINK
I would run process explorer and see what process is locking the file. Please post what file is locking the file.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Jul 19, 2010 11:15 PM|SurfJunkie|LINK
Jul 22, 2010 03:44 AM|that_guy|LINK
Thanks for the feedback and suggestions. I reviewed the bindings via IIS (all sites port 80 as desired). Also ftp sites setup (port 21 as desired).
For some reason I get the error when attempting to ftp_transfer any log file currently being written to (e.g. live website IIS log file, smtp log file, today's windows firewall log files).
I setup a special_ftp_account and assigned_superman_permissions. Can transfer yesterdays files & earlier just fine.
Now here's the weird thing, using remote control software, can copy the "live" log file(s) referenced above into another directory and then can FTP without a problem.
It's not one of those "show stoppers" but it is kinda bothersome since I can FTP "live website" log files on a IIS 5.0 machine running in a production environment. It almost seems like this behavior is more than just IIS & FTP considering it happens w/ the
firewall log files too.
That is a good one for getting an idea of what is going on w/ each port (thanks for passing it on).
I appreciate the suggestions.
Feb 21, 2013 06:31 PM|ericrobert|LINK
I'm having this same issue now. Did you ever find a fix for it?