Help Center> Object Storage Migration Service> FAQ> Exception Recovery> What Are the Common Questions and Their Solutions in the CDN Scenario?

What Are the Common Questions and Their Solutions in the CDN Scenario?

Question 1

The CDN domain name configuration fails the check before the migration, and the error code COMPARE_SRC_AND_CDN_FAILURE is returned.

Possible Causes

The object metadata obtained by OMS from the source bucket does not match the HTTP response header from the CDN. To be specific, the object sizes are different or the last modification time of the source object is later than that of the cached object on the CDN.

Solution

  1. Check whether the URL (CDN domain name followed by the object name) can be used to download the object from the CDN.
    1. If the URL cannot be accessed, check whether the CDN anti-leeching is configured.
    2. If the URL can be accessed, go to 2.
  2. Check whether the values of Content-Length and Last-Modified in the HTTP response header from the CDN are the same as those in the metadata of the source object.
    1. If the values are inconsistent, check whether image compression is configured on the CDN. If yes, delete the configuration and perform the migration again.
    2. If the last modification time of the source object is later than the Last-Modified value obtained from CDN, refresh the CDN cache and perform the migration again.

Question 2

The migration fails and the error code COMPARE_SRC_AND_CDN_FAILURE is displayed in the failed object list.

To obtain the list of failed objects, click View Details in the row where the failed migration task is located, and click the link next to Failed Object List Storage Path.
Figure 1 Failed Object List Storage Path

Possible Causes

Before the migration, OMS detects that the size and last modification time of the object in the source bucket are inconsistent with those of the cached object on the CDN.

This is because that the source object is updated, but the CDN cache is not refreshed.

Solution

Refresh the CDN cache so that the cached object on the CDN is the latest.

Question 3

The migration fails and the error code 403 is displayed in the failed object list.

To obtain the list of failed objects, click View Details in the row where the failed migration task is located, and click the link next to Failed Object List Storage Path.
Figure 2 Failed Object List Storage Path

Possible Causes

403 indicates that OMS does not have the permissions to access the CDN domain name. The causes are as follows:

  • For publicly accessible CDNs, the anti-leeching is configured.
  • For non-publicly accessible CDNs, the authentication information is not correctly configured on the OMS console.

Solution

  • Disable the anti-leeching function. If anti-leeching cannot be disabled for security purposes, contact HUAWEI CLOUD technical support.
  • Configure the authentification correctly. For details, see Migration from CDN.