I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?)

I'm unable to dl modules to the server. When I add --verbose to the command, I see the following.

Executing: wget --version
Executing: wget -q --timeout=30 -O /tmp/download_filewJ0fgn     http://updates.drupal.org/release-history/devel/7.x
Undefined variable: xml updatexml.inc:468                                                                                                                    [notice]
Could not download project status information from http://updates.drupal.org/release-history/devel/7.x                                                [error]
Could not download requested project(s).                                                                                                              [error]
Command dispatch complete 

I chmod 777 the tmp folder. I'm not sure where to go to resolve the error.



Maybe you should check if your problem is related to either of these:

Also, it's not clear from the question if you can run any of the other (typical) drush commands, such as drush cc, drush version, drush en ... (to enable a module), etc. Consider updating your question about any of those other Drush commands.

  • I did look at both of those. The second question is closer to my issue, but we are using different verions. The feedback from the issue 3 years ago was that it was not a PHP version issue. Any additional thoughts would be great. – Baybook May 2 '15 at 12:14

As Drush states, it can't download the file. Based on the undefined var warning, Drush's drush_download_file() is returning false. It doesn't seem like its a permission problem based on your statement, but you should test file writing capabilities by running this on your console:

wget -q --timeout=30 -O /tmp/download_filewJ0fgn http://updates.drupal.org/release-history/devel/7.x

That should tell you if there's some other a problem writing the tmp dir (e.g. maxed out space) or that there's something else going wrong during drush_download_file().

  • Thank you. I was looking at xmlinfo. I'll take a step back and start with the wget statement – Baybook May 3 '15 at 20:32

I have the same problem. So far I was able to track it down to wget. If i try to download a package through a browser I can download it, but if I use wget sometimes I just got a 404 Not Found response.

wget http://ftp.drupal.org/files/projects/webform-7.x-4.8.tar.gz--2015-05-12 09:42:59
--  http://ftp.drupal.org/files/projects/webform-7.x-4.8.tar.gz
Resolving ftp.drupal.org (ftp.drupal.org)...
Connecting to ftp.drupal.org (ftp.drupal.org)||:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-05-12 09:42:59 ERROR 404: Not Found.

Edit: solved. I found a line in /etc/hosts where ftp.drupal.org was pointing to an ip with an out of date repository.

  • Could you please rewrite it? I see you found an answer but it does not look like one now. – Mołot May 12 '15 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.