gradle/gradle · error · DaemonUnavailableException

This daemon is broken and will stop.

Error message

This daemon is broken and will stop.

What it means

Error "This daemon is broken and will stop." thrown in gradle/gradle.

Source

Thrown at platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java:355

                try {
                    condition.await();
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
            LOGGER.debug("Command execution: finished waiting for {}. Result {} with state {}", currentCommandExecution, result, state);
            if (result instanceof Throwable) {
                throw UncheckedException.throwAsUncheckedException((Throwable) result);
            }
            if (result != null) {
                return;
            }
            switch (state) {
                case Stopped:
                case ForceStopped:
                    throw new DaemonStoppedException(stopReason);
                case Broken:
                    throw new DaemonUnavailableException("This daemon is broken and will stop.");
                default:
                    throw new IllegalStateException("Daemon is in unexpected state: " + state);
            }
        } finally {
            lock.unlock();
        }
    }

    private void onCommandFailed(Throwable failure) {
        lock.lock();
        try {
            result = failure;
            condition.signalAll();
        } finally {
            lock.unlock();
        }
    }

View on GitHub (pinned to 534f27719b)

Solutions

  1. Check the daemon log for the failure that marked the daemon broken.
  2. Stop all daemons with 'gradle --stop' and retry; a fresh daemon will be started.
  3. If the problem persists, run with --no-daemon and investigate memory or plugin issues crashing the daemon.

When it happens

Trigger: The daemon detects an unrecoverable internal failure and transitions to a broken state before stopping.

Common situations: Out-of-memory errors, internal invariant violations, or failed assumptions inside daemon execution.


AI-assisted analysis of gradle/gradle@534f27719b (2026-08-22). Data as JSON: /api/errors/b3e3fe0d5c6a4b27. Report an issue: GitHub.