[GRADLE-1627] Corrupted cache exception on local disk Created: 21/Jun/11  Updated: 04/Jan/13  Resolved: 16/Aug/11

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-3
Fix Version/s: 1.0-milestone-5

Type: Bug
Reporter: Olivier Girardot Assignee: Adam Murdoch
Resolution: Fixed Votes: 3


 Description   

Hi,
Using gradle with Jenkins, i have this issue using milestone 3 :
FAILURE: Build aborted because of an internal error.

  • What went wrong:
    Build aborted because of an unexpected internal error. Please file an issue at: http://www.gradle.org.
  • Try:
    Run with --debug option to get additional debug info.
  • Exception is:
    org.gradle.api.UncheckedIOException: Could not remove entry '9619' from cache '/var/lib/jenkins/.gradle/caches/1.0-milestone-3/fileSnapshots/cache.bin'.
    at org.gradle.cache.btree.BTreePersistentIndexedCache.remove(BTreePersistentIndexedCache.java:164)
    at org.gradle.api.internal.changedetection.CacheBackedFileSnapshotRepository.remove(CacheBackedFileSnapshotRepository.java:47)
    at org.gradle.api.internal.changedetection.CacheBackedTaskHistoryRepository$1.update(CacheBackedTaskHistoryRepository.java:75)
    at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository$TaskArtifactStateImpl.afterTask(DefaultTaskArtifactStateRepository.java:191)
    at org.gradle.api.internal.changedetection.ShortCircuitTaskArtifactStateRepository$1.afterTask(ShortCircuitTaskArtifactStateRepository.java:47)
    at org.gradle.api.internal.changedetection.FileCacheBroadcastTaskArtifactStateRepository$1.afterTask(FileCacheBroadcastTaskArtifactStateRepository.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
    at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:237)
    at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167)
    at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160)
    at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78)
    at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113)
    at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:80)
    at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41)
    at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27)
    at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:32)
    at org.gradle.launcher.ExceptionReportingAction.execute(ExceptionReportingAction.java:21)
    at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:219)
    at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:203)
    at org.gradle.launcher.Main.execute(Main.java:55)
    at org.gradle.launcher.Main.main(Main.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46)
    at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:24)
    Caused by: org.gradle.cache.btree.CorruptedCacheException: Corrupted IndexBlock 88527553 found in cache '/var/lib/jenkins/.gradle/caches/1.0-milestone-3/fileSnapshots/cache.bin'.
    at org.gradle.cache.btree.FileBackedBlockStore$BlockImpl.blockCorruptedException(FileBackedBlockStore.java:239)
    at org.gradle.cache.btree.FileBackedBlockStore$BlockImpl.read(FileBackedBlockStore.java:219)
    at org.gradle.cache.btree.FileBackedBlockStore.read(FileBackedBlockStore.java:91)
    at org.gradle.cache.btree.CachingBlockStore.read(CachingBlockStore.java:84)
    at org.gradle.cache.btree.FreeListBlockStore.read(FreeListBlockStore.java:78)
    at org.gradle.cache.btree.StateCheckBlockStore.read(StateCheckBlockStore.java:61)
    at org.gradle.cache.btree.BTreePersistentIndexedCache.load(BTreePersistentIndexedCache.java:169)
    at org.gradle.cache.btree.BTreePersistentIndexedCache.access$1300(BTreePersistentIndexedCache.java:40)
    at org.gradle.cache.btree.BTreePersistentIndexedCache$IndexBlock.find(BTreePersistentIndexedCache.java:465)
    at org.gradle.cache.btree.BTreePersistentIndexedCache$IndexBlock.find(BTreePersistentIndexedCache.java:445)
    at org.gradle.cache.btree.BTreePersistentIndexedCache.remove(BTreePersistentIndexedCache.java:155)
    ... 35 more

BUILD FAILED

It seems that it's a know issue, this issue may be a duplicate of issue GRADLE-1166
thank you for your time,

Olivier.


Generated at Wed Jun 30 12:00:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.