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