-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle an existing connection was forcibly closed by the remote host #14094
Comments
Could you run with |
I got into the same issue, I have to reboot to resolve it, but it will come soon. |
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 |
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. |
Trusting @Drezir and his original problem report, it used to work in Gradle 6.4 and started failing in 6.4.1. Maybe 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. |
I investigated a little more and it appears that after connecting a device to the mobile hotspot, even a Maybe @big-guy can figure out an alternative to the reachability check, as I don't fully understand why it was added :) |
Confirmed.
Confirmed.
I did not investigate, but maybe the output of
|
Any updates on this? |
Hm, are you sure? 6.4 should work, it should start failing at 6.4.1. |
@kriegaex Sorry for typo. I meant |
Experiencing this on |
Can also reproduce on 6.5, turning off Mobile Hotspot solves the issue. |
Can also reproduce on 6.7.1 with Windows 10 build 19041.488 |
Reproduced with gradle 6.8.1 |
Same with versions 6.7.x and 6.8.x |
The only solution for now is to either:
|
Reproduced with Gradle 6.8.1 and Windows 10 19041.867 |
I wonder why users are expected to make complicated local configurations. Why don't the maintainers just revert that commit I found 5+ months ago? It did not add much value anyway. Until you find a way to do the network check in a more precise way, just revert to the old behaviour. Using the Win10 local WiFi hotspot is a very common thing. Because of that I am still using Gradle 6.4 because my upgrade path is blocked. Why is nobody taking care of this very simple issue? |
@jjohannes bumb |
As the owner and founder of the world's most notorious tech company which is Google of course, I agree with you. +1 |
@kriegaex @prettydev For me, it's fixed in I am running Windows 10 Version 2004 Build 19041.928 |
@scrouthtv, I can confirm after a quick test that in 7.0 it seems to work. The reason is simple: The reachability check has been reverted, just like I requested. The corresponding commit 83f4323 just did not mention this issue in its commit message. I am not acquainted with the Gradle release strategy. Does the 7.0 release mean that there will be no more 6.x maintenance releases in which this could be back-ported? If so, this issue could be closed. Otherwise, I am still requesting back-ports to all affected release branches still maintained. |
Me neither, I'm just trying to write an Android app :( Just wanted to give a quick heads-up if anyone else faces this issue. |
Another tiny bit of information: While
Maybe using |
Have feedbacked to microsoft |
Was having the same problem without hotspot(probably because of ICS), but after some research was able to fix it by forcing java to use IPv4 by setting |
Win11 fixed loopback problem with hotspot. |
I can confirm that this approach also works with Windows 10 Mobile Hotspot. Because in IntelliJ IDEA there is no way to set environment variables or JVM parameters for the Gradle runner directly, I had to set a system environment variable. I am still hoping for a Gradle 6.x bugfix. Gradle 7 proves that reverting the commit I found fixes the problem, so why not port it back to Grade 6.x, reinstating the situation in 6.4 which broke in 6.4.1? |
I can also confirm this works without needing to disable Windows 10 Hotspot, which is what I needed. Thanks. |
win11 also encountered this problem, did not open the hotspot |
Perhaps not related to this issue. |
Fixed in |
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:
Only highlighted changes I have:
Gradle status
Gradle info:
The text was updated successfully, but these errors were encountered: