Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Feb 2012 at 17:52 UTC
Updated:
23 Aug 2013 at 06:58 UTC
Howdy. Using Drush 4.5 I can't get any modules or Drupal itself to update. What happens is the update process seems to go fine, and then after immediately saving modules to backup it auto-restores them, for no apparent reason. I'm attaching the debug output of my drush up command.
Comments
Comment #1
bkosborneI'm getting the same problem...
Happens with all modules/core
Comment #2
JamesAn commentedThis seems to be fixed in the 5.x-dev version. In the meantime, there's a workaround suggested at #1196972-39: Drush pm-update (up) rollbacks changes if fetching updates fails to run the update with no backups:
drush upc --no-backupComment #3
lpeabody commentedStill doesn't work, I now end up with this error output:
Comment #4
steinmb commentedStill a problem that keeps popping up in various sites. One of my sites was having problem with this but turning off Check for updates of disabled modules and themes allowed me to avoid running drush with --no-backup that is a bit dangerous then it does not run updatedb.
Problem
Looks like the problem is caused by drush failing to find a release history to on the modules on your site, even if your are not planning to update that one.
Failed to get available update data for one project. [error]drush updates the module(s) and then automatically rolls it back, throwing no apparent errors and claiming the module(s) your where trying to update is now up2date. That is if you are not reading the drush output closely, where it actually tell you that it rolled back the prev. version.
Comment #5
seanrI ran into this due to the metatags -> metatag renaming. Renaming projects should really be strongly discouraged due to issues like this.
Comment #6
andrewmacpherson commentedFurther information related to #4...
I have a dev site where Check for updates of disabled modules and themes was already turned off, but I still experienced the auto-restore behaviour.
It also occurs when the site has Features modules, which are not using a Features server (i.e. no value in "URL of update XML").
I expect this will also affect any custom modules where release history cannot be checked, not just exported features.
Comment #7
seanrRe #6, this can happen if your features modules are including d.o style version information (version = "7.x-2.6"), project, etc in their info files. If you remove all of the lines added by the packaging script, drush won't try to check for updates for those modules.
Comment #8
pianomansam commented@seanr, your provided solution works, but doesn't seem to be a good long-term solution as we have to comment out those lines each time we create a new feature. There has to be a better way.
Comment #9
seanrYou sure about that? When I generate a new feature from scratch, I don't get the extra drupal.org packaging lines. It only adds the ones required for a module, plus any dependencies and features items.
Comment #10
pianomansam commentedThe offending line I keep having to comment out from newly created features is the "project" line.
Comment #11
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.