ARTIFACTORY: Resolving Signed URL Expiry Issues When Uploading Large Files to HuggingFace repository

ARTIFACTORY: Resolving Signed URL Expiry Issues When Uploading Large Files to HuggingFace repository

AuthorFullName__c
Jian Sun
articleNumber
000006263
FirstPublishedDate
2024-12-10T10:35:04Z
lastModifiedDate
2025-08-01
Introduction 

When uploading large files to the HuggingFace ML local repository, you may face the error:
403 Client Error: Forbidden
…
Authentication of signed URL failed: The signed token has been expired

Root cause

Short Signed URL Expiry Time: When uploading large files, the signed URL used for authentication has a limited expiration time (usually set to 600 seconds, or 10 minutes by default). For larger files, the upload time may exceed the URL's validity period, causing authentication failure or upload interruption.


Resolution

Adjust its value to increase the expiration time based on the estimated upload duration. For example, if uploading a 10 GB file is expected to take no more than 20 minutes, setting the expiration time to 1200 seconds (20 minutes) should be sufficient:
    Config file: <JFrogHome>/artifactory/var/etc/artifactory/artifactory.system.properties
artifactory.huggingfaceml.signed.url.expiration.time.secs=1200

Need to restart the Artifactory after changing the settings