All Products
Search
Document Center

Simple Log Service:What do I do if logs fail to be shipped to OSS?

Last Updated:Aug 25, 2023

If an incorrect endpoint is specified or a RAM role does not exist, logs fail to be shipped to Object Storage Service (OSS).

Symptoms

Logs fail to be shipped to OSS, and one of the following error messages is returned:

  • The endpoint is incorrect.

    AccessDenied: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
  • The RAM role does not exist.

    EntityNotExist.Role: The role not exists:

Causes

You can identify the cause of the issue based on the error message that is returned.

  • If the error message indicates that the endpoint is incorrect, the region where the Simple Log Service project resides is different from the region where the OSS bucket resides.

  • If the error message indicates that the RAM role does not exist, the Alibaba Cloud Resource Name (ARN) of the RAM role that you specify is incorrect.

Solutions

Select a solution based on the error message that is returned.

  • If the issue is caused by region inconsistency, make sure that the region where the Simple Log Service project resides and the region where the OSS bucket resides are the same.

  • If the issue is caused by the incorrect ARN of the RAM role, specify a correct ARN.

    For more information about how to obtain a correct ARN, see How do I obtain the ARN of a RAM role?