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
Comments
Comment #1
clemens.tolboomYou did not give much info. Try the verbose switch.
Which user is running drush? And where and what user is drupal installed?
Comment #2
root_of_roots commentedHey 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
Comment #3
clemens.tolboomMy guess is you run drush like
Try 'drush -v' or 'drush --verbose' maybe that helps a little
Comment #4
root_of_roots commentedNope. 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
Comment #5
clemens.tolboomYou are not giving much info. Please run drush --verbose then show the output here :-)
Comment #6
root_of_roots commentedWill do!
Thanks for investigating...
Comment #7
grendzy commentedsounds like maybe a duplicate of #298048: drush update fails with "failed to backup project directory ... to ..." ?
Comment #8
root_of_roots commentedThe 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
Comment #9
kruser commentedFor me Drush is deleting the entire modules directory upon trying to update! By process of elimination it only deletes the modules directory when updating the filefield module.
Comment #10
kruser commentedI tried this again on separate site and it wiped out my entire /sites directory! It happened after it upgraded imagecache:
Project imagecache was updated successfully. Installed version is now 6.x-2.0-beta6.
drush: Failed to backup project directory /
This should probably be upgraded to critical since it's wiping out entire directories of modules without warning.
Comment #11
moshe weitzman commentedall this code changed.
Comment #12
root_of_roots commentedWhat is it a duplicate of? Is it fixed now?
Comment #13
grendzy commentedI'm guessing wontfix is what was intended, meaning it won't be fixed in the old version.
If you see this problem in the new HEAD version, probably opening a new issues is best.