I get an error message when I try to execute the dl command. Here's how I'm entering the command:

/pathto/drush/drush.php dl cck

Here's the error message I'm getting:

Could not download project status information from http://updates.drupal.org/release-history/cck/6.x
An error occurred at function : drush_pm_dl

The Drush help command is working, and entering http://updates.drupal.org/release-history/cck/6.x in my web browser retrieves XML.

I've tried this with both the 6.x-2.0-alpha2 release of Drush and with HEAD. I get the same error message either way.

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

try to add --verbose=2 and see if any interesting messages come up.

sheldon rampton’s picture

Here's what I got when I added --verbose=2 to dl zen:

Found command: dl [0.021 sec]                                                                                                   [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.0462 sec] [bootstrap]
Initialized Drupal 6.11 root directory at /pathto/drupal6 [0.0582 sec] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.0589 sec] [bootstrap]
Initialized Drupal site default at sites/default [0.1151 sec] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.1155 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.1251 sec] [bootstrap]
Successfully connected to the Drupal database. [0.1253 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.134 sec] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [1.8186 sec] [bootstrap]
Including non-version specific file : /pathto/drush/commands/pm/package_handler/wget.inc [1.8219 sec] [notice]
Including non-version specific file : /pathto/drush/commands/pm/version_control/svn.inc [1.823 sec] [notice]
Could not download project status information from http://updates.drupal.org/release-history/zen/6.x [1.8263 sec] [error]
An error occurred at function : drush_pm_dl [1.8264 sec] [error]
Command dispatch complete [1.8265 sec] [notice]
wesnick’s picture

I am getting a similar error with drush in a hosted environment (1&1.com). The only difference I can see between this server and others I use where it works is that the database is not on the same machine as the webserver and it has a dual php4 and php5 installation, so I am using php5 command from the command line and at htaccess php5 handler for web pages

drush status, updatecode, help works. I have tried using 2.0-rc1 and HEAD versions, same result. Are there php extension requirements that might be missing?

X-Powered-By: PHP/5.2.9
Content-type: text/html

Found command: dl [0.019 sec]                                        [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.02 sec]    [bootstrap]
Initialized Drupal 6.12 root directory at                               [notice]
/computer/homepages/99/99999999/htdocs/mv/new [0.032 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.032 sec]   [bootstrap]
Initialized Drupal site default at sites/default [0.032 sec]            [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()      [bootstrap]
[0.032 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.04 sec][bootstrap]
Successfully connected to the Drupal database. [0.04 sec]            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.048 sec]   [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.185 sec]  [bootstrap]
Including non-version specific file :                                   [notice]
/homepages/99/999999999/htdocs/drush/commands/pm/package_handler/wget.inc
[0.187 sec]
Including non-version specific file :                                   [notice]
/homepages/99/999999999/htdocs/drush/commands/pm/version_control/svn.inc
[0.187 sec]
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/zen/6.x [0.188 sec]
An error occurred at function : drush_pm_dl [0.189 sec]              [error]
Command dispatch complete [0.189 sec]                                   [notice]
moshe weitzman’s picture

Status: Postponed (maintainer needs more info) » Active

Hmmm. Maybe Grugnog2 can chime in here.

lolmaus’s picture

Got the same issue:

[root@lsd dev2]# drush -l dev2.alfamb.ru dl ldap_integration --svnsync --svncommit
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/ldap_integration/6.x
An error occurred at function : drush_pm_dl                          [error]
[root@lsd dev2]# drush -l dev2.alfamb.ru dl ldap_integration --svnsync --svncommit --verbose=2
Initialized Drupal 6.12 root directory at /srv/http-vhosts/dev2         [notice]
Initialized Drupal site  at sites/dev2.alfamb.ru                        [notice]
Including non-version specific file :                                   [notice]
/usr/share/drush/commands/pm/package_handler/wget.inc
Including non-version specific file :                                   [notice]
/usr/share/drush/commands/pm/version_control/svn.inc
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/ldap_integration/6.x
An error occurred at function : drush_pm_dl                          [error]
Command dispatch complete                                               [notice]

Using latest dev version of drush.

lolmaus’s picture

Version: 6.x-1.x-dev »

Tried it both with the head and 2.0-rc-1 versions of drush, same error.

moshe weitzman’s picture

Priority: Normal » Critical

In HEAD, line 734 of commands/pm/pm.drush.inc reads if ($xml = @simplexml_load_file($url)) {. Could you remove that leading @ and then report what error message you see? The line number might be slightly different if you are using 2.0rc1.

gdl’s picture

I seem to be having the same issue, with drush -HEAD. This is on a shared host, with the drush sql and drush updatedb commands known to work.

$ drush --verbose=2 dl update_status --destination=/sites/all/modules/drupal-contrib/
Initialized Drupal 5.18 root directory at                               [notice]
/public_html/dev
Initialized Drupal site default at sites/default                        [notice]
Including non-version specific file :                                   [notice]
drush/drush-HEAD/commands/pm/package_handler/wget.inc
Including non-version specific file :                                   [notice]
drush/drush-HEAD/commands/pm/version_control/svn.inc
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/update_status/5.x
An error occurred at function : drush_pm_dl                          [error]
Command dispatch complete                                               [notice]

Making the change to line 734 of commands/pm/pm.drush.inc as per #7, seems to give the same result:

$ drush --verbose=2 dl update_status --destination=/sites/all/modules/drupal-contrib/
Initialized Drupal 5.18 root directory at                               [notice]
public_html/dev
Initialized Drupal site default at sites/default                        [notice]
Including non-version specific file :                                   [notice]
drush/drush-HEAD/commands/pm/package_handler/wget.inc
Including non-version specific file :                                   [notice]
drush/drush-HEAD/commands/pm/version_control/svn.inc
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/update_status/5.x
An error occurred at function : drush_pm_dl                          [error]
Command dispatch complete                                               [notice]
moshe weitzman’s picture

Status: Active » Fixed

I just committed some code to HEAD for sites whose php is crippled with allow_url_fopen = Off. Please retry and reopen this is needed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

leehunter’s picture

This was just a permissions issue for me. Once I made drush available system wide (as per the instructions in step 4 here: http://groups.drupal.org/node/23487) and ran drush with sudo everything worked fine and modules downloaded ok.