Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1166

Corrupted cache exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 1.0-milestone-5

      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'.
      Caused by: org.gradle.cache.btree.CorruptedCacheException: Corrupted IndexBlock 649964 found in cache '/ext/home/build/.gradle/caches/0.9-preview-3/outputFileStates/cache.bin'.
      at org.gradle.cache.btree.FileBackedBlockStore$BlockImpl.blockCorruptedException(FileBackedBlockStore.java:239)

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adammurdoch Adam Murdoch
              Reporter:
              vincer Vince Rosso
              Votes:
              25 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: