{"record":{"id":"238e3739f177ed5a","repo":"phacility/phabricator","slug":"this-install-is-configured-in-cluster-mode-but-al","errorCode":null,"errorMessage":"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.","messagePattern":"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\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php","lineNumber":82,"sourceCode":"\n    $services = id(new AlmanacServiceQuery())\n      ->setViewer(PhabricatorUser::getOmnipotentUser())\n      ->withServiceTypes(\n        array(\n          AlmanacClusterRepositoryServiceType::SERVICETYPE,\n        ))\n      ->needProperties(true)\n      ->execute();\n    if ($services) {\n      // Filter out services which do not permit new allocations.\n      foreach ($services as $key => $possible_service) {\n        if ($possible_service->getAlmanacPropertyValue('closed')) {\n          unset($services[$key]);\n        }\n      }\n\n      if (!$services) {\n        throw new Exception(\n          pht(\n            'This install is configured in cluster mode, but all available '.\n            'repository cluster services are closed to new allocations. '.\n            'At least one service must be open to allow new allocations to '.\n            'take place.'));\n      }\n\n      shuffle($services);\n      $service = head($services);\n\n      $repository->setAlmanacServicePHID($service->getPHID());\n    }\n\n    return $repository;\n  }\n\n  protected function newObjectQuery() {\n    return new PhabricatorRepositoryQuery();","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php#L64-L100","documentation":"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.","triggerScenarios":"Thrown at src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}