-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
corrupt archive file (gzip, filesystem) #158
Comments
I ran into this a few times. I believe it happens under two specific conditions:
The problem went away after switching the storage method to minio (S3). |
Both conditions were met by my usage. Smells like file system backend directly writes to target file instead of I fixed it by writing a simple sftp/scp based caching solution instead. |
You are totally right, this is something I have overlooked. This should be easily achievable. |
@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! |
@bdebyl Sorry, I didn't saw the notification. My solution was to not use the cache plugin but write my own solution based on sftp/scp. |
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: