After updating drush to 4.5 prior to upgrading from Drupal 7.7. to 7.8, I ran "drush up drupal" and got the following error message, while claiming (erroneously) that the version had been upgraded to 7.8.
Destination directory /home/dgfumc/www/test/drupal-7.8 already [error]
exists.
Project drupal was updated successfully. Installed version is now 7.8.
Backups were saved into the directory [ok]
/home/dgfumc/drush-backups/dgfumc_test/20110903035651/drupal.
Backups were restored successfully. [ok]
There was no test/drupal-7.8 directory before or after running the upgrade command and Drupal core was still in 7.7.
At first, I assumed this was the same as #1196972: Drush pm-update (up) rollbacks changes if fetching updates fails, and, in fact, I had to disable a couple of modules to avoid that particular error (imce_search for example), but I get this directory error without any prior errors.
It's an issue with version 4.5, because the upgrade worked without a hitch after downgrading drush to 4.4 again.
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | handle-gziped-file-1268416-26.patch | 864 bytes | randallkent |
| #18 | handle-gziped-file-1268416-18.patch | 592 bytes | randallkent |
| #12 | drush-output.txt | 38.59 KB | EWB |
| #9 | drush output | 44.76 KB | cothrun |
| #6 | drush-1268416.txt | 70.92 KB | steinmb |
Comments
Comment #1
randallkent commentedExperiencing the same issue ... Subscribing!
Comment #2
steinmb commentedConfirming the problem. Also did a quick test with 4.x-dev, with the same result. It fails and then rolls back the last backed up release, that on this server is Drupal 7.7.
System: Centos 4.8
PHP: 5.2.6
Comment #3
moshe weitzman commentedComment #4
steinmb commentedAny ideas guys?
Comment #5
jonhattanunable to reproduce. Pls post the complete log output, and use <code> markup.
Comment #6
steinmb commentedRather long log, attaching as file. I replaced the real server path in the logfile with "/myserverpath" .
Comment #7
kruser commentedsubscribing - same issue here. it goes back and restores everything after running a drush up "
Backups were restored successfully. "
Comment #8
5n00py commentedsame issue ... Subscribing!
Comment #9
cothrun commentedI'm experiencing this as well.
PHP 5.3.6
CentOS release 4.7
Comment #10
lukaswhite commentedI'm experiencing this while trying to update an old site from 6.13 to 6.22...
Comment #11
decibel.places commentedUpgrading Drush to All-versions-5.x-dev fixed this for me
as suggested on a different thread, but I lost track of where
Comment #12
EWB commentedI am experiencing a similar issue - in this case with Drupal 6.20 to 6.22. Output attached...
Comment #13
steinmb commentedRegarding #11. Tested with the latest 5.x-dev release and it does not work as an workaround on my system.
What I do not get, drush is running 'tar -xzf drupaldrupal-7.9.tar.gz' and that is seems to work, but then it tries to list the content of the archive by running 'tar -tf' but this do not work on a zipped tar archive, it have to be 'tar -tfz'. Have not looked into the drush code yet so I do not know why it does this.
Comment #14
hoersche commentedHad same error.
Working off of #13 (steinmb), I modified my drush/includes/drush.inc file, changing line 1511 to include the 'z' option:
and things got back to working smoothly on my CentOS 4.8 machine.
Comment #15
dca123 commentedSame issue here upgrading 6.13-6.22
Comment #16
decibel.places commenteddca123:
I also upgraded an installation for D 6.14 - 6.22 so I might be able to give you some tips.
But I don't see what this has to do with Drush?
Comment #17
dca123 commented@decibel.places
I used
#>drush up drupal
to try and update only drupal and it gave me the error from the OP.
I ended up doing in manually to get it working but it would be nice to have this working so i can use it in the future.
Comment #18
randallkent commentedI can confirm the solution provided by @hoersche in #14 resolves the issue going from 7.0 -> 7.10 on a CentOS 4.9 machine running cPanel/WHM. The attached patch implements this on the 7.x-4.x branch (line 1575) but requires further testing to ensure it
It looks like this function drush_tarball_extract() was added on July 9 by Moshe Weitzman in 2f28b7f244225a1db5306405a1cf522b5cec107a who I've pinged via IRC to have a look.
Comment #19
moshe weitzman commentedNeeds review by Owen and Greg who worked on cross db compatibility for un tar.
Comment #20
greg.1.anderson commentedmaster already has the patch from #18 applied. I don't remember the history of why there was no 'z' there; seems like an error, but maybe there was some reason. No time to test it without right now, but since the 'z' exists in master, I'd guess this is safe to apply to the 4.x branch.
Comment #21
steinmb commented#18 applied to drush 4.5, though did not apply cleanly, Hunk #1 succeeded at 1508 (offset -64 lines).
Seemed to to work fine for me on CentOS release 4.9 and OS X 10.7.x.
Comment #22
jonhattanSure, it seems an error.
Comment must change in concordance.
Comment #23
biocode commentedI had this same issue upgrading from 6.20 to 6.24. hoersche's work-around was spot on. Everything went smooth after that one character change.
Comment #24
greg.1.anderson commentedClosed duplicate, #1330978: "tar -tf" doesn't work on tar.gz file with older versions of tar.
Comment #25
giorgio79 commentedThanks patch worked fine here as well...
Comment #26
randallkent commentedAttached patch contains the fix from #22 as well as corrects the comment per @jonhattan in #22
Comment #27
moshe weitzman commentedDo folks think this is correct?
Comment #28
randallkent commentedMoshe -
Seems to fix the issue and as Greg said in #20, it's present in master. Still would be nice to have more people test :)
Comment #29
moshe weitzman commentedCommitted to 4.x
Comment #30.0
(not verified) commentedCorrected reference to the prior issue.