Help Center> Server Migration Service> FAQ> Agent Installation and Startup> How Do I Resolve Error "AK/SK authentication failed. Ensure that the system time is consistent with the standard time and the AK and SK are correct" When I Start the Agent?

How Do I Resolve Error "AK/SK authentication failed. Ensure that the system time is consistent with the standard time and the AK and SK are correct" When I Start the Agent?

Symptom

After the AK and SK of your HUAWEI CLOUD account are entered in the Agent, the AK/SK-based authentication fails. The specific error message depends on the OS.

Possible Causes

Possible causes are as follows:

  • The entered AK or SK is incorrect.
  • The system time of the source server is consistent with the local standard time.
  • The time zone in the source server is configured incorrectly.
  • The AK and SK have been deleted or disabled.
  • The programmatic access type is not enabled for the HUAWEI CLOUD account you used for migration.

Handling Methods

  • The entered AK or SK is incorrect.

    Check whether the entered AK and SK of the HUAWEI CLOUD account is correct, especially whether any spaces or characters are missed during the copy. Enter the AK and SK for authentication again.

  • The system time of the source server is consistent with the local standard time.

    Check whether the system time of the source server is consistent with the standard time of the time zone where the source server is located.

    If it is not, change the system time to the local standard time, and enter the AK and SK for authentication again.

    If services on the source server depend on the system time, check whether the time can be changed to avoid impact on services.

  • The time zone in the source server is configured incorrectly.

    Change the time zone in the source server so that the system time plus the time zone is equal to the standard UTC time. For details, see Changing the Time Zone. Enter the AK and SK for authentication again.

  • The AK and SK have been deleted or disabled.
    Choose My Credentials > Access Keys to check whether the AK is in the list.
    • If it is not, change or create an AK.
    • If it is, check whether it is disabled. If the AK is disabled, enable it.
  • The programmatic access type is not enabled for the HUAWEI CLOUD account you used for migration.
    1. Log in to the management console.
    2. Click the username in the upper right corner and choose Identity and Access Management.
    3. In the navigation pane on the left, choose Users and click the username you used for migration.
    4. On the Basic Information tab page, check whether Programmatic access is selected for Access Type.

    5. If it is not, click , select Programmatic access, and click OK.