Help Center> Server Migration Service> FAQs> 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?
Updated on 2024-02-20 GMT+08:00

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

The AK and SK of your Huawei Cloud account were entered in the Agent, but the AK/SK-based authentication fails. The specific error message depends on the OS.

Possible Causes

Possible causes are:

  • 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/SK pair has been deleted or disabled.
  • The programmatic access method is not enabled for the Huawei Cloud account you used for migration.

Handling Methods

  • Case 1: The entered AK or SK is incorrect.

    Check whether the entered AK/SK pair of the Huawei Cloud account is correct, especially whether any spaces or characters are missed during the copy. Enter the AK/SK pair for authentication again.

  • Case 2: 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/SK pair 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.

  • Case 3: 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/SK pair for authentication again.

  • Case 4: The AK/SK pair has 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.
  • Case 5: The programmatic access method 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.

Agent Installation and Startup FAQs

more