[GRADLE-1166] Corrupted cache exception Created: 07/Oct/10 Updated: 04/Jan/13 Resolved: 16/Aug/11 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 1.0-milestone-5 |
Type: | Bug | ||
Reporter: | Vince Rosso | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 25 |
Issue Links: |
|
Description |
I'm occassionally getting errors of this kind when building: org.gradle.api.UncheckedIOException: Could not remove entry '/var/tmp/build/foo/ubuntu-10.04-64/foo/dependency-cache' from cache '/ext/home/build/.gradle/caches/0.9-preview-3/outputFileStates/cache.bin'. Sometimes its an issue with outputFileStates/cache.bin and other times its an issue with fileHashes/cache.bin. A little background: we have an automated build system where a "build" user checks if there have been recent svn checkins into a project. If so, it checks out the code and builds it to a central repository. This can happen for many projects at the same time and so multiple gradle processes would access the gradle caches simultaneously. This was with 0.9-preview-3 |
Comments |
Comment by Vince Rosso [ 07/Dec/10 ] |
A quick update on this: So, I'm guessing this is likely due to NFS, but it probably still warrants some more examination. Another note: before moving it off NFS, I was still seeing this issue as of 0.9-rc-2. |
Comment by Vince Rosso [ 25/Jan/11 ] |
Another update: Switching to a local disk has reduced the frequency of the issue, but it does still happen: Using 0.9.1 |
Comment by Ashton Hepburn [ 08/Jun/11 ] |
Using: Gradle 1.0-milestone-1, simple Jetty/Ubuntu setup for Hudson. We sporadically get errors like this in our automated Hudson setup: – Note: we suspect that this issues relates to concurrent builds (we have a number of related builds, and this project is itself a multi-project build with components shared with another multi-project build). Manually forcing a build usually executes it cleanly. lease/workspace/someproject/build/classes/test/com/icosystem/someclass.class' to cache '/srv/opt/jetty-hightide-7.1.6.v20100715/.gradle/caches/1.0-milestone-1/fileHashes/cache.bin'. |
Comment by Craig White [ 13/Jul/11 ] |
We're getting hit with this one too. Using Gradle 1.0-milestone-3 on Windows XP with Hudson. Cause: Could not remove entry '6863' from cache 'C:\Documents and Settings\build\.gradle\caches\1.0-milestone-3\fileSnapshots\cache.bin'. |
Comment by Kelly Robinson [ 26/Jul/11 ] |
I've been bitten by something similar while running concurrent builds on Hudson/Jenkins: |
Comment by Pivotal Tracker Integration [ 01/Aug/11 ] |
A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/16488859 |