phacility/phabricator · error · PhutilAggregateException
All storage engines failed to write file:
Error message
All storage engines failed to write file:
What it means
Aggregate write failure in buildFromFileData: every eligible storage engine threw while attempting to write the file (each exception was phlog'd and collected). No engine succeeded, so the file could not be persisted.
Solutions
- Check the phlog output for each per-engine exception to find the root cause (permissions, credentials, disk full)
- Verify the storage backend is reachable and correctly configured
- Fix the failing engine or add a healthy fallback engine
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/applications/files/storage/PhabricatorFile.php:404 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/418f357a47381963.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/files/storage/PhabricatorFile.php:404
// We stored the file somewhere so stop trying to write it to other
// places.
break;
} catch (PhabricatorFileStorageConfigurationException $ex) {
// If an engine is outright misconfigured (or misimplemented), raise
// that immediately since it probably needs attention.
throw $ex;
} catch (Exception $ex) {
phlog($ex);
// If an engine doesn't work, keep trying all the other valid engines
// in case something else works.
$exceptions[$engine_class] = $ex;
}
}
if (!$data_handle) {
throw new PhutilAggregateException(
pht('All storage engines failed to write file:'),
$exceptions);
}
$file->setByteSize(strlen($data));
$hash = self::hashFileContent($data);
$file->setContentHash($hash);
$file->setStorageEngine($engine_identifier);
$file->setStorageHandle($data_handle);
$file->setIntegrityHash($integrity_hash);
$file->readPropertiesFromParameters($params);
if (!$file->getMimeType()) {
$tmp = new TempFile();View on GitHub (pinned to 5720a38cfe)