phacility/phabricator · error · PhabricatorWorkerPermanentFailureException
File "%s" does not exist.
Error message
File "%s" does not exist.
What it means
Error "File "%s" does not exist." thrown in phacility/phabricator.
Source
Thrown at src/applications/files/worker/FileDeletionWorker.php:18
<?php
final class FileDeletionWorker extends PhabricatorWorker {
private function loadFile() {
$phid = idx($this->getTaskData(), 'objectPHID');
if (!$phid) {
throw new PhabricatorWorkerPermanentFailureException(
pht('No "%s" in task data.', 'objectPHID'));
}
$file = id(new PhabricatorFileQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withPHIDs(array($phid))
->executeOne();
if (!$file) {
throw new PhabricatorWorkerPermanentFailureException(
pht('File "%s" does not exist.', $phid));
}
return $file;
}
protected function doWork() {
$file = $this->loadFile();
$engine = new PhabricatorDestructionEngine();
$engine->destroyObject($file);
}
}
View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/files/worker/FileDeletionWorker.php:18 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/ac5fa73cc733d22e.
Report an issue: GitHub.