Blocking Problem to Import a Gradle Project in Eclipse : Timeout Waiting to connect to Gradle Daemon"


(naddoucha80) #1

From Eclipse, I try to import a Gradle Project , When I do “refresh Model” and after a time it posts a window to say that : " Tiemout waiting to connect to Gradle Daemon" .

Can you help Me ? Here are the Log errors : ===================================== 09:18:11.294 [INFO] [org.gradle.launcher.daemon.bootstrap.DaemonMain] Daemon process started. 09:18:11.326 [INFO] [org.gradle.launcher.daemon.server.Daemon] start() called on daemon - DefaultDaemonContext[javaHome=/toolbox/public/apps/Java/jdk1.6.0_21,daemonRegistryDir=/home/.gradle/daemon,pid=24506,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m] 09:18:11.327 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonServerConnector] Starting daemon server connector. 09:18:11.333 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpIncomingConnector] Listening on [c9748231-592c-48d2-a425-6dac529860ca port:44498, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]. 09:18:11.338 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] updating lastActivityAt to 1343891891338 09:18:11.339 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] Daemon starting at: Thu Aug 02 09:18:11 CEST 2012, with address: [c9748231-592c-48d2-a425-6dac529860ca port:44498, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]] 09:18:11.340 [INFO] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Advertising the daemon address to the clients: [c9748231-592c-48d2-a425-6dac529860ca port:44498, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]] 09:18:11.341 [DEBUG] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Advertised daemon context: DefaultDaemonContext[javaHome=/toolbox/public/apps/Java/jdk1.6.0_21,daemonRegistryDir=/home/.gradle/daemon,pid=24506,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m] 09:18:11.344 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 09:18:11.355 [ERROR] [system.err]

09:18:11.356 [ERROR] [system.err] FAILURE: Build aborted because of an internal error. 09:18:11.357 [ERROR] [system.err]

09:18:11.357 [ERROR] [system.err] * What went wrong: 09:18:11.358 [ERROR] [system.err] Build aborted because of an unexpected internal error. Please file an issue at: http://www.gradle.org. 09:18:11.358 [ERROR] [system.err]

09:18:11.359 [ERROR] [system.err] * Try: 09:18:11.359 [ERROR] [system.err] Run with --debug option to get additional debug info. 09:18:11.360 [ERROR] [system.err]

09:18:11.361 [ERROR] [system.err] * Exception is: 09:18:11.362 [ERROR] [system.err] org.gradle.internal.UncheckedException: java.io.IOException: No locks available 09:18:11.363 [ERROR] [system.err] at org.gradle.internal.UncheckedException.asUncheckedException(UncheckedException.java:33) 09:18:11.363 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:71) 09:18:11.363 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:56) 09:18:11.364 [ERROR] [system.err] at org.gradle.cache.internal.OnDemandFileAccess.writeToFile(OnDemandFileAccess.java:43) 09:18:11.364 [ERROR] [system.err] at org.gradle.cache.internal.SimpleStateCache.update(SimpleStateCache.java:54) 09:18:11.365 [ERROR] [system.err] at org.gradle.launcher.daemon.registry.PersistentDaemonRegistry.store(PersistentDaemonRegistry.java:149) 09:18:11.365 [ERROR] [system.err] at org.gradle.launcher.daemon.server.DomainRegistryUpdater.onStart(DomainRegistryUpdater.java:65) 09:18:11.366 [ERROR] [system.err] at org.gradle.launcher.daemon.server.Daemon$2.run(Daemon.java:133) 09:18:11.366 [ERROR] [system.err] at org.gradle.launcher.daemon.server.DaemonStateCoordinator.start(DaemonStateCoordinator.java:88) 09:18:11.367 [ERROR] [system.err] at org.gradle.launcher.daemon.server.Daemon.start(Daemon.java:166) 09:18:11.367 [ERROR] [system.err] at org.gradle.launcher.daemon.bootstrap.DaemonMain.doAction(DaemonMain.java:124) 09:18:11.367 [ERROR] [system.err] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:53) 09:18:11.368 [ERROR] [system.err] at org.gradle.launcher.exec.EntryPoint$1.execute(EntryPoint.java:51) 09:18:11.368 [ERROR] [system.err] at org.gradle.launcher.exec.Execution.execute(Execution.java:28) 09:18:11.369 [ERROR] [system.err] at org.gradle.launcher.exec.EntryPoint.run(EntryPoint.java:39) 09:18:11.369 [ERROR] [system.err] at org.gradle.launcher.daemon.bootstrap.DaemonMain.main(DaemonMain.java:71) 09:18:11.370 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 09:18:11.370 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 09:18:11.371 [ERROR] [system.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 09:18:11.371 [ERROR] [system.err] at java.lang.reflect.Method.invoke(Method.java:597) 09:18:11.372 [ERROR] [system.err] at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:51) 09:18:11.372 [ERROR] [system.err] at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:33) 09:18:11.372 [ERROR] [system.err] at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22) 09:18:11.373 [ERROR] [system.err] Caused by: java.io.IOException: No locks available 09:18:11.373 [ERROR] [system.err] at sun.nio.ch.FileChannelImpl.lock0(Native Method) 09:18:11.374 [ERROR] [system.err] at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:881) 09:18:11.374 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.lockRegion(DefaultFileLockManager.java:287) 09:18:11.375 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.lockInformationRegion(DefaultFileLockManager.java:282) 09:18:11.375 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.lock(DefaultFileLockManager.java:254) 09:18:11.376 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.(DefaultFileLockManager.java:98) 09:18:11.376 [ERROR] [system.err] at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:68) 09:18:11.376 [ERROR] [system.err] … 21 more 09:18:11.377 [ERROR] [system.err]

09:18:11.378 [INFO] [org.gradle.launcher.daemon.bootstrap.DaemonMain] Daemon[pid = 24506] finishing


(Laurence Toenjes) #2

Yesterday I had a similar problem when using the Eclipse based STS (SpringSource STS) on Windows (worked fine on OS X).

This solution worked for me (for the Gradle 1.0 release):

https://issuetracker.springsource.com/browse/STS-2287

… Tom Cawley added a comment - 15/Mar/12 12:41 PM I’ve gotten it to work if I change the Gradle Distribution under Window->Preferences->Gradle. Change from ‘Use Gradle wrapper’s default’ to ‘Folder’. Point to where you have Gradle unzipped locally. …