D6 migration fails after completing node migration, leaving the following in the dblog:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "book" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 57 of /Users/mryan/Sites/d8/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Comments

mikeryan’s picture

This happens when the book module is not enabled in D8. We need to handle this more gracefully (I suspect migrate_drupal will probably be the place that needs fixing).

mikeryan’s picture

Title: Failure attempting book migration » Book migration fails when book module not enabled in D8
anavarre’s picture

Confirmed. If you get a failing migration because the Book module hasn't been enabled on the D8 site, then, it'll also create an empty book.settings.yml file instead of having the default:

allowed_types:
  - book
block:
  navigation:
    mode: 'all pages'
child_type: book

When the Book module is enabled, the migration completes but returns the below error:

Imported Drupal 6 vocabulary field instance configuration
Missing bundle entity, entity type <em class="placeholder">node_type</em>, entity id <em class="placeholder">blog</em>. (/var/www/html/d8/core/lib/Drupal/Core/Field/FieldConfigBase.php:253)
Missing bundle entity, entity type <em class="placeholder">node_type</em>, entity id <em class="placeholder">blog</em>. (/var/www/html/d8/core/lib/Drupal/Core/Field/FieldConfigBase.php:253)
mikeryan’s picture

Status: Active » Closed (fixed)

The template support addressed this - requirements are checked before saving migrations, so in this scenario the book migrations are never saved.