I'm getting some errors with select modules, I can't tell if it's an issue with the module or drush. Drush successfully updates some modules, such as views, but is unable to update other modules such as taxonomy_csv and rules. I get the following output:

Code updates will be made to the following projects: Rules [rules-6.x-1.4]

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
Password:
Password:
Unable to checkout rules from cvs.drupal.org.                                                                                                                                     [error]
Project rules was updated successfully. Installed version is now 6.x-1.4.
You should consider committing the new code to your Subversion repository.
If this version becomes undesireable, use Subversion to roll back.
Drush was unable to get the svn status on /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/rules. Check that you have Subversion                             [error]
installed and that this directory is a subversion working copy.
The specific errors are below:
svn: '/Users/Matthew/The' is not a working copy
svn: '/Users/Matthew/The' does not exist

The issue is that it says the project is updated successfully, but then the module displays as being out of date. I included the full message because drush is seemingly unable to get the svn status of the module code. One of the parent directories does have a space, as can be seen in the error message, and the svn error seems to be because drush is not properly escaping the space in the file path.

I'll try renaming the directory to not have a space in the name and see if this resolves the CVS checkout issue.

CommentFileSizeAuthor
#5 drush-1019148.patch4.8 KBjonhattan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

safetypin’s picture

Removing the space from the file path resolved the svn status error, but did not resolve the cvs checkout error:

Code updates will be made to the following projects: Rules [rules-6.x-1.4]

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
Password:
Password:
Unable to checkout rules from cvs.drupal.org.                                                                                                                                     [error]
Project rules was updated successfully. Installed version is now 6.x-1.4.
You should consider committing the new code to your Subversion repository.
If this version becomes undesireable, use Subversion to roll back.
safetypin’s picture

Most recently, this is affecting drupal core in addition to the two modules I mentioned earlier. Drush seems to download some supporting directories and files from CVS, but doesn't update everything properly.

Now that I think about it, is this because I didn't initially check these modules out from CVS? If that's what's happening, I know what to do for the modules, I think I just remove the module code from svn and download the module with drush again. But, how do I do that for drupal core? Do I remove all directories, make a backup copy of the sites directory and drush dl drupal? Or do I need to do a site-install?

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)

Now that I think about it, is this because I didn't initially check these modules out from CVS?

No. drush will do cvs update or cvs checkout depending on this.

paste the full output with --debug so we can examine in detail what's happening.

Also: you've fixed the space in the path but perhaps you are working under /users/matthew (lowercase) and drush is wanting the uppercase directory. This has been reported in the past by mac users.

safetypin’s picture

Status: Postponed (maintainer needs more info) » Active

Here's the full debugging output:

[../The Institute/tuci.d6]> drush up taxonomy_csv --debug
Bootstrap to phase 0. [0.02 sec, 1.49 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 1.62 MB] [bootstrap]
Loading drushrc "/Users/Matthew/.drush/drushrc.php" into "home.drush" scope. [0.02 sec, 1.62 MB]                                                                                  [bootstrap]
Assigning the return value of new by reference is deprecated civicrm.drush.inc:385 [0.04 sec, 2.89 MB]                                                                               [notice]
Assigning the return value of new by reference is deprecated civicrm.drush.inc:618 [0.04 sec, 2.93 MB]                                                                               [notice]
Bootstrap to phase 6. [0.04 sec, 3.41 MB]                                                                                                                                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.04 sec, 3.41 MB]                                                                                                        [bootstrap]
Initialized Drupal 6.19 root directory at /Users/Matthew/The Institute/tuci.d6 [0.06 sec, 3.91 MB]                                                                                   [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.06 sec, 3.92 MB]                                                                                                        [bootstrap]
Initialized Drupal site default at sites/default [0.06 sec, 3.92 MB]                                                                                                                 [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.07 sec, 3.92 MB]                                                                                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.07 sec, 3.94 MB]                                                                                                    [bootstrap]
Successfully connected to the Drupal database. [0.07 sec, 3.94 MB]                                                                                                                [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.08 sec, 4.16 MB]                                                                                                        [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.31 sec, 18.25 MB]                                                                                                      [bootstrap]
Successfully logged into Drupal as Anonymous (uid=0) [0.31 sec, 18.25 MB]                                                                                                         [bootstrap]
Found command: pm-update (commandfile=pm) [0.31 sec, 18.25 MB]                                                                                                                    [bootstrap]
Initializing drush commandfile: user [0.31 sec, 18.25 MB]                                                                                                                         [bootstrap]
Including /Users/Matthew/drush/commands/pm/updatecode.pm.inc [0.31 sec, 18.26 MB]                                                                                                 [bootstrap]
Executing: cvs --version
WD update: Attempted to fetch information about all available new releases and updates. [22.32 sec, 22.93 MB]                                                                        [notice]
Update information last refreshed: 01/11/2011 - 15:15

