Troubleshoot issues with Migration Center discovery client CLI

This page shows you how to resolve issues with the Migration Center discovery client CLI.

Upgrade issue

When you upgrade the mcdc CLI to the latest version, it performs an internal database schema upgrade which automatically creates a backup of collected and assessed data by the previous version.

In rare cases, the mcdc CLI upgrade doesn't complete successfully due to a failure in upgrading the local database. This might happen due to a malfunction during the database upgrade which corrupts the database, and therefore, the previously collected data is lost.

After upgrading the mcdc CLI, when you run the latest version, if you see an error which indicates that the database upgrade failed, you can use the recover-db command to restore the database to a previous working version then downgrade to the previous mcdc CLI version.

Perform the following steps:

  1. Restore the database to a previous working version:

    ./mcdc discover recover-db
    
  2. Download the the mcdc CLI version you used before the upgrade.

    While installing an older version the mcdc CLI, don't remove the mcdc CLI directory that is created by the current version.