Title: WP CLI Customer Data Migration Fails
Last modified: October 19, 2022

---

# WP CLI Customer Data Migration Fails

 *  Resolved [mjthehunter](https://wordpress.org/support/users/mjthehunter/)
 * (@mjthehunter)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-customer-data-migration-fails/)
 * Hi,
 * I’ve been attempting to migrate to EDD 3 but have encountered an issue with the
   customer data.
    It has previously stalled at around 9 minutes into the address
   migration. EDD Support advised that I don’t restart the entire migration as I
   was done with orders. Instead I should run `migrate_customer_data` I did, it 
   ran for about 10 minutes, then stalled again.
 * I should note that we have a sizeable database of several gigs.
 * Every 2 minutes after that it produces an error with customer data.
    After another
   2 minutes it produces the error again but with the next customer in the list.
   And this just continues.
 * Here’s the error, with customer data anonymized:
    [https://pastebin.pl/view/7984bb4e](https://pastebin.pl/view/7984bb4e)
 * I appreciate any help I can get.
    -  This topic was modified 3 years, 7 months ago by [mjthehunter](https://wordpress.org/support/users/mjthehunter/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-customer-data-migration-fails/#post-16124200)
 * Hey [@mjthehunter](https://wordpress.org/support/users/mjthehunter/)
 * Apologize for the delay in response. We are finalizing the next EDD update 3.1.0.2
   wich makes a change to the address migration data and should help alleviate the
   database table lock issue.
    If you wish to wait until the release and then attempt
   the migration again and if not you can try to apply the changes manually from
   this Pull Request to your EDD plugin and then attempt it again: [https://github.com/awesomemotive/easy-digital-downloads/pull/9514/files](https://github.com/awesomemotive/easy-digital-downloads/pull/9514/files)
 * Regards
 *  Thread Starter [mjthehunter](https://wordpress.org/support/users/mjthehunter/)
 * (@mjthehunter)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-customer-data-migration-fails/#post-16128168)
 * I implemented all the changes from that and it worked!
 *  Plugin Contributor [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * (@misulicus)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-customer-data-migration-fails/#post-16128200)
 * Thank you for confirming!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP CLI Customer Data Migration Fails’ is closed to new replies.

 * ![](https://ps.w.org/easy-digital-downloads/assets/icon.svg?rev=3455837)
 * [Easy Digital Downloads – eCommerce Payments and Subscriptions made easy](https://wordpress.org/plugins/easy-digital-downloads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-digital-downloads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-digital-downloads/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-digital-downloads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-digital-downloads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-digital-downloads/reviews/)

## Tags

 * [EDD](https://wordpress.org/support/topic-tag/edd/)
 * [migration](https://wordpress.org/support/topic-tag/migration/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mihai Joldis](https://wordpress.org/support/users/misulicus/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-customer-data-migration-fails/#post-16128200)
 * Status: resolved