Hi,
when I run drush migrate-import --migrate-debug upgrade_d6_user_role I get Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.config_entity_migration".

when I run
drush migrate-import --migrate-debug-pre upgrade_d6_user_role
i get
Processed 7 items (0 created, 0 updated, 0 failed, 7 ignored) - done with 'upgrade_d6_user_role'
but no debug output either.

I could really do with a tool which would explain why roles are being ignored.
Cheers

Comments

kubrt created an issue. See original summary.

Derimagia’s picture

Added a newer version to prevent the error from happening (See #2752335 for why this was happening) but if your migrations are simply "ignoring" without warning that could be because of a lot of things that this module won't currently help you for sadly.

Leaving this open until I do more tests for the error, however.

Derimagia’s picture

Can you provide the migrate yml file? Even if it's not possible now i"d like to add debugging for ignored rows

kubrt’s picture

Content of the migrate_plus.migration.upgrade_d6_user_role.yml

uuid: 013c7867-cf26-4b1f-aa3e-45e6d2c77128
langcode: en
status: true
dependencies: {  }
id: upgrade_d6_user_role
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags:
  - 'Drupal 6'
migration_group: migrate_drupal_6
label: 'User roles'
source:
  plugin: d6_user_role
process:
  id:
    -
      plugin: machine_name
      source: name
    -
      plugin: user_update_8002
  label: name
  permissions:
    -
      plugin: static_map
      source: permissions
      bypass: true
      map:
        'use PHP for block visibility': 'use PHP for settings'
        'administer site-wide contact form': 'administer contact forms'
        'post comments without approval': 'skip comment approval'
        'edit own blog entries': 'edit own blog content'
        'edit any blog entry': 'edit any blog content'
        'delete own blog entries': 'delete own blog content'
        'delete any blog entry': 'delete any blog content'
        'create forum topics': 'create forum content'
        'delete any forum topic': 'delete any forum content'
        'delete own forum topics': 'delete own forum content'
        'edit any forum topic': 'edit any forum content'
        'edit own forum topics': 'edit own forum content'
    -
      plugin: system_update_7000
    -
      plugin: node_update_7008
    -
      plugin: flatten
    -
      plugin: filter_format_permission
destination:
  plugin: 'entity:user_role'
migration_dependencies:
  required:
    - upgrade_d6_filter_format
  optional: {  }

Someone says here static_map was his problem but what do I know.

Derimagia’s picture

If you remove the entire permissions block and just do the id and name does it work?

  • Derimagia committed 2f6700f on 8.x-1.x
    Fall back to plugin.manager.migration, see #2880071
    
kubrt’s picture

I'm on 2f6700f but still getting the same error, just FYI.

Derimagia’s picture

Sorry for the long delay, I had to re-create my testing enviornment. Should be fixed so it uses the proper migration manager, if you have any issues let me know

  • Derimagia committed d56b84f on 8.x-1.x
    Use the service for the migration plugin to fix #2880071
    
Derimagia’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.