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
Comment #1
moshe weitzman commentedtry to add --verbose=2 and see if any interesting messages come up.
Comment #2
sheldon rampton commentedHere's what I got when I added --verbose=2 to dl zen:
Comment #3
wesnick commentedI 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?
Comment #4
moshe weitzman commentedHmmm. Maybe Grugnog2 can chime in here.
Comment #5
lolmaus commentedGot the same issue:
Using latest dev version of drush.
Comment #6
lolmaus commentedTried it both with the head and 2.0-rc-1 versions of drush, same error.
Comment #7
moshe weitzman commentedIn 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.Comment #8
gdl commentedI 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.
Making the change to line 734 of commands/pm/pm.drush.inc as per #7, seems to give the same result:
Comment #9
moshe weitzman commentedI just committed some code to HEAD for sites whose php is crippled with allow_url_fopen = Off. Please retry and reopen this is needed.
Comment #11
leehunter commentedThis 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.