You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.
I am using the cache plugin to cache an .m2 directory.
Too often the cache gets corrupted.
Assuming that gnu tar should be able to read the archive it looks to me that the created archive is corrupt:
$ tar ztvf m2p2-cache/.m2 | grep xyz
tar: Removing leading `/' from member names
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
@cal101 if you are able to share insight on your solution to this problem I would be happy to take a look at implementing this within drone-cache itself to get this resolved!
My solution was to not use the cache plugin but write my own solution based on sftp/scp.
My assumption about the bug in the cache plugin is that the new archive file is not written atomically and multiple writers write to the same file.
A typical solution to that is to let each writer write to it's own file, close it and then finally rename the file to the target name which typically is atomic.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I am using the cache plugin to cache an .m2 directory.
Too often the cache gets corrupted.
Assuming that gnu tar should be able to read the archive it looks to me that the created archive is corrupt:
To Reproduce
It's not clear when and how this happens.
The configuration to store the cache is
Expected behavior
Don't create corrupted files.
The text was updated successfully, but these errors were encountered: