1

Using my own non-root account I installed Drush on my Ubuntu 14.04 server using the following:

sudo apt-get install drush

My problem is whether I use sudo or not with the same user account, I get Could not download project status information from http://updates.drupal.org/release-history/drupal/7.x as the following shows:

axel@ITS-DEV-SVR:/var/www$ drush dl drupal-7.34
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/drupal/7.x
axel@ITS-DEV-SVR:/var/www$ sudo drush dl drupal-7.34
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/drupal/7.x
axel@ITS-DEV-SVR:/var/www$ 

Are there settings, permissions Can anyone please offer some insight into how to resolve this?

UPDATE:

The server is Ubuntu 14.04.1 LTS.

Below is the output of executing a drush download in verbose mode.

drush -v dl drupal-7.34
Loading version_control engine.                                         [notice]
Loading package_handler engine.                                         [notice]
Executing: wget --version
Loading release_info engine.                                            [notice]
Downloading release history from                                        [notice]
http://updates.drupal.org/release-history/drupal/7.x
Executing: wget --version
Executing: wget -q --timeout=30 -O /tmp/download_filectSEpS http://updates.drupal.org/release-history/drupal/7.x
Undefined variable: xml updatexml.inc:404                               [notice]
Could not download project status information from                   [error]
http://updates.drupal.org/release-history/drupal/7.x
Command dispatch complete                                               [notice]

UPDATE#2

It's worth adding that the website is configured as a multisite even though it's running a single website

sisko
  • 341
  • 2
  • 4
  • 12
  • Can you try the verbose version of drush `drush -v dl drupal-7.34` and paste the output. It has worked for me. – Ketan Maheshwari Feb 17 '15 at 15:59
  • @Ketan: I added feedback to my question – sisko Feb 17 '15 at 16:36
  • It looks like a php version issue: https://www.drupal.org/node/1402120 – Ketan Maheshwari Feb 17 '15 at 17:27
  • @sisko : what's the current status of this question? Do you ever find out what the problem/solution was? – Pierre.Vriens May 10 '15 at 13:08
  • @Pierre.Vriens: Its the same. I believe it's due to settings.php not being in the usual place because the site is a multisite configuration – sisko May 10 '15 at 16:50
  • Aha, "multi-site", that's important info you did not include in your question (consider editing the question to include that info). Also note that I just "answered" your question (99% sure your issue is because of the multi-site setup, so you need to "tell" Drush to which (sub) site you want the Drush cmd(s) to be applied. Sometimes I run into the same (hard to understand) error msg (in a multi site), which is why I'm pretty sure ... – Pierre.Vriens May 10 '15 at 17:01

1 Answers1

0

If it is a multi-site installation, then Drush needs to know to which "site" (one of the multi-sites supported by the Drupal instance) the Drush command is to be applied.

Therefor make sure to FIRST navigate to the subfolder "sites". Try to run the same Drush command(s). I believe it will then assume you want the sites/all subfolder to be updated. If you still have the same issue, then try to navigate to the sites subfolder "default" (or any other subfolder corresponding to any of the other sites related to this multi-sites setup, and try again.

Pierre.Vriens
  • 1,088
  • 21
  • 13
  • 16