phacility/phabricator · error · Exception
This install is configured in cluster mode, but all…
Error message
This install is configured in cluster mode, but all available repository cluster services are closed to new allocations. At least one service must be open to allow new allocations to take place.
What it means
Error "This install is configured in cluster mode, but all available repository cluster services are closed to new allocations. At least one service must be open to allow new allocations to take place." thrown in phacility/phabricator.
Solutions
- Open at least one repository cluster service for new allocations in Almanac
- Add a new Almanac cluster repository service to the cluster
- Alternatively, do not run in cluster/cluster-repository mode if clustering is not required
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php:82 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21).
Data as JSON: /api/errors/238e3739f177ed5a.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php:82
$services = id(new AlmanacServiceQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withServiceTypes(
array(
AlmanacClusterRepositoryServiceType::SERVICETYPE,
))
->needProperties(true)
->execute();
if ($services) {
// Filter out services which do not permit new allocations.
foreach ($services as $key => $possible_service) {
if ($possible_service->getAlmanacPropertyValue('closed')) {
unset($services[$key]);
}
}
if (!$services) {
throw new Exception(
pht(
'This install is configured in cluster mode, but all available '.
'repository cluster services are closed to new allocations. '.
'At least one service must be open to allow new allocations to '.
'take place.'));
}
shuffle($services);
$service = head($services);
$repository->setAlmanacServicePHID($service->getPHID());
}
return $repository;
}
protected function newObjectQuery() {
return new PhabricatorRepositoryQuery();View on GitHub (pinned to 5720a38cfe)