Could not connect to the Gradle daemon

Published by Smirthy on Mon, 11/26/2018 - 07:39
Status
Fixed
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Hello! I am brand new to this application and have very little coding experience. The following message appears when I attempt to launch my client:

Executing gradle command: clean runClient
Build info: MCreator 1.8.1, 64-bit, 8173 MB, Windows 10 - cmd, JVM 1.8.0_172, JAVA_HOME: C:\Pylo\MCreator181\.\jdk
C:\Pylo\MCreator181\forge>gradlew -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xms625m -Xmx2048m" clean runClient 
FAILURE: Build failed with an exception.
* What went wrong:
Could not connect to the Gradle daemon.
Daemon uid: c7aac9bf-603e-4d48-8300-1ff078fbd044 with diagnostics:
Daemon pid: 600
  log file: C:\Users\Aloe\.mcreator\gradle\daemon\2.14\daemon-600.out.log
----- Last  20 lines from daemon log file - daemon-600.out.log -----
01:24:11.423 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
01:24:11.424 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
01:24:11.424 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Adding loopback multicast interface WAN Miniport (Network Monitor)-WFP Native MAC Layer LightWeight Filter-0000
01:24:11.424 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
01:24:11.425 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
01:24:11.426 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Is this a multicast interface? true
01:24:11.427 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Adding loopback multicast interface WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
01:24:11.432 [DEBUG] [org.gradle.internal.remote.internal.inet.TcpIncomingConnector] Listening on [f14482f7-29a8-4848-ae00-9099c345332a port:50778, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]].
01:24:11.435 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] Daemon starting at: Mon Nov 26 01:24:11 CST 2018, with address: [f14482f7-29a8-4848-ae00-9099c345332a port:50778, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
01:24:11.435 [INFO] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Advertising the daemon address to the clients: [f14482f7-29a8-4848-ae00-9099c345332a port:50778, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]]
01:24:11.436 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Advertised daemon context: DefaultDaemonContext[uid=c7aac9bf-603e-4d48-8300-1ff078fbd044,javaHome=C:\Pylo\MCreator181\jdk,daemonRegistryDir=C:\Users\Aloe\.mcreator\gradle\daemon,pid=600,idleTimeout=120000,daemonOpts=-Xms625m,-Xmx2048m,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]
01:24:11.437 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Storing daemon address: [f14482f7-29a8-4848-ae00-9099c345332a port:50778, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], context: DefaultDaemonContext[uid=c7aac9bf-603e-4d48-8300-1ff078fbd044,javaHome=C:\Pylo\MCreator181\jdk,daemonRegistryDir=C:\Users\Aloe\.mcreator\gradle\daemon,pid=600,idleTimeout=120000,daemonOpts=-Xms625m,-Xmx2048m,-Dfile.encoding=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]
01:24:11.450 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
01:24:11.452 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
01:24:11.528 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
01:24:11.529 [LIFECYCLE] [org.gradle.launcher.daemon.server.Daemon] Daemon server started.
01:24:11.532 [DEBUG] [org.gradle.launcher.daemon.bootstrap.DaemonStartupCommunication] Completed writing the daemon greeting. Closing streams...
01:24:11.538 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] stopOnExpiration() called on daemon
01:24:11.539 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] awaitExpiration() called on daemon
01:24:11.539 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
----- End of the daemon log -----
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
C:\Pylo\MCreator181\forge>
Task completed with return code 0 in 22817 milliseconds

The issue came out of nowhere. I did a factory reset and completely uninstalled and reinstalled, and neither worked. Please help!

Issue comments

I suggest you to reboot your computer and try again.

This should fix this error. If it does not, go to your user folder, go into .mcreator folder and delete gradle folder inside this folder and try again.

You could also try disabling Firewall as this might be the issue too.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.