Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
node system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2014 at 20:30 UTC
Updated:
28 Apr 2015 at 05:14 UTC
Jump to comment: Most recent
Comments
Comment #1
yktdan commentedComment #2
yktdan commentedComment #3
XerraX commentedIn phpMyAdmin:
then update.php
Comment #4
yktdan commentedDon't do this. Site now runs impossibly slowly without an index and the update process did not rebuild the index. Restored successfully but still wants to do update which will fail. But I shouldn't have to go into phpmyadmin to fix things - the code has a bug in not coping with an error of this sort.
Comment #5
jaydee1818 commentedI received this error when trying to update:
Downloading updates failed:
Extracted file temporary://update-extraction-6d9c8f91/entity/LICENSE.txt does not have the correct file size '17408' (18092 expected). Archive may be corrupted.
Comment #6
1mas1com commentedSame problem!
Comment #7
Jorgas commentedI had the same problem. So I restored my site to previous version and updated it again. This time the site was updated successfully.
Comment #8
yktdan commentedNot all of us of can restore to previous version. We run ecommerce and any backup is out of date within an hour or less. If you write an update that modifies the data structure, it is up to the coder to check for all possible failures and leave the database as it was before the failure, so the old code can be put back on, while you figure out what is wrong.
Comment #9
jaydee1818 commentedI just manually deleted the entity module and replaced it with the new one and that did the trick.
Comment #10
fagoUpdate #7014 is not part of this modue.
Comment #11
Sarasvati commentedAs Jorgas, I just restored my site to previous version and updated it again: not yet solved #7014 error.
Comment #12
hswong3i commentedSo at least move it back to correct project ;-)
Comment #13
hswong3i commentedRe #4: I think #3 is totally correct, the case "impossibly slowly" is because of your site is still "live" during upgrade, which should be avoid.
I would like to recommend in follow procedure with drush:
Comment #14
hswong3i commentedComment #15
yktdan commentedThe original post about:
node module
Update #7014
Failed: DatabaseSchemaObjectExistsException: Cannot add index language to table node: index already exists. in DatabaseSchema_mysql->addIndex() (line 437 of /home/yktdan/public_html/fofdr.org/includes/database/mysql/schema.inc).
was against the wrong module. It should have been against the node module.
I believe I noticed it because all I was doing was updating entity when in reality is was a left over from some previous update.
My mistake - off to look at node's issues.
Comment #16
yktdan commentedHere is a tested fix: (tested on a system that had an index and trying to re-add it fails)
/**
* Add an index on {node}.language.
*/
function node_update_7014() {
db_drop_index('node', 'language');
db_add_index('node', 'language', array('language'));
}
where the db_drop_index line has been added.
Comment #17
dcam commentedIt looks like everyone who had this issue fixed it one way or another.