Google Cloud Migration Center discovery client Setup Wizard ended prematurely
because of an error. Your system has not been modified. To install this program
at a later time, run Setup Wizard again. Click the Finish button to exit the
Setup Wizard.
如需解决此问题,请右键点击 MSI 文件,然后以管理员身份运行该文件。
在某些情况下,由于特定的 Windows 版本或网域政策,“以管理员身份运行”选项可能会隐藏。
如需解决此问题,请尝试以下解决方法:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Troubleshoot issues with discovery client\n\nThis document shows you how to resolve issues with the discovery client.\n\nUse logs to identify issues\n---------------------------\n\nThe discovery client generates log files that you can use for debugging.\nLogs are stored locally on the machine where you installed the\ndiscovery client in the `C:\\ProgramData\\Google\\mcdc\\logs` folder.\n| **Note:** The logs files are limited in size, therefore the discovery client periodically deletes the content of old logs.\n\nTroubleshoot permissions and service accounts\n---------------------------------------------\n\nIf you experience issues with the authorization in connected mode, you might\nnot have the permissions required to create a service account in your\norganization, or might lack the required roles to authorize the discovery\nclient.\n\nTo resolve the issue, ask your organization administrator to create a service\naccount for you, and to assign the `roles/migrationcenter.discoveryClient`\nrole. Also, make sure that the **Cloud Resource Manager API** is enabled in the\nproject.\n\nIf you have a newly created organization on Google Cloud, by default service\naccount key creation is disabled.\nTo enable service account key creation, make sure you\nhave the `Organization Policy Administrator` role assigned, then follow these\nsteps:\n\n1. In the Google Cloud console, go to **IAM \\\u003e Organization Policies**.\n2. Click the policy named **Disable service account key creation**.\n3. Click **Manage Policy**.\n4. On the **Edit policy** page, in the **Applies to** section, select **Customize**.\n5. In the **Rules** section, expand **Edit rule** , then set **Enforcement** to **Off**.\n6. To finish, click **Set Policy**.\n\nTroubleshoot installation issues\n--------------------------------\n\nIf you install or upgrade the discovery client, but you're not logged in\nas a local administrator, the MSI execution likely fails with the following\nerror message: \n\n Google Cloud Migration Center discovery client Setup Wizard ended prematurely\n because of an error. Your system has not been modified. To install this program\n at a later time, run Setup Wizard again. Click the Finish button to exit the\n Setup Wizard.\n\nTo resolve the issue, right-click the MSI file and run it as\nan administrator.\n\nIn some cases, due to specific Windows versions or domain policies, the\n\"Run as Administrator\" option might be hidden.\nTo resolve the issue, try the following workarounds:\n\n- **Preferred method:** Open PowerShell as an administrator, and run\n `msiexec.exe /i mcdc.msi /L*V \"C:\\installer.log\"`.\n\n | **Tip:** if you have issues installing with PowerShell, check if you're using relative paths or long paths.\n- **Alternative method:**\n [Edit the registry](https://learn.microsoft.com/en-us/answers/questions/1090352/windows-11-msi-and-uac-rights)\n to show this option in the UI."]]