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
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

clemens.tolboom - November 3, 2008 - 11:53

You did not give much info. Try the verbose switch.

Which user is running drush? And where and what user is drupal installed?

#2

root_of_roots - November 3, 2008 - 14:42

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

clemens.tolboom - November 4, 2008 - 14:25

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 update

Try 'drush -v' or 'drush --verbose' maybe that helps a little

#4

root_of_roots - November 4, 2008 - 15:47

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

clemens.tolboom - November 5, 2008 - 08:18

You are not giving much info. Please run drush --verbose then show the output here :-)

#6

root_of_roots - November 5, 2008 - 14:22

Will do!

Thanks for investigating...

#7

grendzy - November 8, 2008 - 00:26

#8

root_of_roots - November 8, 2008 - 14:36

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

 
 

Drupal is a registered trademark of Dries Buytaert.