Update status information on all installed and enabled Drupal projects:
 Name                                   Installed version  Proposed version  Status                                   
 Administration menu                    6.x-1.6            6.x-1.6           Up to date                               
 Admin role                             6.x-1.3            6.x-1.3           Up to date                               
 Drupal core                            6.19               6.20              Update available                         
 Anonymous Contact form                 6.x-1.1            6.x-1.1           Up to date                               
 Better Formats                         6.x-1.2            6.x-1.2           Up to date                               
 Boxes                                  6.x-1.0            6.x-1.0           Up to date                               
 Content Management Filter              6.x-2.0            6.x-2.0           Up to date                               
 Colorbox                               6.x-1.0-beta9      6.x-1.0-beta9     Up to date                               
 Content Templates (Contemplate)        6.x-1.2            6.x-1.2           Up to date                               
 Content Construction Kit (CCK)         6.x-2.9            6.x-2.9           Up to date                               
 Context                                6.x-3.0            6.x-3.0           Up to date                               
 CSS Gzip                               6.x-1.3            6.x-1.3           Up to date                               
 Chaos tool suite                       6.x-1.8            6.x-1.8           Up to date                               
 CustomError                            6.x-1.1            6.x-1.1           Up to date                               
 CVS deploy                             6.x-1.1            6.x-1.1           Up to date                               
 Read More Link (Drupal 6 and earlier)  6.x-5.0-rc7        6.x-5.0-rc7       Up to date                               
 Elysia Cron                            6.x-1.2            6.x-1.2           Up to date                               
 Features extra                         6.x-1.x-dev        6.x-1.x-dev       Up to date                               
 Features                               6.x-1.0            6.x-1.0           Up to date                               
 FileField                              6.x-3.9            6.x-3.9           Up to date                               
 Google Analytics                       6.x-3.0            6.x-3.0           Up to date                               
 Image Resize Filter                    6.x-1.11           6.x-1.11          Up to date                               
 ImageAPI                               6.x-1.9            6.x-1.9           Up to date                               
 ImageCache                             6.x-2.0-beta10     6.x-2.0-beta10    Up to date                               
 ImageField                             6.x-3.9            6.x-3.9           Up to date                               
 Imagefield Crop                        6.x-1.0-rc2        6.x-1.0-rc2       Up to date                               
 Insert                                 6.x-1.0-beta6      6.x-1.0-beta6     Up to date                               
 jQuery UI                              6.x-1.4            6.x-1.4           Up to date                               
 jQuery Update                          6.x-2.0-alpha1     6.x-2.0-alpha1    Up to date                               
 Link                                   6.x-2.9            6.x-2.9           Up to date                               
 LoginToboggan                          6.x-1.8            6.x-1.8           Up to date                               
 Masquerade                             6.x-1.5            6.x-1.5           Up to date                               
 Messaging                              6.x-2.3            6.x-2.3           Up to date                               
 Mollom                                 6.x-1.15           6.x-1.15          Up to date                               
 Node export                            6.x-2.23           6.x-2.24          Update available                         
 Notifications                          6.x-2.3            6.x-2.3           Up to date                               
 Pathauto                               6.x-1.5            6.x-1.5           Up to date                               
 Rules                                  6.x-1.3            6.x-1.4           Update available                         
 Scheduler                              6.x-1.8            6.x-1.8           Up to date                               
 Skinr                                  6.x-1.6            6.x-1.6           Up to date                               
 Tagadelic                              6.x-1.2            6.x-1.2           Up to date                               
 Taxonomy CSV import/export             6.x-5.4            6.x-5.6           Update available                         
 Taxonomy hide                          6.x-1.02           6.x-1.02          Up to date                               
 Taxonomy Manager                       6.x-2.2            6.x-2.2           Up to date                               
 ThemeKey                               6.x-3.1            6.x-3.1           Up to date                               
 Token                                  6.x-1.15           6.x-1.15          Up to date                               
 Twitter                                6.x-3.0-beta3      6.x-3.0-beta3     Up to date                               
 Views                                  6.x-2.12           6.x-2.12          Up to date                               
 Views Slideshow                        6.x-2.3            6.x-2.3           Up to date                               
 Webform                                6.x-3.5            6.x-3.5           Up to date                               
 Wysiwyg                                6.x-2.x-dev        6.x-2.x-dev       Up to date                               
 NineSixty (960 Grid System)            6.x-1.0            6.x-1.0           Up to date                               
 Fusion                                 6.x-1.0-rc1        6.x-1.0           Update available                         


