Add drush clean-modules command - clean_missing_modules extension.----

The drush command 'clean-modules' could not be found.

doesnt work......

Comments

omega8cc’s picture

Project: Barracuda » Octopus
Status: Active » Fixed

Fixed in http://drupalcode.org/project/octopus.git/commit/848776b and applied also to stable.

Thanks for the heads up!

AntiNSA’s picture

so happy I can help. No thanks needed. you help feed my kids, educate my students , and even help teach my children how to read and every other subject. couldnt thank you enough.

AntiNSA’s picture

Status: Fixed » Needs work

Just installed latest head with that commit, yet still get command not found when drush clean-modules command is issued...
Is this only working in 2.0.6 and not head?

AntiNSA’s picture

Just tried re-instaling 2.0.6 and also get command not found.

omega8cc’s picture

Status: Needs work » Fixed

You must be logged in as an aegir or o1.ftp user (or any other username you have configured) to be able to use these extensions. It works also with stable BOA-2.0.6:

o1.ftp:[mc.o1.v190q.nyc.host8.biz]$ drush clean-modules
Nothing to disable.
o1.ftp:[mc.o1.v190q.nyc.host8.biz]$
AntiNSA’s picture

Category: bug » support

Is it possible that you can give access to poeple to run this command who are logged in as root? I know I need to be logged in as o1 ... but I have never figured out how to login as o1 and csf always locks me out so I always log in as root and then verify to fix permission issues. All the other drush stuff runs great as root, this is the only one that doesnt AFAIK

omega8cc’s picture

You should never ever run Drush as root.

When you are logged in as root, simply switch to the correct user with su o1.ftp to be able to use all available Drush extensions:

v190q:~# whoami
root
v190q:~# su o1.ftp

         ======== Welcome to the Aegir and Drush shell ========
         Type '?' or 'help' to get the list of allowed commands
                   Your favorite command not allowed?
                     Contact us: support@omega8.cc

o1.ftp:~$ cd c*
o1.ftp:[clients]$ cd A*
o1.ftp:[sites@Aegir]$ cd mc.o1.v190q.nyc.host8.biz
o1.ftp:[mc.o1.v190q.nyc.host8.biz]$ drush clean-modules
Nothing to disable.
o1.ftp:[mc.o1.v190q.nyc.host8.biz]$
AntiNSA’s picture

======== Welcome to the Aegir and Drush shell ========
Type '?' or 'help' to get the list of allowed commands
Your favorite command not allowed?
Contact us: support@omega8.cc

tcotn.ftp:~$ ls
backups clients platforms static
tcotn.ftp:~$ cd platforms
tcotn.ftp:[platforms]$ ls
001
tcotn.ftp:[platforms]$ cd 001
tcotn.ftp:[001]$ ls
keys pressflow-6.28.1-prod
tcotn.ftp:[001]$ cd pressflow-6.28.1-prod
tcotn.ftp:[sites]$ ls
all default thecenterofthenet.com
tcotn.ftp:[sites]$ cd thecenterofthenet.com
tcotn.ftp:[thecenterofthenet.com]$ drush clean-modules
The drush command 'clean-modules' could not be found. [error]

I dont know why it doesnt work... but thats awesome thank for the tip on how to login correctly

AntiNSA’s picture

Status: Fixed » Needs work
omega8cc’s picture

Status: Needs work » Fixed

Please don't change the status, because it *is* fixed. Maybe you just need to run barracuda up-stable system again and wait until it completes and then fixes everything in the next 5-10 minutes. Note that barracuda up-stable system will not show any progress in the terminal and instead it will send the report via e-mail, once completed, so don't panic, just wait until it will display the final result in the terminal. I would recommend that you start screen before running barracuda up-stable system, so it will finish even if you will lost connection in the middle of the process. I hope this helps.

AntiNSA’s picture

Wed Apr 3 12:33:01 EDT 2013 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.6 / Barracuda BOA-2.0.6 / Nginx 1.3.15 / PHP 5.2.17 and 5.3.23 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.30 localhost / Wildcard YES

Sun Mar 17 09:19:37 EDT 2013 / Debian.squeeze x86_64 / Aegir HEAD / Octopus BOA-2.0.6-dev / FPM 5.3 / CLI 5.3

###
### Configuration created on 130317-0914 with
### Octopus version BOA-2.0.6-dev
###
### NOTE: the group of settings displayed bellow
### will *override* all listed settings in the Octopus script.
###
_USER="tcotn"
_MY_EMAIL="robertp.eaton@gmail.com"
_PLATFORMS_LIST="D6P"
_ALLOW_UNSUPPORTED=NO
_AUTOPILOT=NO
_HM_ONLY=NO
_O_CONTRIB_UP=NO
_DEBUG_MODE=NO
_MY_OWNIP=
_FORCE_GIT_MIRROR=""
_THIS_DB_HOST=localhost
_DNS_SETUP_TEST=YES
_HOT_SAUCE=NO
_USE_CURRENT=YES
_REMOTE_CACHE_IP=127.0.0.1
_LOCAL_NETWORK_IP=
_PHP_FPM_VERSION=5.3
_PHP_CLI_VERSION=5.3
_USE_STOCK=NO
###
### NOTE: the group of settings displayed bellow will be *overriden*
### by config files stored in the /data/disk/tcotn/log/ directory,
### but only on upgrade.
###
_DOMAIN="tcotn.base.mancanthink.com"
_CLIENT_EMAIL="robertp.eaton@gmail.com"
_CLIENT_OPTION="SSD"
_CLIENT_SUBSCR="Y"
_CLIENT_CORES="8"
###
### Configuration created on 130317-0914 with
### Octopus version BOA-2.0.6-dev
###

