Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add drush clean-modules command - clean_missing_modules extension.----
The drush command 'clean-modules' could not be found.
doesnt work......
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedFixed in http://drupalcode.org/project/octopus.git/commit/848776b and applied also to stable.
Thanks for the heads up!
Comment #2
AntiNSA CreditAttribution: AntiNSA commentedso 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.
Comment #3
AntiNSA CreditAttribution: AntiNSA commentedJust 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?
Comment #4
AntiNSA CreditAttribution: AntiNSA commentedJust tried re-instaling 2.0.6 and also get command not found.
Comment #5
omega8cc CreditAttribution: omega8cc commentedYou must be logged in as an
aegir
oro1.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:Comment #6
AntiNSA CreditAttribution: AntiNSA commentedIs 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
Comment #7
omega8cc CreditAttribution: omega8cc commentedYou 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:Comment #8
AntiNSA CreditAttribution: AntiNSA commented======== 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
Comment #9
AntiNSA CreditAttribution: AntiNSA commentedComment #10
omega8cc CreditAttribution: omega8cc commentedPlease 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 thatbarracuda 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 startscreen
before runningbarracuda up-stable system
, so it will finish even if you will lost connection in the middle of the process. I hope this helps.Comment #11
AntiNSA CreditAttribution: AntiNSA commentedWed 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?
Comment #12
omega8cc CreditAttribution: omega8cc commentedWhat is the result of command:
ls -la /home/tcotn.ftp/.drush/clean_missing_modules
?
Comment #13
omega8cc CreditAttribution: omega8cc commentedOr even better:
ls -la /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc
Comment #14
AntiNSA CreditAttribution: AntiNSA commentedls: cannot access /home/tcotn.ftp/.drush/clean_missing_modules/clean_missing_modules.drush.inc: No such file or directory
Comment #15
omega8cc CreditAttribution: omega8cc commentedIf 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.Comment #16
AntiNSA CreditAttribution: AntiNSA commentedI 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:~#
Comment #17
AntiNSA CreditAttribution: AntiNSA commentedls -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?
Comment #18
omega8cc CreditAttribution: omega8cc commentedWhat 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.
Comment #19
AntiNSA CreditAttribution: AntiNSA commentedThanks a lot for your help. Here are the results:
Comment #20
omega8cc CreditAttribution: omega8cc commentedLooks good. And now again:
ls -la /home/tcotn.ftp/.drush/
ls -la /var/aegir/.drush/clean_missing_modules
Comment #21
AntiNSA CreditAttribution: AntiNSA commentedls -la /home/tcotn.ftp/.drush/
ls -la /var/aegir/.drush/clean_missing_modules
Comment #22
omega8cc CreditAttribution: omega8cc commentedYou 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
Comment #23
AntiNSA CreditAttribution: AntiNSA commentedGreat. 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.
Comment #24
omega8cc CreditAttribution: omega8cc commentedJust make sure you are running latest BOA-2.0.8 with
barracuda up-stable
andoctopus up-stable all
.