What Should I Do If Error "stat:403 reason:Forbidden" Is Displayed in Logs When a Training Job Accesses OBS

Symptom

When a training job accesses OBS, an error occurs.

Figure 1 Error log

Possible Causes

The possible causes are as follows:

Solution

Verify that OBS permissions are correctly assigned. If the problem persists, troubleshoot by following the instructions provided in "Why Can't I Access OBS (403 AccessDenied) After Being Granted with the OBS Access Permission?".

Summary and Suggestions

Before creating a training job, use the ModelArts development environment to debug the training code to maximally eliminate errors in code migration.