CodexBloom - Programming Q&A Platform

OCI Object Storage: implementing Multipart Uploads Timing Out on Large Files

👀 Views: 86 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-09
oci object-storage multipart-upload python-sdk Python

I'm currently working on an application that uploads large files to OCI Object Storage using the Python SDK. I've implemented multipart uploads to handle files over 100MB. However, I'm running into timeout issues when uploading files around 1GB in size. The upload process starts but eventually fails with a `ClientError: The connection has timed out` message after approximately 30 minutes. I've configured the `max_retries` parameter to 5 and set a timeout for the `client` with the following code: ```python import oci config = oci.config.from_file() object_storage_client = oci.object_storage.ObjectStorageClient(config) object_storage_client.base_client.connection.timeout = 1200 # 20 minutes object_storage_client.base_client.connection.max_retries = 5 ``` Despite these settings, my uploads still time out. I've also tried increasing the `timeout` value even further, but that hasn't resolved the scenario either. I'm using version `2.43.0` of the OCI SDK for Python. Can anyone provide insight into why these timeouts occur with large file uploads and if there are best practices for handling large multipart uploads to OCI Object Storage? Any tips on how to troubleshoot this would be greatly appreciated! This is my first time working with Python 3.11.