phacility/phabricator · error · Exception
There are multiple chunks in byte range
Error message
There are multiple chunks in byte range %d - %d.
What it means
Consistency guard in loadFileChunkForUpload: exactly one chunk must cover the requested byte range, but the query matched several. This indicates server-side chunk data is inconsistent/overlapping for that range (the offending chunk rows are phlog'd), so the upload cannot proceed safely.
Solutions
- Inspect the phlog output for the overlapping chunk rows
- Restart the upload to have the server reallocate a clean chunk layout
- Have an administrator repair or clear the corrupted chunk records
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:51 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/24ff0467100b30f1.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:51
$start = (int)$start;
$end = (int)$end;
$chunks = $this->newChunkQuery($viewer, $file)
->withByteRange($start, $end)
->execute();
if (!$chunks) {
throw new Exception(
pht(
'There are no file data chunks in byte range %d - %d.',
$start,
$end));
}
if (count($chunks) !== 1) {
phlog($chunks);
throw new Exception(
pht(
'There are multiple chunks in byte range %d - %d.',
$start,
$end));
}
$chunk = head($chunks);
if ($chunk->getByteStart() != $start) {
throw new Exception(
pht(
'Chunk start byte is %d, not %d.',
$chunk->getByteStart(),
$start));
}
if ($chunk->getByteEnd() != $end) {
throw new Exception(
pht(View on GitHub (pinned to 5720a38cfe)