Migration did not meet the requirements when using cache.backend.null

Created on 16 May 2017, over 7 years ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

If you are getting Migration X did not meet the requirements. Missing migrations Y. requirements: Y. error message and NOT using cache.backend.null use πŸ› Migrations fail due to missing dependency when dependency has skipped rows by the source plugin Needs review .

When I try to migrate a migration X that depends on another migration Y, I got the following error
Migration X did not meet the requirements. Missing migrations Y. requirements: Y.

Even if the migration Y has been successfully/totally migrated. I found out that it was because the migration Y was considered as non-existent (and not in failure/incomplete state).

After many tests, I found that removing the following line in my settings.php fixed my problem
$settings['cache']['default'] = 'cache.backend.null'; (only used for development purpose)

What I except migrate to do, is not to search the migration plugins into the cache when "cache.backend.null" is defined.

Steps to reproduce

Proposed resolution

From #12 this could be cause by

  1. there is no caching
  2. If the required migration's source plugin's count() function does not return the same number of items that were migrated. For this problem see #16

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
MigrationΒ  β†’

Last updated 4 days ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom welly

    I've found that this issue seems to occur when I use drush to run a migration - drush migrate:import users_migration, which has a required dependency on users_roles_migration, results in this error:

    Migration users_migration did not meet the requirements. Missing migrations users_roles_migration. requirements: users_roles_migration.
    

    However, if I run the migration through the Migrate Tools UI it executes correctly and runs the required dependencies first. I've got $settings['cache']['default'] = 'cache.backend.null'; commented out.

Production build 0.71.5 2024