Closed
Description
Hi, I am suddenly starting to get this error. I can reproduce it even on newly created project using start.spring.io.
What I have already tried:
- deleting $USER_HOME/.gradle directory
- deleting project .gradle directory
- I have downgraded from 6.5.1 do 6.4 and that works.
- Version 6.6 also affected
- Version 6.4.1 does not work
Only highlighted changes I have:
java {
withSourcesJar()
}
C:\Users\aostrozlik\Desktop\core>gradlew -S
Starting a Gradle Daemon, 30 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
Could not receive a message from the daemon.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.launcher.daemon.client.DaemonConnectionException: Could not receive a message from the daemon.
at org.gradle.launcher.daemon.client.DaemonClientConnection.receive(DaemonClientConnection.java:83)
at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:168)
at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:148)
at org.gradle.launcher.daemon.client.DaemonClient.execute(DaemonClient.java:99)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:56)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:212)
at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:294)
at org.gradle.launcher.cli.DefaultCommandLineActionFactory$ParseAndBuildAction.execute(DefaultCommandLineActionFactory.java:266)
at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:82)
at org.gradle.launcher.cli.DebugLoggerWarningAction.execute(DebugLoggerWarningAction.java:30)
at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:92)
at org.gradle.launcher.cli.WelcomeMessageAction.execute(WelcomeMessageAction.java:38)
at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:44)
at org.gradle.launcher.cli.NativeServicesInitializingAction.execute(NativeServicesInitializingAction.java:26)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:41)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:26)
at org.gradle.launcher.cli.DefaultCommandLineActionFactory$WithLogging.execute(DefaultCommandLineActionFactory.java:259)
at org.gradle.launcher.Main.doAction(Main.java:35)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:50)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
at org.gradle.launcher.GradleMain.main(GradleMain.java:31)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:35)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
Caused by: org.gradle.internal.remote.internal.MessageIOException: Could not read message from '/127.0.0.1:10627'.
at org.gradle.internal.remote.internal.inet.SocketConnection.receive(SocketConnection.java:94)
at org.gradle.launcher.daemon.client.DaemonClientConnection.receive(DaemonClientConnection.java:77)
... 32 more
Caused by: com.esotericsoftware.kryo.KryoException: java.io.IOException: Software v hostitelskÚm poŔÝtaŔi ukonŔil vytvo°enÚ p°ipojenÝ
at com.esotericsoftware.kryo.io.Input.fill(Input.java:148)
at com.esotericsoftware.kryo.io.Input.require(Input.java:178)
at com.esotericsoftware.kryo.io.Input.readVarInt(Input.java:355)
at com.esotericsoftware.kryo.io.Input.readInt(Input.java:350)
at org.gradle.internal.serialize.kryo.KryoBackedDecoder.readSmallInt(KryoBackedDecoder.java:127)
at org.gradle.internal.serialize.DefaultSerializerRegistry$TaggedTypeSerializer.read(DefaultSerializerRegistry.java:142)
at org.gradle.internal.serialize.Serializers$StatefulSerializerAdapter$1.read(Serializers.java:36)
at org.gradle.internal.remote.internal.inet.SocketConnection.receive(SocketConnection.java:81)
... 33 more
Caused by: java.io.IOException: Software v hostitelskÚm poŔÝtaŔi ukonŔil vytvo°enÚ p°ipojenÝ
at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:233)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:223)
at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:367)
at org.gradle.internal.remote.internal.inet.SocketConnection$SocketInputStream.read(SocketConnection.java:196)
at com.esotericsoftware.kryo.io.Input.fill(Input.java:146)
... 40 more
Gradle status
PID STATUS INFO
8448 STOPPED (after the daemon was no longer found in the daemon registry)
21340 STOPPED (after the daemon was no longer found in the daemon registry)
21196 STOPPED (after the daemon was no longer found in the daemon registry)
13864 STOPPED (after the daemon was no longer found in the daemon registry)
13000 STOPPED (after the daemon was no longer found in the daemon registry)
11436 STOPPED (after the daemon was no longer found in the daemon registry)
16004 STOPPED (after the daemon was no longer found in the daemon registry)
100 STOPPED (after the daemon was no longer found in the daemon registry)
20892 STOPPED (after the daemon was no longer found in the daemon registry)
9040 STOPPED (after the daemon was no longer found in the daemon registry)
7040 STOPPED (after the daemon was no longer found in the daemon registry)
19132 STOPPED (after the daemon was no longer found in the daemon registry)
15952 STOPPED (after the daemon was no longer found in the daemon registry)
9212 STOPPED (after the daemon was no longer found in the daemon registry)
8048 STOPPED (after the daemon was no longer found in the daemon registry)
16924 STOPPED (after the daemon was no longer found in the daemon registry)
1772 STOPPED (after the daemon was no longer found in the daemon registry)
1908 STOPPED (after the daemon was no longer found in the daemon registry)
17888 STOPPED (after the daemon was no longer found in the daemon registry)
11312 STOPPED (after the daemon was no longer found in the daemon registry)
16276 STOPPED (after the daemon was no longer found in the daemon registry)
16848 STOPPED (after the daemon was no longer found in the daemon registry)
17204 STOPPED (after the daemon was no longer found in the daemon registry)
13616 STOPPED (after the daemon was no longer found in the daemon registry)
15436 STOPPED (after the daemon was no longer found in the daemon registry)
11152 STOPPED (after the daemon was no longer found in the daemon registry)
9220 STOPPED (after the daemon was no longer found in the daemon registry)
17944 STOPPED (after the daemon was no longer found in the daemon registry)
9520 STOPPED (by user or operating system)
Gradle info:
Starting a Gradle Daemon, 29 stopped Daemons could not be reused, use --status for details
Starting process 'Gradle build daemon'. Working directory: C:\Users\aostrozlik\.gradle\daemon\6.5.1 Command: C:\Program Files\AdoptOpenJDK\jdk-14.0.2.12-hotspot\bin\java.exe --add-opens java.base/java.util=ALL-UNNAMED --add-opens ja
va.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=windows-
1250 -Duser.country=CZ -Duser.language=cs -Duser.variant -cp C:\Users\aostrozlik\.gradle\wrapper\dists\gradle-6.5.1-bin\1m5048aptkfynhbvolwgr4ej9\gradle-6.5.1\lib\gradle-launcher-6.5.1.jar org.gradle.launcher.daemon.bootstrap.Gradle
Daemon 6.5.1
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 1.953 secs.
Removing daemon from the registry due to communication failure. Daemon information: DaemonInfo{pid=10176, address=[db41e774-f36e-45b6-a030-8c68a1a842bf port:10605, addresses:[/127.0.0.1]], state=Busy, lastBusy=1597141329670, context
=DefaultDaemonContext[uid=7c12bead-ca8c-4a3d-a1be-71e4574df391,javaHome=C:\Program Files\AdoptOpenJDK\jdk-14.0.2.12-hotspot,daemonRegistryDir=C:\Users\aostrozlik\.gradle\daemon,pid=10176,idleTimeout=10800000,priority=NORMAL,daemonOp
ts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDump
OnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=windows-1250,-Duser.country=CZ,-Duser.language=cs,-Duser.variant]}
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
big-guy commentedon Aug 12, 2020
Could you run with
--debug
and send me the build log to sterling@gradle.com with 6.4 and 6.6?Camork commentedon Sep 8, 2020
I got into the same issue, I have to reboot to resolve it, but it will come soon.
hborchardt commentedon Sep 29, 2020
I got this issue and solved it by deactivating the Windows 10 mobile hotspot internet sharing. I then reproduced it by activating the hotspot and connecting a device to it, and starting
./gradlew -S --no-daemon
to spawn a new daemon, which produced the error again.kriegaex commentedon Oct 9, 2020
OMG, Windows 10 mobile hotspot! Thank you so much! I could not start a single Gradle build for months, neither with or without daemon, because I always activate the hotspot. As soon as I deactivate the mobile hotspot, it works.
Please fix this issue ASAP, it must be a networking issue.
kriegaex commentedon Oct 9, 2020
Trusting @Drezir and his original problem report, it used to work in Gradle 6.4 and started failing in 6.4.1.
I have not checked in order to confirm that.I have just checked and can confirm it. Hence, the problem should be somewhere in this diff: v6.4.0...v6.4.1Maybe one of the maintainers wants to check the diff, it is not very big, only 11 commits. This change seems to be network-related, for instance. It is from commit 490d43b.
hborchardt commentedon Oct 14, 2020
I investigated a little more and it appears that after connecting a device to the mobile hotspot, even a
ping 127.0.0.1
on the console does not work for me. This is very strange behaviour on Microsoft's part, and very likely the reason for this bug, as @kriegaex pointed out a commit with the addition of a check if the loopback interface address is reachable. Accessing services started on 127.0.0.1 is possible though (e.g.curl http://127.0.0.1
works).I wasn't able to find any resources on this behaviour, or even how the hotspot feature exactly works.
Maybe @big-guy can figure out an alternative to the reachability check, as I don't fully understand why it was added :)
kriegaex commentedon Oct 15, 2020
Confirmed.
Confirmed.
I did not investigate, but maybe the output of
route print
helps (in German, sorry). I hope it is not information overkill for a simple problem:mahdi-malv commentedon Nov 2, 2020
Any updates on this?
Experiencing this issue with Gradle:6.5 on Windows 10 build 19041
kriegaex commentedon Nov 2, 2020
Hm, are you sure? 6.4 should work, it should start failing at 6.4.1.
mahdi-malv commentedon Nov 2, 2020
@kriegaex Sorry for typo. I meant
6.5
Likqez commentedon Nov 26, 2020
Experiencing this on
6.6
too, forced to downgrade gradle for now..andre-paulo98 commentedon Dec 5, 2020
Can also reproduce on 6.5, turning off Mobile Hotspot solves the issue.
@big-guy do you still need debug logs?
RaMui commentedon Dec 21, 2020
Can also reproduce on 6.7.1 with Windows 10 build 19041.488
37 remaining items