Updated on 2023-11-21 GMT+08:00

Uploading OBS Files to JupyterLab

In JupyterLab, you can download files from OBS to a notebook instance. Ensure that the file is not larger than 10 GB. Otherwise, the upload will fail.

  1. Use JupyterLab to open a running notebook instance.
  2. Click in the navigation bar on the top of the JupyterLab window. In the displayed window, click on the left to go to the OBS file upload page.
    Figure 1 File upload icon
    Figure 2 OBS file upload
  3. Set an OBS file path in either of the following ways:
    • Method 1: Enter a valid OBS file path in the text box and click Upload.
      Figure 3 Entering a valid OBS file path

    Enter an OBS file path instead of a folder path. Otherwise, the upload fails.

  • Method 2: Open OBS File Browser, select an OBS file path, and click Upload.
    Figure 4 Uploading an OBS File

Error Handling

There are three typical scenarios in which uploading a file failed.

  • Scenario 1

    Possible causes:

    • The OBS path is set to a folder instead of a file path.
    • The file in OBS is encrypted. In this case, go to the OBS console and ensure that the file is encrypted.

    • The OBS bucket and notebook instance are not in the same region. Ensure that the OBS bucket to be read is in the same region as the notebook instance. You cannot access an OBS bucket in another region. For details, see How Do I Check Whether ModelArts and an OBS Bucket Are in the Same Region?.
    • The account does not have the permission to access the OBS bucket. In this case, ensure that the notebook account has the permission to read data in the OBS bucket. For details, see Check Whether You Have Permission to Access the OBS Bucket.
    • The OBS file has been deleted. In this case, make sure that the OBS file to be uploaded is available.
  • Scenario 2

    Figure 5 File uploading failure

    Possible causes:

    The file name contains special characters such as <>'";\`=#$%^&.

  • Scenario 3
    Figure 6 File uploading failure

    Possible causes:

    The uploaded file exceeded 10 GB.