Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page
Help Center/ ModelArts/ Troubleshooting/ Inference Deployment/ AI Application Management/ Failed to Build an Image or Import a File When an IAM user Creates an AI Application

Failed to Build an Image or Import a File When an IAM user Creates an AI Application

Updated on 2024-06-11 GMT+08:00

Symptom

  • When an IAM user creates an AI application, creating an image failed. The failure log indicates that downloading the OBS file failed.

  • When an IAM user creates an AI application, either of the following prompts are displayed: Failed to copy model file due to obs exception. Please Check your obs access right. and User %s does not have obs:object:PutObjectAcl permission. The AI application fails to be created due to OBS import exceptions or permission issues.

Possible Causes

Using ModelArts requires OBS authorization. ModelArts users require OBS system permissions. The IAM permissions of an IAM user are configured by their tenants. If a tenant does not grant the OBS putObjectAcl permission to their IAM users, this issue occurs.

Solution

  1. Log in to the IAM console, choose Permissions > Policies/Roles, and click Create Custom Policy in the upper right corner to create a custom policy.
    Figure 1 Adding permissions on IAM
    Figure 2 Creating a custom policy

    An example custom policy is as follows:

    {
        "Version": "1.1",
        "Statement": [
            {
                "Action": [
                    "obs:bucket:ListAllMybuckets",
                    "obs:bucket:ListBucket",
                    "obs:object:GetObject",
                    "obs:object:GetObjectVersion",
                    "obs:object:PutObject",
                    "obs:object:GetObjectAcl",
                    "obs:object:PutObjectAcl",
                    "obs:object:GetObjectVersionAcl"
                ],
                "Effect": "Allow"
            }
        ]
    }
  2. Assign custom policy permissions to the user group to which the IAM user belongs.
    Figure 3 Assigning permissions to an IAM user
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback