When I run drush pm update, it just hangs and does nothing. No error output, no update status, nada. I have to hit ctrl-c to cancel it. I have tried using the -v option, as well as different --handler and --uri options, all with the same result.

drush help works, drush pm refresh works, as do the watchdog show and cache clear commands.

Interestingly, if I run drush cache clear, then run drush pm update, I get:

ajax: ~ $ drush cache clear
Cache cleared.
ajax: ~ $ drush pm update
Update information last refreshed: Tue, 11/04/2008 - 21:07

Update status information on all installed and enabled Drupal modules:
Name Installed version Recommended version Status
---- ----------------- ------------------- ------

drush: No updates available.

Version details: Drupal 5.12, PHP 5.2.6, MySQL Server 5.0.67-log, MySQL Client 5.0.32

Comments

futuresoon’s picture

I'm getting this too. I'll let you know if I can find anything

[p.s. oh yeah i'm remote on dreamhost if that makes a difference]

hydrian’s picture

I am also having the same problem. I am using Drush 1.4 on Drupal 5.15 and I get the same results when I a try to update. I am able to install new modules without a problem. I have tried using drush with PHP4 and PHP5. It doesn't seem to make a difference. One interesting tid-bit is that I am also a dreamhost customer also. This may be an issue with DH.

hydrian’s picture

Ok.. I think found out a work-around/fix for this issue. I got 'drush pm update' working properly but I had to use full paths.

(This is dreamhost specific)
${DRUPALCORE} = location of drupal installation

cd ${DRUPALCORE}
/usr/local/php5/bin/php ${DRUPALCORE}/sites/all/modules/drush/drush.php cache clear
/usr/local/php5/bin/php ${DRUPALCORE}/sites/all/modules/drush/drush.php pm refresh
/usr/local/php5/bin/php ${DRUPALCORE}/sites/all/modules/drush/drush.php pm update
hydrian’s picture

I think it may be due to that Dreamhost's default version of PHP that is in the path is PHP4. You need to explicitly make sure you are using PHP5.

futuresoon’s picture

ahh, indeed. nice catch :-)

[edit: $ which php yields usr/local/bin/php (i.e. php 4) and using the long version (usr/local/php5/bin/php) fixes it for me]

futuresoon’s picture

Status: Active » Closed (fixed)