Help Center/ Migration Center/ FAQs/ Server Migration/ What Do I Do If I Use a sudo User to Migrate a Source Server and the Server Fails the Source Environment Check?
Updated on 2024-09-05 GMT+08:00

What Do I Do If I Use a sudo User to Migrate a Source Server and the Server Fails the Source Environment Check?

Symptom

When a sudo user was used to migrate a source server, a message is displayed indicating that the server failed at the SourceEnvCheck step in the workflow.

Possible Causes

At the SourceEnvCheck step in the workflow, a script is uploaded to the source server. The user used for the migration only needs the permissions to read and execute the script. If the script already exists on the source servers and the sudo user does not have sufficient permissions to modify or delete the old script, the new script cannot be uploaded. As a result, the check fails.

Solution

  1. Log in to the source server as the sudo user.
  2. Delete the rda folder in /home/Username/. In the preceding command, Username indicates the username used by the sudo user to log in to the system.
  3. Return to the MgC console and retry the workflow for the source server again.