Memecahkan masalah terkait Migration Center discovery client CLI
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menunjukkan cara menyelesaikan masalah terkait Migration Center discovery client CLI.
Masalah upgrade
Saat Anda mengupgrade CLI mcdc ke versi terbaru, CLI tersebut
akan melakukan upgrade skema database internal yang secara otomatis membuat
pencadangan data yang dikumpulkan dan dinilai oleh versi sebelumnya.
Dalam kasus yang jarang terjadi, upgrade CLI mcdc tidak berhasil
selesai karena kegagalan dalam mengupgrade database lokal. Hal ini dapat terjadi
karena kerusakan selama upgrade database yang merusak database,
sehingga data yang dikumpulkan sebelumnya akan hilang.
Setelah mengupgrade CLI mcdc, saat menjalankan versi terbaru, jika Anda melihat error yang menunjukkan bahwa upgrade database gagal, Anda dapat menggunakan perintah recover-db untuk memulihkan database ke versi yang berfungsi sebelumnya, lalu melakukan downgrade ke versi CLI mcdc sebelumnya.
Lakukan langkah-langkah berikut:
Pulihkan database ke versi kerja sebelumnya:
./mcdcdiscoverrecover-db
Download
versi mcdc CLI yang Anda gunakan sebelum upgrade.
Saat menginstal mcdc CLI versi lama, jangan
hapus direktori mcdc CLI yang dibuat oleh
versi saat ini.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-11 UTC."],[],[],null,["# Troubleshoot issues with Migration Center discovery client CLI\n\nThis page shows you how to resolve issues with the Migration Center discovery client CLI.\n\nUpgrade issue\n-------------\n\nWhen you upgrade the `mcdc` CLI to the latest version, it\nperforms an internal database schema upgrade which automatically creates a\nbackup of collected and assessed data by the previous version.\n\nIn rare cases, the `mcdc` CLI upgrade doesn't complete\nsuccessfully due to a failure in upgrading the local database. This might happen\ndue to a malfunction during the database upgrade which corrupts the database,\nand therefore, the previously collected data is lost.\n\nAfter upgrading the `mcdc` CLI, when you run the latest\nversion, if you see an error which indicates that the database upgrade failed,\nyou can use the `recover-db` command to restore the database to a previous\nworking version then downgrade to the previous `mcdc` CLI\nversion.\n\nPerform the following steps:\n\n1. Restore the database to a previous working version:\n\n ./mcdc discover recover-db\n\n2. [Download](/migration-center/docs/download-collector-cli) the\n the `mcdc` CLI version you used before the upgrade.\n\n While installing an older version the `mcdc` CLI, don't\n remove the `mcdc` CLI directory that is created by the\n current version.\n | **Note:** On Linux machines, the lowest version of `mcdc` CLI that you can downgrade to is version 2.0.0."]]