Migrations often do not exist or can't be found

Created on 20 February 2017, almost 8 years ago
Updated 6 September 2023, over 1 year ago

I keep running into cases where commands (migrate-import, migrate-status) cannot find migrations. Usually I'm trying to run a migration, so I start with mi and then run ms when that is not found, which results in an empty result. This especially happens when using the same DB/code/config on a different host (develop locally, put everything on staging, then migrations not found).

I have tried diagnosing a bit and have noticed:

  • All of the modules necessary are installed (migrate, migrate_tools, my migrate module, etc)
  • I have tried the service calls with code from #2832199 and #2795447 but the following is empty:
$manager = \Drupal::service('plugin.manager.migration');
$plugins = $manager->createInstances([]);
var_dump(array_keys($plugins));

This may be heavily related to the issues above, but I'm trying to assess if there is a way for me to get this working.

Drupal version: 8.2.6

πŸ› Bug report
Status

Postponed: needs info

Version

6.0

Component

Drush commands

Created by

πŸ‡ΊπŸ‡ΈUnited States rballou

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.

Production build 0.71.5 2024