How to adjust PartSize for S3 storage to resolve the "TotalPartsExceeded" error in CubeBackup


Error message

TotalPartsExceeded: exceeded total allowed configured MaxUploadParts (10000). Adjust PartSize to fit in this limit

Instructions

To resolve this issue, follow the steps below to adjust the part size for the S3 upload process:

  1. On the OVERVIEW page of the CubeBackup for Google Workspace web console, find the Storage status section in the bottom-right corner and click the gear icon to open the update wizard.

  2. Click Edit storage configuration.

  3. As a safety precaution, an authentication code will be sent to you by email. Enter the code to continue.

  4. Press F12 to open the developer tools in your browser. In Chrome, you can also access them by selecting More tools > Developer tools.

  5. Switch to the Console tab, copy and paste the following code, and then press Enter:

    MineRequest({url:'/api/v1/storage/settings', method:'PATCH', contentType:'application/json', data:'{"S3PartSize":64}'}).done(function(cfg){console._log(cfg);}).fail(function(e){console.error(e);})
    
    Console tab

  6. Click Save and return to the CubeBackup web console.

  7. On the OVERVIEW page, initiate a new backup and check whether the issue persists.

  8. If the issue persists for extremely large files over 1 TB, repeat steps 1–7 with S3PartSize set to 128.

    MineRequest({url:'/api/v1/storage/settings', method:'PATCH', contentType:'application/json', data:'{"S3PartSize":128}'}).done(function(cfg){console._log(cfg);}).fail(function(e){console.error(e);})
    

Note: Monitor RAM usage during the backup process, as increasing the S3PartSize value may lead to higher memory consumption on your server. If necessary, upgrade the RAM to ensure that your CubeBackup server remains stable.