How to change the listen ip address of gradle daemon or processes. It is always listening and advertising loopback address, which is not reachable from other containers, to the clients. This is causing issue timeouts when processes that are running on separate containers waiting for the file/lock which is held by other process. I want to change the bind address to be private ip address of the container so that processes can ping others for releasing the locks.
Logs:
2024-10-01T05:56:50.763+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:56:53.025+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:56:54.585+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:56:57.354+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:56:59.076+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:56:59.564+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-10-01T05:56:59.572+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-10-01T05:56:59.579+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-10-01T05:56:59.590+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
2024-10-01T05:56:59.597+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2024-10-01T05:56:59.611+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2024-10-01T05:57:00.276+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 318, lockId: -7497248990956579849). Pinged owner at port 39775
2024-10-01T05:57:00.297+0000 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
2024-10-01T05:57:00.297+0000 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
2024-10-01T05:57:00.347+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-10-01T05:57:00.348+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-10-01T05:57:00.348+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-10-01T05:57:00.349+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-10-01T05:57:00.349+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Gradle could not start your build.
2024-10-01T05:57:00.349+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not create service of type ResourceSnapshotterCacheService using GradleUserHomeServices.createResourceSnapshotterCacheService().
2024-10-01T05:57:00.363+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Timeout waiting to lock file hash cache (/home/gradle/.gradle/caches/6.9/fileHashes). It is currently in use by another Gradle instance.
2024-10-01T05:57:00.364+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Owner PID: 318
2024-10-01T05:57:00.364+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Our PID: 316
2024-10-01T05:57:00.364+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Owner Operation:
2024-10-01T05:57:00.367+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Our operation:
2024-10-01T05:57:00.367+0000 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Lock file: /home/gradle/.gradle/caches/6.9/fileHashes/fileHashes.lock