Drush is broken (php /var/aegir/drush/drush.php help failed)

Events happening in the community are now at Drupal community events on www.drupal.org.
oneguru's picture

As of August 5 2010 it would appear any attempt to install aegir fails due to a corrupt drush install. Prior to August 5 2010 everything was working as expected. When can we expect an update on this? Thanks -

Comments

In what way is drush

Letharion's picture

In what way is drush broken?
A development release was posted today, the 5:th of august, but it's clearly marked as such and you shouldn't not rely on it for production work. If you are using the dev-version, and it's not working, then stop using it. If you're not using the dev version then I don't understand what todays date has to do with your problem?

Perhaps the development

oneguru's picture

Perhaps the development release posted today is being grabbed by the install script?

install.sh.txt;hb=provision-0.4-alpha9

This script takes the following steps:
4. downloads drush in $AEGIR_HOME
5. downloads drush_make in $AEGIR_HOME/.drush
6. downloads provision in $AEGIR_HOME/.drush
7. deploys hostmaster in $AEGIR_HOME using drush

attempt 5

oneguru's picture

OK, I've setup 5 different server instances today and attempted to install aegir. Each time it gives me an error of drush failing. How can I install drush and modify the install.sh.txt;hb=provision-0.4-alpha9 script so that it doesn't automatically install a bad version of drush. Which at this point looks like the dev. released this morning. Thanks -

Something is really broken

omega8cc's picture

And the strange part of it is - it fails on working before non-devel version - drush-6.x-3.1

==> Installing drush in /var/aegir
--2010-08-05 20:19:01--  http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz
Resolving ftp.drupal.org... 140.211.166.134
Connecting to ftp.drupal.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174203 (170K) [application/x-gzip]
Saving to: `drush-6.x-3.1.tar.gz'

     0K .......... .......... .......... .......... .......... 29% 73.2K 2s
    50K .......... .......... .......... .......... .......... 58%  290K 1s
   100K .......... .......... .......... .......... .......... 88%  292K 0s
   150K .......... ..........                                 100%  120K=1.2s

2010-08-05 20:19:02 (142 KB/s) - `drush-6.x-3.1.tar.gz' saved [174203/174203]

PHP Fatal error:  Class 'Console_Table' not found in /var/aegir/drush/includes/drush.inc on line 973
==> Drush is broken (php /var/aegir/drush/drush.php help failed)

I did a diff -urp on

omega8cc's picture

I did a diff -urp on downloaded yesterday version and downloaded today and the result is:

Only in /var/aegir/drush/includes: table.inc

File table.inc is missing and this is why it fails.

So it seems the download from PEAR fails

omega8cc's picture

[22:36] omega8cc: the file http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz is corrupted - one files is missing
[22:36] omega8cc: one file* - table.inc
[22:37] Vertice: it's not missing
[22:37] Vertice: we arent allowed to put it ib the tarball
[22:37] Vertice: due to it not being written by us
[22:37] Vertice: the first time you runb drush it tries to download it from pear
[22:37] Vertice: and puts it in place
[22:38] omega8cc: hah, so the download from pear is broken

thanks for looking into this,

oneguru's picture

thanks for looking into this, if the download from pear is broken is there a work around?

It is submitted as a critical

omega8cc's picture

It is submitted as a critical issue:

http://drupal.org/node/875192

You can use submitted patch for drush and edit the URL of drush download in your install script to your patched version until they will accept the patch:

http://drupal.org/node/875196

Grace, thanks so much! :) -

oneguru's picture

Grace, thanks so much! :) - Jerry

workaround

imadalin's picture

you can use pear to install Console_Table and copy the Console/Table.php from your shared folder of php (in debian/ubuntu and other distribution on standard install is in /usr/share/php/Console/Table.php)

steps i did:

as root (or with sudo as a normal sudo enabled user):

pear install Console_Table
cp /usr/share/php/Console/Table.php /var/aegir/drush/includes/table.inc

then it worked.

I don't know exactly but i think that Console_Tabel has Console_Getopt as dependency so is good to install it from pear and leave it there after, any manually copied file from pear to be used into a project will be able to load "Pear_Package/Necessary.php" from the php include directive if pear is installed correctly (normal on a ubuntu/debian/centos install)

hope this can be used to solve all future similar problems.

i get this error

tuxnani's picture

cp: cannot create regular file `/var/aegir/drush/includes/table.inc': No such file or directory

Resolved the error

shad_khan's picture

I was getting same error Class : Console_Tabel not defined in command prompt.
I downloaded the pear package manually http://pear.php.net/package/Console_Table/download and extract the tar file and open the Table.php and copied all the content to drush/includes/table.inc , that's it , Now no error is there. It is running fine.
-- I am running Drush in windows 7.

This is not true anymore with

kris digital's picture

This is not true anymore with the latest version 7.x.5.4... normally this should happen automatically but if it does not for some reason, as in my case:

  • Download v1.1.3 of Console_Table from pear
  • extract the contents to the lib folder of drush so you have lib/Console_Table-1.1.3/Table.php

Should work then...

What is the right directory for drush when using Aegir?

jsmm's picture

After reading your posts, I realice mine is in /usr/share/pear/drush/drush.php

I doubt if it should be, and I should move it to /var/aegir/drush/drush

Thanks for your help,

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week