Hi all

Great module drush :-)

Now on GoDaddy :-)

but :-( i can't update modules because:

The external command could not be executed due to an         [error]    
application error.                                                      
The command could not be executed successfully (returned:    [error]    
Content-type: text/html                                                 
                                                                        
<br />                                                                  
<b>Parse error</b>:  syntax error, unexpected '{' in                    
<b>/drush/includes/environment.inc</b>          
on line <b>500</b><br />                                                
, code: <em class="placeholder">255</em>)                               
Update information last refreshed: Wed, 01/11/2012 - 18:02

Update status information on all installed and enabled Drupal projects:
 Name  Insta  Propo  Status                                             
       lled   sed                                                       
       versi  versi                                                     
       on     on                                                        
 Drup  7.10   7.10   Up to date                                         
 al                                                                     
 Cont  7.x-3  7.x-3  Up to date                                         
 ext   .0-be  .0-be                                                     
 (con  ta2    ta2                                                       
 text                                                                   
 )                                                                      
 Chao  7.x-1  7.x-1  Up to date                                         
 s     .0-rc  .0-rc                                                     
 tool  1      1                                                         
 s                                                                      
 (cto                                                                   
 ols)                                                                   
 View  7.x-3  7.x-3  Up to date                                         
 s     .0     .0                                                        
 (vie                                                                   
 ws)                                                                    



Could not download project status information from d/d/d     [error]
Invalid argument supplied for foreach() drush.inc:199        [warning]
No code updates available.       

Best regards
ArchGalileu

CommentFileSizeAuthor
#13 drupal-drush-debug.txt16.57 KBbrianbeam

Comments

fr34ck’s picture

I have the same issue.
I'm on site5

vuzzbox’s picture

Same issue.

Command: drush pm-update date

Messages:


Could not download project status information from d/d/d [error]
Invalid argument supplied for foreach() drush.inc:199 [warning]
Security updates will be made to the following projects: Date [date-6.x-2.8]

Note: A backup of your project will be stored to backups directory if it is not managed by a supported version control system.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue with the update process? (y/n): y
Project date was updated successfully. Installed version is now 6.x-2.8.
Backups were saved into the directory [ok]
/usr/svm/drush-backups/empa01-011_staging/20120113023359/modules/date.
Backups were restored successfully. [ok]

mojzis’s picture

when i run it with -d i get several screens of this :

Undefined index:  update.fetch.inc:256 [30.81 sec, 65.82 MB]                                                                                                                     [notice]

then the list of modules and :

Downloading release history from d/d/d [31.38 sec, 67.31 MB]                                                                                                                     [notice]
Executing: which wget
  /usr/bin/wget
Executing: wget -q --timeout=30 -O /tmp/download_fileZpCFhh d/d/d
Undefined variable: xml updatexml.inc:388 [31.42 sec, 67.31 MB]                                                                                                                  [notice]
Could not download project status information from d/d/d [31.42 sec, 67.31 MB]                                                       [error]
Undefined index: drush drush.inc:199 [31.42 sec, 67.31 MB]                                                                                        [notice]
Invalid argument supplied for foreach() drush.inc:199 [31.42 sec, 67.31 MB]                                                              [warning]
drush self-update check: drush 5.0-dev is up-to-date. [31.42 sec, 67.31 MB]                                                              [notice]
Security and code updates will be made to the following projects: Date [date-6.x-2.8], Google Analytics [google_analytics-6.x-3.3]

then it goes :

Project date was updated successfully. Installed version is now 6.x-2.8.
Backups were saved into the directory /root/drush-backups/gsa/20120116220554/modules/date. [310.39 sec, 67.39 MB] [ok]

Project google_analytics was updated successfully. Installed version is now 6.x-3.3.
Backups were saved into the directory /root/drush-backups/gsa/20120116220554/modules/google_analytics. [310.94 sec, 67.39 MB][ok]
Rolling back update of Google Analytics code ... [310.95 sec, 60.05 MB]                                                                 [notice]

Backups were restored successfully. [311.01 sec, 60.06 MB]                                                                                  [ok]
Rolling back update of Date code ... [311.01 sec, 60.06 MB]                                                                                   [notice]

Backups were restored successfully. [311.08 sec, 60.07 MB]                                                                                    [ok]
Changes made in drush_pm_updatecode have been rolled back. [311.08 sec, 60.07 MB]                                        [rollback]

runinng on CentOS with php 5.3

capellic’s picture

I am having the same issue.

edulterado’s picture

Same issue here, I´m experimenting it with Godaddy as well, btw (Drupal 6.x, All-versions-5.x-dev).

Before showing the list of available updates, I got this error message with one warning:

Downloading release history from d/d/d                                                                                                                                       [notice]
Executing: which wget
Executing: curl -s -L --connect-timeout 30 -o /private/tmp/download_fileQ0wFm1 d/d/d
Undefined variable: xml updatexml.inc:388                                                                                                                                    [notice]
Could not download project status information from d/d/d                                                                                                                  [error]
Undefined index: drush drush.inc:199                                                                                                                                         [notice]
Invalid argument supplied for foreach() drush.inc:199                                                                                                                     [warning]
drush self-update check: drush 5.0-dev is up-to-date.                                                       

Then, it seems that the update process begins as it normally does, but no module is updated at the end. drush dl <module> works as expected.

grossmann’s picture

Same here. If I try drush self-update I get this:
Could not download project status information from d/d/d
On a drush up -projectname- this:

Could not download project status information from d/d/d                                 [error]
Invalid argument supplied for foreach() drush.inc:199                                    [warning]

Onward it says that the module is updated but it isn't.
Back to 4.5 (I began to like the autocomplete feature :-( ).
grossmann-mcs

mojzis’s picture

Title: can't update modules but can dl and en, etc... » drush up and self-update dont work
Priority: Normal » Major

the same happens with self-update. imho this deserves some attention, so i have raised the priority. newest version from git doesnt do it (on a different machine though).

drush self-update -d
Bootstrap to phase 0. [0.01 sec, 3.19 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 3.39 MB] [bootstrap]
Cache HIT cid: 5.0-dev-commandfiles-0-5b9d1a15fa386ed1f599cd55d55d2fe3 [0.04 sec, 3.4 MB]      [debug]
Bootstrap to phase 0. [0.09 sec, 7.31 MB]  [bootstrap]
Bootstrap to phase 0. [0.1 sec, 7.31 MB] [bootstrap]
Found command: self-update (commandfile=core) [0.1 sec, 7.31 MB]  [bootstrap]
Downloading release history from d/d/d [0.12 sec, 7.5 MB]  [notice]
Executing: which wget
  /usr/bin/wget
Executing: wget -q --timeout=30 -O /tmp/download_fileQlpM8z d/d/d
Undefined variable: xml updatexml.inc:388 [0.27 sec, 7.5 MB]  [notice]
Could not download project status information from d/d/d [0.27 sec, 7.5 MB]   [error]
Undefined index: drush drush.inc:199 [0.27 sec, 7.5 MB]   [notice]
Invalid argument supplied for foreach() drush.inc:199 [0.27 sec, 7.51 MB]   [warning]
drush self-update check: drush 5.0-dev is up-to-date. [0.27 sec, 7.51 MB]  [notice]
Command dispatch complete [0.27 sec, 7.48 MB]  [notice]
Peak memory usage was 8.5 MB [0.27 sec, 7.47 MB]  [memory]

i suppose that $request['status url'] comes prefiled with some nonsense to the function release_info_fetch() function

this is drush installed with pear and then self-updated to dev-5 (because of problems with php 5.3)

Larry Jones’s picture

Based on my godaddy shared host experience, this is a php version issue. I fixed it by creating this .bashrc file in root (same directory that contains html directory):

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions
export COLUMNS
alias drush='/usr/local/php5/bin/php ~/.drush/drush.php --php=/usr/local/php5/bin/php'
alias php='/usr/local/php5/bin/php'

Edit this to match your environment. For example, I installed drush in ~/.drush, which may not match your choice.

This cleaned up all the odd problems using drush version 4.5 on godaddy for me.

greg.1.anderson’s picture

Title: drush up and self-update dont work » can't update modules but can dl and en, etc...
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Drush self-update should have been completely removed from Drush-5, but I see that "drush help self-update" is still producing output. Hmmm.

In any event, please try using pm-update with other Drupal modules. If you are having trouble with godaddy, check to see if you are using php-cgi instead of php-cli. pm-updatecode is working well in master for most people, and the unit tests are passing. It is entirely possible that there are configuration-specific bugs in pm-updatecode, but we will need more information to reproduce if they are going to be found and fixed.

brianbeam’s picture

I am having the same problem with Drush 5x. Unable to update modules. Appears that the modules are backed up, new ones downloaded, but the old ones are then restored from backup.

The PHP version is on the affected server is:
PHP 5.3.2-1ubuntu4.11 with Suhosin-Patch (cli) (built: Dec 13 2011 18:45:32)

As a test, Drush 5 updates work properly on a similarly configured server. But the PHP version is slightly older:
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch (cli) (built: May 3 2011 00:43:34)

greg.1.anderson’s picture

I am using PHP 5.3.6-13ubuntu3.2 with Suhosin-Patch (cli) (built: Oct 13 2011 23:19:13) , so the PHP version is probably not a contributing factor. Anything that you could do to isolate the difference between the working and non-working installations would be very helpful.

One question that comes to mind is whether it is the modules that need to be updated that make the difference. Perhaps you could post the working and non-working module + version list, if that is in fact the factor that causes the failure. Also, if the old modules are being restored from backup, that indicates that drush_set_error is being called. If you run with --debug, you should get more information about what is causing the rollback.

mojzis’s picture

in my case (#3 above) the modules to update were date and google_analytics
drupal 6 - could that be the difference ? and the debug option yielded several interesting things :

  1. Undefined index: update.fetch.inc:256 (many times, appeared before the list of modules )
  2. Downloading release history from d/d/d (see my note on the function in #7). And I guess thats where the problem begun ...

in my case it is not Go Daddy, but MT with CentOS, setup (screwed) with Plesk (i.e. - php.ini is shared for cli and apache - is this usual on CentOS ? or is it a Plesk specialty ?). APC was setup to work with cli, otherwise drush was extremely slow.

brianbeam’s picture

StatusFileSize
new16.57 KB

In my case (#10) the modules affected are date and webform.

Date (date) 6.x-2.7 6.x-2.8 SECURITY UPDATE available
Webform (webform) 6.x-2.10 6.x-3.15 SECURITY UPDATE available

I've attached the contents of the debug session.

brianbeam’s picture

Also getting an error simply doing a "drush version"

$ drush version
drush version 5.0-dev
Could not download project status information from d/d/d [error]
Invalid argument supplied for foreach() drush.inc:199 [warning]

njcheng’s picture

Unfortunately I'm having the same issue on multiple servers (ubuntu 10.04.3 LTS and Debian 5) after upgrading from a previous dev version. No matter what command I run, I get the following output:

Could not download project status information from d/d/d [error]
Invalid argument supplied for foreach() drush.inc:199

What information can I provide that would be helpful in getting this fixed? Thanks!

mry4n’s picture

I'm having the same issue as #14.

jonhattan’s picture

Status: Postponed (maintainer needs more info) » Fixed

d/d/d error fixed at #1419576: self-update broken in 5.x dev.

@greg.1.anderson: self-update remains, but only informs of new version. See #1324948-2: Vestiges of selfupdate still present

Status: Fixed » Closed (fixed)

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