Downloading release history from http://updates.drupal.org/release-history/drush/6.x [23.07 sec, 22.6 MB]                                                                            [notice]
drush self-update check: drush 4.0 is up-to-date. [24.11 sec, 22.69 MB]                                                                                                              [notice]
Code updates will be made to the following projects: Taxonomy CSV import/export [taxonomy_csv-6.x-5.6]

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
Starting to update Taxonomy CSV import/export code at sites/all/modules/contrib-stable/taxonomy_csv... [29.03 sec, 22.65 MB]                                                         [notice]
Verifying signature for svn version control engine. [29.03 sec, 22.66 MB]                                                                                                             [debug]
Executing: svn info '/Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv'
  Path: /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv
  URL: svn+ssh://Matthew@avmini.local/Library/Subversion/Repository/repo/web/tuci.d6/trunk/sites/all/modules/contrib-stable/taxonomy_csv
  Repository Root: svn+ssh://Matthew@avmini.local/Library/Subversion/Repository/repo
  Repository UUID: fe83d61a-bed0-4f23-84b3-cd10c044e443
  Revision: 201
  Node Kind: directory
  Schedule: normal
  Last Changed Author: Matthew
  Last Changed Rev: 51
  Last Changed Date: 2010-11-19 17:07:34 -0600 (Fri, 19 Nov 2010)
  
Calling chdir(/Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv)
Executing: svn status  
Calling chdir(/Users/Matthew/The Institute/tuci.d6)
Calling chdir(/Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv)
Executing: svn status -u  
Password:
Password:
  Status against revision:    218
