Project gradle setup fails everytime

Status
Duplicate
Type
Product/platform
MCreator/Linux
Priority
Normal
Issue description

whenever I try to make a project in MCreator kicks up this error:

Executing 
    Gradle task: eclipse

Build 
    info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 5844 MB, Linux, JVM 
    1.8.0_252, JAVA_HOME: /home/wolf/Desktop/MC/jdk/jre

org.gradle.tooling.GradleConnectionException: 
    Could not install Gradle distribution from 
    'https://services.gradle.org/distributions/gradle-4.10.3-bin.zip'.

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(
DistributionFactory.java:139
 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:139)

 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(
CachingToolingImplementationLoader.java:41
 
      at 
    org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:41)

 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(
SynchronizedToolingImplementationLoader.java:44
 
      at 
    org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(
LazyConsumerActionExecutor.java:147
 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:147)

 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(
LazyConsumerActionExecutor.java:129
 
      at 
    org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:129)

 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(
CancellableConsumerActionExecutor.java:45
 
      at 
    org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(
ProgressLoggingConsumerActionExecutor.java:61
 
      at 
    org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(
RethrowingErrorsConsumerActionExecutor.java:38
 
      at 
    org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(
DefaultAsyncConsumerActionExecutor.java:62
 
      at 
    org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:62)

 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(
ExecutorPolicy.java:64
 
      at 
    org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

 
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(
ManagedExecutorImpl.java:48
 
      at 
    org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1149
 
      at 
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:624
 
      at 
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(
ThreadFactoryImpl.java:56
 
      at 
    org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

 
      at java.lang.Thread.run(
Thread.java:748
 
      at java.lang.Thread.run(Thread.java:748)

Caused 
    by: java.lang.RuntimeException: Timeout of 120000 reached waiting for 
    exclusive access to file: 
    /root/.mcreator/gradle/wrapper/dists/gradle-4.10.3-bin/31t79e2qsceia4mkbojplrgx/gradle-4.10.3-bin.zip

 
      at org.gradle.wrapper.ExclusiveFileAccessManager.access(
ExclusiveFileAccessManager.java:65
 
      at 
    org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)

 
      at org.gradle.wrapper.Install.createDist(
Install.java:48
 
      at org.gradle.wrapper.Install.createDist(Install.java:48)

 
      at org.gradle.tooling.internal.consumer.DistributionInstaller.install(
DistributionInstaller.java:72
 
      at 
    org.gradle.tooling.internal.consumer.DistributionInstaller.install(DistributionInstaller.java:72)

 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(
DistributionFactory.java:133
 
      at 
    org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:133)

 
      ... 14 more

TASK 
    EXECUTION FAILED

Task 
    completed in 120424 milliseconds

 

Please help me, MC squad!

Issue comments

java.lang.RuntimeException: Timeout of 120000 reached waiting for

Look for this error on the knowledge base.

The solution to this problem and many other problems can be found in our knowledge base: https://mcreator.net/support/knowledgebase Please check the knowledge base before opening a new topic on the issue which has a known fix.



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.