Its still not working for me?

omega8cc’s picture

Status: Fixed » Active

What is the result of command:

ls -la /home/tcotn.ftp/.drush/clean_missing_modules

?

omega8cc’s picture

Or even better:

ls -la /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc

AntiNSA’s picture

ls: cannot access /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc: No such file or directory

omega8cc’s picture

If this command (run it as root):

ls -la /var/aegir/.drush/clean_missing_modules/clean_missing_modules.drush.inc

will also display missing file error, then it means that this extension was not installed for some reason, and you should run barracuda up-stable again - and allow it to upgrade also master instance, not just the system.

AntiNSA’s picture

I have ran up-stable and am currently using barracuda up-head...Ive ran it probably about 4 times .

-rw-r--r-- 1 aegir aegir 1.3K Jul 27 2012 /var/aegir/.drush/clean_missing_modules/clean_missing_modules.drush.inc
base:~#

AntiNSA’s picture

ls -la /var/aegir/.drush/clean_missing_modules/clean_missing_modules.drush.inc
gives me
-rw-r--r-- 1 aegir aegir 1.3K Jul 27 2012 /var/aegir/.drush/clean_missing_modules/clean_missing_modules.drush.inc

ls -la /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc
gives me
ls: cannot access /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc: No such file or directory

ls -la /home/tcotn.ftp/.drush/clean_missing_modules
gives me
ls: cannot access /home/tcotn.ftp/.drush/clean_missing_modules: No such file or directory

It says -rw-r--r-- 1 aegir aegir for user and group but su aegir.ftp is unknown user id and my user name for octopus is tcotn....

Think that is the problem... any ideas how I can get it to recognize my octopus user name?

omega8cc’s picture

Status: Active » Postponed (maintainer needs more info)

What are the permissions on the .drush directory then? Please let us know what is the result of command:

ls -la /home/tcotn.ftp/

This doesn't look standard to me, but maybe you have managed to break something by running Drush as root, no idea.

AntiNSA’s picture

Thanks a lot for your help. Here are the results:

Last login: Sun Apr  7 09:17:43 2013 from 183.4.229.85
base:~# ls -la /home/tcotn.ftp/
total 20K
drwx------ 5 tcotn.ftp users 4.0K Apr  3 09:15 ./
drwx--x--x 4 root      root  4.0K Mar 17 09:19 ../
lrwxrwxrwx 1 root      root    24 Mar 17 09:19 backups -> /data/disk/tcotn/backups/
lrwxrwxrwx 1 root      root    24 Mar 17 09:19 clients -> /data/disk/tcotn/clients/
drwx------ 2 tcotn.ftp users 4.0K Mar 17 09:19 .drush/
-rw-r--r-- 1 tcotn.ftp users    0 Apr  3 19:51 .lhistory
drwxr-xr-x 3 tcotn     users 4.0K Mar 17 09:19 platforms/
drwx------ 2 tcotn.ftp users 4.0K Mar 17 09:19 .ssh/
lrwxrwxrwx 1 root      root    23 Mar 17 09:19 static -> /data/disk/tcotn/static/
omega8cc’s picture

Looks good. And now again:

ls -la /home/tcotn.ftp/.drush/
ls -la /var/aegir/.drush/clean_missing_modules

AntiNSA’s picture

ls -la /home/tcotn.ftp/.drush/

base:~# ls -la /home/tcotn.ftp/.drush/
total 8.0K
drwx------ 2 tcotn.ftp users 4.0K Mar 17 09:19 ./
drwx------ 5 tcotn.ftp users 4.0K Apr  3 09:15 ../
lrwxrwxrwx 1 root      root    28 Mar 17 09:19 drush_make -> /var/aegir/.drush/drush_make/
lrwxrwxrwx 1 root      root    34 Mar 17 09:19 registry_rebuild -> /var/aegir/.drush/registry_rebuild/

ls -la /var/aegir/.drush/clean_missing_modules

base:~# ls -la /var/aegir/.drush/clean_missing_modules
total 12K
drwxr-xr-x 2 aegir aegir 4.0K Apr  1 15:43 ./
drwx--x--x 9 aegir aegir 4.0K Apr  7 09:24 ../
-rw-r--r-- 1 aegir aegir 1.3K Jul 27  2012 clean_missing_modules.drush.inc
base:~#
omega8cc’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

You don't have required symlink, but the system should create it for you, if you have really up-to-date system.

You can fix it manually (as root) with command:

ln -s /var/aegir/.drush/clean_missing_modules /home/tcotn.ftp/.drush/clean_missing_modules

AntiNSA’s picture

Great. Thanks. After all that... nothing to disable.....

I am a little worried though as I update regularly... you said if I had an up to date system... I like to think my system is up do date.

What can I do to make sure my system is up to date... I am afraid other things might not be working properly if this wasnt and I might not even know about it... I am not receiving any errors or anything... but better safe than sorry.

omega8cc’s picture

Just make sure you are running latest BOA-2.0.8 with barracuda up-stable and octopus up-stable all.