Calling chdir(/Users/Matthew/The Institute/tuci.d6)
Updating project taxonomy_csv ... [36.85 sec, 22.68 MB]                                                                                                                              [notice]
Calling chdir(/Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable)
Executing: cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib update -r DRUPAL-6--5-6 -dP taxonomy_csv
  ? taxonomy_csv/.svn
  ? taxonomy_csv/CHANGELOG.txt
  ? taxonomy_csv/INSTALL.txt
  ? taxonomy_csv/LICENSE.txt
  ? taxonomy_csv/README.txt
  ? taxonomy_csv/TECHINFO.txt
  ? taxonomy_csv/TODO.txt
  ? taxonomy_csv/export
  ? taxonomy_csv/formats
  ? taxonomy_csv/import
  ? taxonomy_csv/taxonomy_csv.api.inc
  ? taxonomy_csv/taxonomy_csv.css
  ? taxonomy_csv/taxonomy_csv.help.html
  ? taxonomy_csv/taxonomy_csv.info
  ? taxonomy_csv/taxonomy_csv.install
  ? taxonomy_csv/taxonomy_csv.js
  ? taxonomy_csv/taxonomy_csv.module
  ? taxonomy_csv/taxonomy_csv.result.inc
  ? taxonomy_csv/taxonomy_csv.term.api.inc
  ? taxonomy_csv/taxonomy_csv.vocabulary.api.inc
  ? taxonomy_csv/translations
  cvs update: Updating taxonomy_csv
  cvs update: move away `taxonomy_csv/CHANGELOG.txt'; it is in the way
  C taxonomy_csv/CHANGELOG.txt
  cvs update: move away `taxonomy_csv/INSTALL.txt'; it is in the way
  C taxonomy_csv/INSTALL.txt
  cvs update: move away `taxonomy_csv/README.txt'; it is in the way
  C taxonomy_csv/README.txt
  cvs update: move away `taxonomy_csv/TECHINFO.txt'; it is in the way
  C taxonomy_csv/TECHINFO.txt
  cvs update: move away `taxonomy_csv/TODO.txt'; it is in the way
  C taxonomy_csv/TODO.txt
  cvs update: move away `taxonomy_csv/taxonomy_csv.api.inc'; it is in the way
  C taxonomy_csv/taxonomy_csv.api.inc
  cvs update: move away `taxonomy_csv/taxonomy_csv.css'; it is in the way
  C taxonomy_csv/taxonomy_csv.css
  cvs update: move away `taxonomy_csv/taxonomy_csv.help.html'; it is in the way
  C taxonomy_csv/taxonomy_csv.help.html
  cvs update: move away `taxonomy_csv/taxonomy_csv.info'; it is in the way
  C taxonomy_csv/taxonomy_csv.info
  cvs update: move away `taxonomy_csv/taxonomy_csv.install'; it is in the way
  C taxonomy_csv/taxonomy_csv.install
  cvs update: move away `taxonomy_csv/taxonomy_csv.js'; it is in the way
  C taxonomy_csv/taxonomy_csv.js
  cvs update: move away `taxonomy_csv/taxonomy_csv.module'; it is in the way
  C taxonomy_csv/taxonomy_csv.module
  cvs update: move away `taxonomy_csv/taxonomy_csv.result.inc'; it is in the way
  C taxonomy_csv/taxonomy_csv.result.inc
  cvs update: move away `taxonomy_csv/taxonomy_csv.term.api.inc'; it is in the way
  C taxonomy_csv/taxonomy_csv.term.api.inc
  cvs update: move away `taxonomy_csv/taxonomy_csv.vocabulary.api.inc'; it is in the way
  C taxonomy_csv/taxonomy_csv.vocabulary.api.inc
  cvs update: Updating taxonomy_csv/export
  cvs update: move away `taxonomy_csv/export/taxonomy_csv.export.admin.inc'; it is in the way
  C taxonomy_csv/export/taxonomy_csv.export.admin.inc
  cvs update: move away `taxonomy_csv/export/taxonomy_csv.export.api.inc'; it is in the way
  C taxonomy_csv/export/taxonomy_csv.export.api.inc
  cvs update: move away `taxonomy_csv/export/taxonomy_csv.export.result.inc'; it is in the way
  C taxonomy_csv/export/taxonomy_csv.export.result.inc
  cvs update: Updating taxonomy_csv/formats
  cvs update: move away `taxonomy_csv/formats/geotaxonomy.format.inc'; it is in the way
  C taxonomy_csv/formats/geotaxonomy.format.inc
  cvs update: move away `taxonomy_csv/formats/taxonomy_manager.format.inc'; it is in the way
  C taxonomy_csv/formats/taxonomy_manager.format.inc
  cvs update: Updating taxonomy_csv/import
  cvs update: move away `taxonomy_csv/import/taxonomy_csv.import.admin.inc'; it is in the way
  C taxonomy_csv/import/taxonomy_csv.import.admin.inc
  cvs update: move away `taxonomy_csv/import/taxonomy_csv.import.api.inc'; it is in the way
  C taxonomy_csv/import/taxonomy_csv.import.api.inc
  cvs update: move away `taxonomy_csv/import/taxonomy_csv.import.line.api.inc'; it is in the way
  C taxonomy_csv/import/taxonomy_csv.import.line.api.inc
  cvs update: move away `taxonomy_csv/import/taxonomy_csv.import.parser.api.inc'; it is in the way
  C taxonomy_csv/import/taxonomy_csv.import.parser.api.inc
  cvs update: move away `taxonomy_csv/import/taxonomy_csv.import.result.inc'; it is in the way
  C taxonomy_csv/import/taxonomy_csv.import.result.inc
  cvs update: Updating taxonomy_csv/po
  cvs update: Updating taxonomy_csv/translations
  cvs update: move away `taxonomy_csv/translations/taxonomy_csv.fr.po'; it is in the way
  C taxonomy_csv/translations/taxonomy_csv.fr.po
  cvs update: move away `taxonomy_csv/translations/taxonomy_csv.help.fr.html'; it is in the way
  C taxonomy_csv/translations/taxonomy_csv.help.fr.html
  cvs update: move away `taxonomy_csv/translations/taxonomy_csv.pot'; it is in the way
  C taxonomy_csv/translations/taxonomy_csv.pot
Calling chdir(/Users/Matthew/The Institute/tuci.d6)
Unable to checkout taxonomy_csv from cvs.drupal.org. [38 sec, 22.74 MB]                                                                                                           [error]
Updating of taxonomy_csv was successful. [38 sec, 22.74 MB]                                                                                                                          [notice]
Project taxonomy_csv was updated successfully. Installed version is now 6.x-5.6.
Executing: svn status  /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv
  svn: warning: '/Users/Matthew/The' is not a working copy
  svn: warning: 'Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv' is not a working copy
