{"record":{"id":"bc8c8816f231f8a3","repo":"phacility/phabricator","slug":"failed-to-load-file-object-for-git-lfs-ref-s","errorCode":null,"errorMessage":"Failed to load file object for Git LFS ref \"%s\"!","messagePattern":"Failed to load file object for Git LFS ref \"(.+?)\"!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/controller/DiffusionBrowseController.php","lineNumber":1045,"sourceCode":"    if ($messages) {\n      $corpus->setInfoView(\n        id(new PHUIInfoView())\n          ->setSeverity($severity)\n          ->setErrors($messages));\n    }\n\n    return $corpus;\n  }\n\n  private function loadGitLFSFile(PhabricatorRepositoryGitLFSRef $ref) {\n    $viewer = $this->getViewer();\n\n    $file = id(new PhabricatorFileQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($ref->getFilePHID()))\n      ->executeOne();\n    if (!$file) {\n      throw new Exception(\n        pht(\n          'Failed to load file object for Git LFS ref \"%s\"!',\n          $ref->getObjectHash()));\n    }\n\n    return $file;\n  }\n\n}\n","sourceCodeStart":1027,"sourceCodeEnd":1055,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/controller/DiffusionBrowseController.php#L1027-L1055","documentation":"Data-integrity failure in DiffusionBrowseController::loadGitLFSFile: the Git LFS ref row exists, but the file object recorded on the ref (ref->getFilePHID()) cannot be loaded by PhabricatorFileQuery. The stored LFS blob for the ref's object hash is missing from file storage — typically because the file expired, was garbage-collected, or never finished uploading — so the LFS-backed content cannot be displayed.","triggerScenarios":"Thrown at src/applications/diffusion/controller/DiffusionBrowseController.php:1045 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-push the LFS object so the ref's file is recreated in storage","Check the Files application for the file PHID on the LFS ref to confirm whether it was deleted or expired","If LFS files expire too quickly, adjust the file TTL policy for LFS blobs in configuration"],"exampleFix":null,"handlingStrategy":"fallback","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"}