Problem/Motivation
updb varbase_core_update_90006 issue causing upgrade from Drupal 8 to 9 to abort. The problem arises from /Drupal::classResolver()->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)->applyUpdates(); attempting to update an entity type that is not prepared for updates. The affected entity types need a hook updb to resolve their entity type, but the upgrade is halted by the varbase_core_update_90006 error.
drush entity-updates
The following updates are pending:
entity_subqueue entity type :
The Entity subqueue entity type needs to be updated.
The Revision ID field needs to be installed.
The Default translation field needs to be installed.
The Default revision field needs to be installed.
The Revision translation affected field needs to be installed.
node entity type :
The node.field_project_logo field needs to be updated.
Do you wish to run all pending updates? (yes/no) [yes]:
> yes
In DevelEntityDefinitionUpdateManager.php line 169:
The entity schema update for the entity_subqueue entity type requires a data migration. Steps to reproduce
Proposed resolution
- Remove
/Drupal::classResolver()->getInstanceFromDefinition(EntityDefinitionUpdateManager::class)->applyUpdates();from hook updb and use varbase drush command (edupdb) to update entity after updb finishes - Ensure a smoother upgrade process.
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-10.0.0, varbase_core-10.0.24, varbase-9.1.4, varbase_core-9.1.37, varbase_core-9.0.85
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3447162 by Ahmad Khader: Fixed Update aborted by: varbase_core_update_90006
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | update_aborted_by_varbase_core_update_90006-3447162-3.patch | 2.06 KB | ahmad khader |
| #2 | update_aborted_by_varbase_core_update_90006-3447162-2.patch | 1.97 KB | ahmad khader |
| updb-error.png | 23.47 KB | ahmad khader |
Comments
Comment #2
ahmad khader commentedComment #3
ahmad khader commentedComment #4
rajab natshahThanks, Ahmad, for reporting and patching.
As we had a discussion about this issue internally:
Comment #5
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshah✅ Released varbase_core-9.0.85
Comment #12
rajab natshah✅ Released varbase_core-9.1.37
Comment #13
rajab natshah✅ Released varbase_core-10.0.24
Comment #14
rajab natshahEnsure a smoother upgrade process.
Comment #16
rajab natshah✅ Release varbase-10.0.0
Comment #17
rajab natshah✅ Released varbase-9.1.4