Tried on both Core 7.7 and 7.9.
Every time I try to use the update module I get something like the following error:
(views_slideshow_slider)
Error installing / updating
File Transfer failed, reason: Cannot remove file /WebSites/BockSites/sites/all/modules/views_slideshow_slider\LICENSE.txt.
or
(date)
Error installing / updating
File Transfer failed, reason: Cannot remove file /WebSites/BockSites/sites/all/modules/date\CHANGELOG.txt.
It happens with all modules but the file that cannot be removed may be different. Most of the time it is changelog or license.
System is windows server 2008R2 using IIS and Mysql. All other functions including installing new modules works fine.
Thoughts?
Comments
Same issue here.
Same issue here.
Some more information
After doing a bunch of updates by hand I think the problem may be because IIS has files in use so they cannot be replaced. It would seem that stopping the IIS service, updating and restarting the service would be the work around. Not sure if this is possible...
If you stop the IIS service,
If you stop the IIS service, how do you then get into the update service?
I have same error and I don't
I have same error and I don't know how to fix it. How to reproduce:
1. Install Windows Server 2012
2. Update server
3. Install Web services 8.0
4. Update server again
5. Install PHP 5.4.11
6. Install Drupal 7.19
7. Install any module and change .info file to early version
8. Update this module
So, I mean, this is clear Windows + clear Drupal, may be someone know what problem is it? Some drupal.org posts and other sites says that problem in permissions, or in file locks... Unlocker don't show any locks on module folder (but Unlocker can sometimes be worng), and permissions that I tried is Modify, Full Control for IUSR and IIS_USRS, also for AppPool user with AppPool authentication, and for Everyone
FAILED! Cannot remove file ...
What resolution did you guys find for these error messages? I'm having this same problem and have created a new post about it: Update FAILED! Cannot remove file ... (https://drupal.org/node/2135017).
Workaround
The workaround I found was to follow Drupal's instructions for upgrading a module manually: https://drupal.org/node/250790).
Solution
It appears to be a security permissions issue. Installing manually is a pain if you are updating several modules at once. The fix that worked for me was to temporarily provide permissions:
1. Right-click on the 'sites\all\modules' folder
2. Go to properties and then Security
3. Modify the permissions for Everyone to Full Control.
4. Update modules through your Drupal site Available Updates in Administration
5. Run database update
6. Restore 'sites\all\modules' folder to a secure setting
Cheers