{"record":{"id":"f83f84fc9cef3d87","repo":"phacility/phabricator","slug":"no-storage-engines-are-available","errorCode":null,"errorMessage":"No storage engines are available.","messagePattern":"No storage engines are available\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/management/PhabricatorFilesManagementEnginesWorkflow.php","lineNumber":18,"sourceCode":"<?php\n\nfinal class PhabricatorFilesManagementEnginesWorkflow\n  extends PhabricatorFilesManagementWorkflow {\n\n  protected function didConstruct() {\n    $this\n      ->setName('engines')\n      ->setSynopsis(pht('List available storage engines.'))\n      ->setArguments(array());\n  }\n\n  public function execute(PhutilArgumentParser $args) {\n    $console = PhutilConsole::getConsole();\n\n    $engines = PhabricatorFile::buildAllEngines();\n    if (!$engines) {\n      throw new Exception(pht('No storage engines are available.'));\n    }\n\n    foreach ($engines as $engine) {\n      $console->writeOut(\n        \"%s\\n\",\n        $engine->getEngineIdentifier());\n    }\n\n    return 0;\n  }\n\n}\n","sourceCodeStart":1,"sourceCodeEnd":31,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/management/PhabricatorFilesManagementEnginesWorkflow.php#L1-L31","documentation":"Fires in the files 'engines' CLI workflow when PhabricatorFile::buildAllEngines() returns an empty set: no chunk-engine or blob storage engine class is installed/enabled for this Phabricator instance. It is a configuration-level failure — file storage cannot proceed without at least one engine, so even the listing command aborts.","triggerScenarios":"Thrown at src/applications/files/management/PhabricatorFilesManagementEnginesWorkflow.php:18 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the local disk engine class is reachable and not disabled in configuration","Clear the class auto-discovery cache (phabricator/cache purge) if engine classes were recently added or moved","Review any custom engine registration code that may have stopped the engines from being built"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}