You should consider committing the new code to your Subversion repository.
If this version becomes undesireable, use Subversion to roll back.
Rolling back update of Taxonomy CSV import/export code ... [38.01 sec, 20.03 MB]                                                                                                     [notice]
Verifying signature for svn version control engine. [38.02 sec, 20.04 MB]                                                                                                             [debug]
Executing: svn info 'sites/all/modules/contrib-stable/taxonomy_csv'
  Path: sites/all/modules/contrib-stable/taxonomy_csv
  URL: svn+ssh://Matthew@avmini.local/Library/Subversion/Repository/repo/web/tuci.d6/trunk/sites/all/modules/contrib-stable/taxonomy_csv
  Repository Root: svn+ssh://Matthew@avmini.local/Library/Subversion/Repository/repo
  Repository UUID: fe83d61a-bed0-4f23-84b3-cd10c044e443
  Revision: 201
  Node Kind: directory
  Schedule: normal
  Last Changed Author: Matthew
  Last Changed Rev: 51
  Last Changed Date: 2010-11-19 17:07:34 -0600 (Fri, 19 Nov 2010)
  
Executing: svn revert  /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv
  svn: '/Users/Matthew/The' is not a working copy
  svn: '/Users/Matthew/The' does not exist
Drush was unable to get the svn status on /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv. Check that you have Subversion                      [error]
installed and that this directory is a subversion working copy.
The specific errors are below:
svn: '/Users/Matthew/The' is not a working copy
svn: '/Users/Matthew/The' does not exist [38.16 sec, 20.04 MB]
Changes made in drush_pm_updatecode have been rolled back. [38.16 sec, 20.04 MB]                                                                                                   [rollback]
Command dispatch complete [38.16 sec, 20.01 MB]                                                                                                                                      [notice]
 Timer  Cum (sec)  Count  Avg (msec) 
 page   38.089     1      38088.88   

Peak memory usage was 26.32 MB [38.16 sec, 20.01 MB]                                                                                                                                 [memory]
jonhattan’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
4.8 KB

OP and comment #1 seems to me a temporary problem in cvs services. But there's still a problem with whitespaces in the path. From #4:

Executing: svn status  /Users/Matthew/The Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv
  svn: warning: '/Users/Matthew/The' is not a working copy
  svn: warning: 'Institute/tuci.d6/sites/all/modules/contrib-stable/taxonomy_csv' is not a working copy

It was already fixed for bzr in http://drupal.org/cvs?commit=472080. Same fix for svn is attached. Also minor fixes in cvs package handler to catch bug in #1.

safetypin’s picture

I attempted to apply the patch in #5, and I've looked through the modified files and can see the changes implemented in the patch, I'm still seeing the svn status -u warning: '/Users/Matthew/The' is not a working copy. I just changed the parent directory name to remove the space, and I continue to get the error about updating the module/theme from CVS.

However, after looking through the debug output again, it seems like the problem is that I started out with a non-cvs checkout of Drupal core, the fusion base theme, and a couple of other modules. I know I started this site out before configuring drush to use CVS, so I'm sure that's what did it. Whenever I just run the cvs checkout/update command, it tells me to "move away" all the files for that module.

So, I guess this means that the functionality to overwrite code that isn't CVS isn't completing properly for me. Could this be a permissions issue? I can handle this pretty easily for contributed modules, but I'm not sure how best to handle this for drupal core.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

#5 looks ok to commit. did not review that thoroughly.

idlewilder - perhaps your best bet is to checkout a new drupal core from cvs and then copy your sites dir into it and then delete your existing web site and move the newly prepared one into it.

safetypin’s picture

My work around at the moment is to stop checking things out from CVS and use drush with wget. If drush can preserve my subversion information using wget, then I'm not sure what the advantage of checking out the data from CVS instead of downloading the files from wget.

The issue of drupal core was that I have the entire site under subversion control, so I'm not sure how to preserve file history of the core files. Switching drush's package handler to wget allowed me to successfully update drupal core and preserve the subversion information, so I'm happy with that. As long as I don't have a compelling to use CVS, I think I'll just leave it alone.

jonhattan’s picture

Status: Reviewed & tested by the community » Fixed

committed.

Status: Fixed » Closed (fixed)

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