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.
ERROR:root:Failed to call: func= <bound method ObsClient.getObjectMetadata of <moxing.framework.file.src.obs.client.ObsClient object at 0x7fddb4ad06d0>> args=('bucket-cv-competition-bj4', 'fangjiemin/output/') kwargs={} ERROR:root: stat:403 errorCode:None errorMessage:None reason:Forbidden request-id:00000179D5ACCAC445CAA1A71019C9D0 retry:0
Possible Causes
The possible causes are as follows:
- The OBS permission is incorrect. As a result, data cannot be read.
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
- Use the notebook environment for online debugging. For details, see Using JupyterLab to Develop Models.
- Use a local IDE (PyCharm or VS Code) to access the cloud environment for debugging. For details, see Using a Local IDE to Develop Models.
- If an error occurred in OBS, identify the cause based on the error information, including the error code and message. For details about OBS error codes, see OBS Server-Side Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot