In my save_cache
step, I am getting the following printout:
Creating cache archive...
Uploading cache archive...
Error uploading archive: cache at :storage/caches/123-456/cache-id
.tar.gz failed: cache at :storage/caches/123-456/cache-id
.tar.gz failed: an unexpected storage error occurred (operation id: abc123)
What is the origin of this error? The message is not useful as there is little information included.
I found save_cache step fails with “Error uploading archive: MetadataTooLarge: Your metadata headers exceed the maximum allowed metadata size” which seems relevant. It’s message “MetadataTooLarge: Your metadata headers exceed the maximum allowed metadata size” is related to the message I am seeing “an unexpected storage error occurred”.
Can I get a confirmation that the core issue here is a too-large cache key, a too-large cache value, both, or something else entirely? I believe I have eliminated a too-large cache key being the issue. I believe it’s a too-large cache value included in paths
.
Also, can CircleCI update their save_cache
function to catch this .tar.gz
error and present a more useful message?