Skip to content

Timeout waiting to lock Java compile cache #184

@stauvel

Description

@stauvel

I'm under Windows and build a big composite build.
It works outside of docker, but failed when I run with the following command :

docker run --rm -u gradle -v "$(pwd -W)":/home/gradle/project -w /home/gradle/project gradle:6-jdk11 gradle assemble --no-daemon

(--no-daemon is not the problem)

...
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sub:project:compileJava'.
> Could not create service of type DefaultGeneralCompileCaches using GradleScopeCompileServices.createGeneralCompileCaches().
   > > Task :sub:project:compileJava FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings
3 actionable tasks: 1 executed, 2 up-to-date
Timeout waiting to lock Java compile cache (/home/gradle/project/.gradle/6.8.3/javaCompile). It is currently in use by another Gradle instance.
     Owner PID: 43
     Our PID: 341
     Owner Operation:
     Our operation: 
     Lock file: /home/gradle/project/.gradle/6.8.3/javaCompile/javaCompile.lock

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org
 

The find ~/.gradle -type f -name "*.lock" gives me a lot of locks but I start my build from a new cloned project (no .gradle folder).

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions