I’m running my build in a FreeBSD jail which does not have a loopback address, localhost host resolves to 192.168.200.44. On upgrading to 1.12 or 2.0 I get the error below:
$ ./gradlew clean
:buildSrc:clean
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy
Cannot accept connection from remote address /192.168.200.44.
:buildSrc:compileGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileGroovy'.
> Unable to connect to the child process 'Gradle Compiler Daemon 1'.
It is likely that the child process have crashed - please find the stack trace in the build log.
This exception might occur when the build machine is extremely loaded.
The connection attempt hit a timeout after 120.0 seconds (last known process state: STARTED, running: true).
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Possible regression http://issues.gradle.org/browse/GRADLE-2265 ?
Full debug: https://gist.github.com/phillashworth/c5f0a6a4ae55a4bd9a6b