{"record":{"id":"9a66fea5852c2358","repo":"phacility/phabricator","slug":"s-requires-the-directory-s-to-exist-but-it-do","errorCode":null,"errorMessage":"%s requires the directory '%s' to exist, but it does not exist and could not be created. Create this directory or update '%s' in your configuration to point to an existing directory.","messagePattern":"(.+?) requires the directory '(.+?)' to exist, but it does not exist and could not be created\\. Create this directory or update '(.+?)' in your configuration to point to an existing directory\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php","lineNumber":24,"sourceCode":"  private $runDaemonsAsUser = null;\n\n  final protected function loadAvailableDaemonClasses() {\n    return id(new PhutilSymbolLoader())\n      ->setAncestorClass('PhutilDaemon')\n      ->setConcreteOnly(true)\n      ->selectSymbolsWithoutLoading();\n  }\n\n  final protected function getLogDirectory() {\n    $path = PhabricatorEnv::getEnvConfig('phd.log-directory');\n    return $this->getControlDirectory($path);\n  }\n\n  private function getControlDirectory($path) {\n    if (!Filesystem::pathExists($path)) {\n      list($err) = exec_manual('mkdir -p %s', $path);\n      if ($err) {\n        throw new Exception(\n          pht(\n            \"%s requires the directory '%s' to exist, but it does not exist \".\n            \"and could not be created. Create this directory or update \".\n            \"'%s' in your configuration to point to an existing \".\n            \"directory.\",\n            'phd',\n            $path,\n            'phd.log-directory'));\n      }\n    }\n    return $path;\n  }\n\n  private function findDaemonClass($substring) {\n    $symbols = $this->loadAvailableDaemonClasses();\n\n    $symbols = ipull($symbols, 'name');\n    $match = array();","sourceCodeStart":6,"sourceCodeEnd":42,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php#L6-L42","documentation":"Error \"%s requires the directory '%s' to exist, but it does not exist and could not be created. Create this directory or update '%s' in your configuration to point to an existing directory.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php:24 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"}