Gradle stuck: waiting to acquire shared lock on daemon addresses registry

2022-08-02T10:20:17.629+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-02T10:20:17.629+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-02T10:20:17.630+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2022-08-02T10:20:21.033+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 22: received class org.gradle.launcher.daemon.protocol.ForwardInput
2022-08-02T10:20:21.033+0800 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 22: Received IO message from client: org.gradle.launcher.daemon.protocol.ForwardInput@b67e2ea
2022-08-02T10:20:21.033+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 22: received class org.gradle.launcher.daemon.protocol.ForwardInput
2022-08-02T10:20:21.033+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Writing forwarded input on daemon’s stdin.
2022-08-02T10:20:21.033+0800 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 22: Received IO message from client: org.gradle.launcher.daemon.protocol.ForwardInput@4c9d372e
2022-08-02T10:20:21.034+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Writing forwarded input on daemon’s stdin.
2022-08-02T10:20:21.233+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 22: received class org.gradle.launcher.daemon.protocol.ForwardInput
2022-08-02T10:20:21.234+0800 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 22: Received IO message from client: org.gradle.launcher.daemon.protocol.ForwardInput@1e60d5e5
2022-08-02T10:20:21.234+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Writing forwarded input on daemon’s stdin.
2022-08-02T10:20:21.391+0800 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 22: received class org.gradle.launcher.daemon.protocol.ForwardInput
2022-08-02T10:20:21.391+0800 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 22: Received IO message from client: org.gradle.launcher.daemon.protocol.ForwardInput@290f2a7
2022-08-02T10:20:21.392+0800 [DEBUG] [org.gradle.launcher.daemon.server.exec.ForwardClientInput] Writing forwarded input on daemon’s stdin.
2022-08-02T10:20:27.633+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2022-08-02T10:20:27.633+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2022-08-02T10:20:27.634+0800 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
Who can help me??
JDK: Azul Zulu 17.0.2 Version: 7.4.2

Hello @mmmjjkx

not sure if the daemon is freezed or what but could you try to kill it using the following command

gradle --stop

then
jps it should not show gradle daemon

hope that help and have a nice day :slight_smile:

This is useless.This is also true when I create a new project.

not sure what is your os if it rhel or any of it’s derivative then there issue related to it