Help Center> Server Migration Service> User Guide(ME-Abu Dhabi Region)> FAQs> Agent Installation and Startup> How Do I Resolve the "No such file or directory: 'rsync':'rsync" Error When I Start the Linux Agent?
Updated on 2024-03-15 GMT+08:00

How Do I Resolve the "No such file or directory: 'rsync':'rsync" Error When I Start the Linux Agent?

Symptom

If this error message was displayed after you entered the AK/SK pair and start the Linux Agent, rsync was not installed on the source server. You need to install rsync and restart the Agent.

Figure 1 Error message

Possible Causes

Linux migration depends on rsync. If rsync is not installed on the source server, the Agent cannot be started.

Solutions

The operations for different OSs are as follows:

CentOS and Red Hat
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Install rsync.

    yum install rsync

  3. Enter y and press Enter.

  4. Display rsync details.

    rsync --version

    If the following information is displayed, rsync has been installed:

  5. Start the Agent.

    ./startup.sh

  6. Read the displayed information carefully, enter y, and press Enter.
    Figure 2 Confirmation
  7. Enter the AK and SK of the account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.

SUSE
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Install rsync.

    zypper install rsync

  3. Enter y and press Enter.

  4. Display rsync details.

    rsync --version

    If the following information is displayed, rsync has been installed:

  5. Start the Agent.

    ./startup.sh

  6. Read the displayed information carefully, enter y, and press Enter.
    Figure 3 Confirmation
  7. Enter the AK and SK of the account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.

Ubuntu
  1. Use PuTTY or another SSH client to log in to the source server as user root.
  2. Install rsync.

    apt-get install rsync

  3. Display rsync details.

    rsync --version

    If the following information is displayed, rsync has been installed:

  4. Start the Agent.

    ./startup.sh

  5. Read the displayed information carefully, enter y, and press Enter.

  6. Enter the AK and SK of the account that you migrate to.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS.