Keeps Deleting Modules on "pm update" - Drupal 6.x
root_of_roots - October 31, 2008 - 19:10
| Project: | Drush |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello,
I have tried using drush multiple times. It would really make my server administration better. Unfortunately it keeps on messing up. I have tried either linking it to the /usr/local/bin folder or making a .profile for "drush" in my Drupal root.
Every time I run "drush pm update" it gives me the message "failed to back up module ..." and deletes some modules. It should be updating them but it deletes them.
Any suggestions?
Thanks a lot!
-ROR

#1
You did not give much info. Try the verbose switch.
Which user is running drush? And where and what user is drupal installed?
#2
Hey thanks,
I am not sure exactly what you mean by "which user"? Drupal has been installed via the root user, therefore it is edited by "sudo" commands. Although recently we globally changed server permissions for another user.
Drush is installed for root, so I run it via "sudo". Drush is installed in /var/www/website//sites/all/modules/drush.
Thanks,
-ROR
#3
My guess is you run drush like
sudo php /var/www/example.com/sites/example.com/modules/drush/drush.php --root=/var/www/example.com/sites/example.com --uri=example.com -v pm updateTry 'drush -v' or 'drush --verbose' maybe that helps a little
#4
Nope. As I said, I made the links and the profile.
So I could run it from /var/www/ as "drush" or alternatively (with the .profile) from the Drupal root as "drush". For both I would sometimes try "sudo drush"...
I even ran it manually "sudo php ...".
It triggered drush successfully each time. Just "pm update" gave the error "Failed to backup module..." and then when I checked the ../modules folder some modules were deleted. Unpacking the modules back into the directory, however restored everything to how it was previously.
Cheers,
-ROR
#5
You are not giving much info. Please run drush --verbose then show the output here :-)
#6
Will do!
Thanks for investigating...
#7
sounds like maybe a duplicate of #298048: drush update fails with "failed to backup project directory ... to ..." ?
#8
The OP didn't mention disappearing modules in the previous thread.
btw - I have not forgotten about this, I just had a rough week at school.
Regards,
-ROR