Problem/Motivation

Got this errors:

Migration d7_node_revision__page is busy with another operation: Importing
Migration d7_field_formatter_settings is busy with another operation: Importing
Migration d7_comment is busy with another operation: Importing
Import of Drupal 7 comments failed
Imported Drupal 7 comment type

What does this mean?

Proposed resolution

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Comments

hass created an issue. See original summary.

hass’s picture

Issue summary: View changes
hass’s picture

Issue summary: View changes
mikeryan’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

This means that somehow you have a given migration running twice - e.g., if you ran the migration in two windows at the same time. It could also mean that a migration had a fatal error causing it to exit without resetting the status from Importing to Idle - if that happens, you can use the migrate_tools command drush migrate-reset-status to reset it and try the migration again.

hass’s picture

Category: Support request » Bug report
Status: Postponed (maintainer needs more info) » Active

That means core migration has bugs. I had just one window open. 100% for sure. This is my local dev machine. I installed D8 and than enabled migrate UI and ran the migration from there. I tried two D7 sites and both show this errors. One site just one, the other more than once.

I had no luck with installing Drush for D8 on Windows. So I cannot do the reset.

mikeryan’s picture

Status: Active » Postponed (maintainer needs more info)

By "Migrate UI" you mean you're using the migrate_upgrade UI? What if you use the migrate-upgrade drush command? With the UI, if you check the log after migration completes is there anything else reported for these skipped migrations?

hass’s picture

Yes, migrate_upgrade. As noted drush does not work here. I cannot use drush for tests.

The second code block is a copy from watchdog. There are no errors before.

grahl’s picture

I'm just commenting on this issue to say that I ran into a similar situation, only my migration died somewhere in the middle due to other factors and I received the same error message in the end.

Executing drush migrate-reset-status d7_comment solved my issue. It's likely relevant to other users that migrate-rollback did not reset the status and comments were always skipped until I reset d7_comment's status. drush migrate-status was helpful in figuring this out.

hadipramono’s picture

Same problem in d6_user

drush migrate-upgrade ......
drush migrate-reset-status d6_user
Migration d6_user is already Idle [warning]

And run again:
drush migrate-upgrade ......

got error:
Upgrading d6_user
Passed variable is not an array or object, using empty array instead [error]

Any solution? Thanks.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

DocDJ-forum’s picture

I am trying to migrate from D7.43 to D8.1 using drush. I had the above listed failure "[some-module] is busy with another operation". I issued "drush clear-cache drush" and "drush migrate reset-status" with and without "d7_comment" at the end. I am still getting the initial failure (busy modules). Also, drush-migrate-reset-status gives the error "Migration ... does not exist [error]". NOTE the ... represents real extra space in the output message.

the migration eventually fails with a "call to undefined function field_read_field() in registration.module line 1286".

Any suggestions on proceeding would be GREATLY appreciated, considering I have now spent 3 full days trying to migrate my DB. I got it to partially work once before that, but something was corrupted so I started from scratch (deleted entire D8 db and ran the Drupal Installer) and now I can't get it ported at all.

DocDJ-forum’s picture

I see this bug report is postponed. What additional information can I supply?
Windows 10 pro, Apache 2.4 64-bit, PHP 5.6 (now 7.0), MySql 5.6.

mikeryan’s picture

I've never been able to reproduce this problem, so there's not much I can do to track it down - it needs someone who can reproduce it to step through in a debugger and see what's going on. But, a red flag in your particular case:

the migration eventually fails with a "call to undefined function field_read_field() in registration.module line 1286".

Presumably registration.module is the Entity Registration module? field_read_field() does not exist in Drupal 8 - it looks like this module is not yet fully functional on Drupal 8, I would recommend uninstalling it for now.

DocDJ-forum’s picture

Since the problem in the registration module is secondary to the "[module] is busy migrating" problem, I guess I'll have to wait until the "busy" problem is fixed before I can tackle the reg problem. Thanks for pointing me to the info on the development process for the reg module.

This means my port to D8 is definitely postponed.

DocDJ-forum’s picture

Mikeryan said, "it needs someone who can reproduce it to step through in a debugger and see what's going on".
What can I do to trace the problem? What debugger is needed?

mikeryan’s picture

PhpStorm is the IDE and debugger of choice, these days - see https://www.drupaleasy.com/quicktips/debugging-phpstorm-including-drush for information on debugging Drupal using PhpStorm.

I guess I'll have to wait until the "busy" problem is fixed before I can tackle the reg problem

The module is entirely broken (calling at least one function that no longer exists in Drupal 8), and it's entirely possible it is a trigger your migration problems. I would strongly recommend you uninstall it until it's ready for D8.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
casivaagustin’s picture

The migrate process saves the status of each running migration in the database, any error in the code will abnormally terminate the process so the database won't be updated properly and will keep saying that "something is still running"

If you are totally sure that nothing else is running, use migrate-status to see the status, for example this is a normal output

 Group: XXX                                Status  Total  Imported  Unprocessed  Last imported
 XXXX                                                      Idle    199    0         6            2017-01-26 10:19:00
 Group:YYYY  Status  Total  Imported  Unprocessed  Last imported
 wp_vocabulary                                        Idle    4      0         4
 wp_terms                                                Idle    52     0         52
 wp_users                                                Idle    90     0         90
 wp_posts                                                Idle    821    0         821

If you see status importing, that is the one that is stucked

 Group: XXX               Status  Total  Imported  Unprocessed  Last imported
 XXXX                                         Importing    199    0         6            2017-01-26 10:19:00
 Group:YYYY  Status  Total  Imported  Unprocessed  Last imported
 wp_vocabulary                           Idle    4      0         4
 wp_terms                                   Idle    52     0         52
 wp_users                                    Idle    90     0         90
 wp_posts                                    Idle    821    0         821

Once you have identified what is running run migrate-reset-status with the name of the task.

drush migrate-reset-status XXXX

Fix your errors in the code and try again. If gets stuck again repeat the process and keep debugging.

Regards

alberto56’s picture

Status: Closed (cannot reproduce) » Fixed

This is reproducible by killing a migration process (control-C) while it is running. The fix in #19 works fine.

Changing from "closed (cannot reproduce)" to "fixed" in case other users are looking for the fix, as it is, in fact, reproducible.

hass’s picture

Status: Fixed » Closed (cannot reproduce)

Nobody knows how this can be reproduced.

b.khouy’s picture

#8 has solved the problem thanks @grahl!

webdevfreak’s picture

I was getting this error for my Druapl 7 to Drupal 8 migration i.e

Migration upgrade_d7_node_type is busy with another operation: Importing

which was fixed with the following i.e

drush migrate-reset-status upgrade_d7_node_type

To summarise, by using 'drush migrate-reset-status ' will reset migration name to idle and after that try again and it should migrate without this error.

rwilson0429’s picture

#19 and #23 works. Thanks for the resolution and the details too.

mmjvb’s picture

Category: Bug report » Support request
Status: Closed (cannot reproduce) » Fixed

Status: Fixed » Closed (fixed)

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

samhaldia’s picture

Yes i was getting this usse fro Drupal 7 to Drupal 8 migration of d7_user, #19 resolves the issue for me: drush migrate-reset-status d7_user