phacility/phabricator · error · Exception
Git LFS operation " " is not supported by this server.
Error message
Git LFS operation "%s" is not supported by this server.
What it means
Operation whitelist guard in executeRepositoryOperations: the LFS operation argument is neither 'upload' nor 'download', the only operations this server implements. Note the guard deliberately skips write-access checks; this is purely an unsupported-operation rejection for an unknown/mistyped LFS verb.
Solutions
- Use only 'upload' or 'download' as the LFS operation
- Upgrade the client/server pair so both support the same LFS operation set
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:56 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/77313e6c6ce5eabb.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/diffusion/gitlfs/DiffusionGitLFSAuthenticateWorkflow.php:56
'Expected `git-lfs-authenticate <path> <operation>`, but received '.
'too few arguments.'));
}
return $argv[$position];
}
protected function executeRepositoryOperations() {
$operation = $this->getLFSOperationArgument();
// NOTE: We aren't checking write access here, even for "upload". The
// HTTP endpoint should be able to do that for us.
switch ($operation) {
case 'upload':
case 'download':
break;
default:
throw new Exception(
pht(
'Git LFS operation "%s" is not supported by this server.',
$operation));
}
$repository = $this->getRepository();
if (!$repository->isGit()) {
throw new Exception(
pht(
'Repository "%s" is not a Git repository. Git LFS is only '.
'supported for Git repositories.',
$repository->getDisplayName()));
}
if (!$repository->canUseGitLFS()) {
throw new Exception(
pht('Git LFS is not enabled for this repository.'));View on GitHub (pinned to 5720a38cfe)