phacility/phabricator · error · PhutilArgumentUsageException
Local path " " is not writable. This file must be writable…
Error message
Local path "%s" is not writable. This file must be writable so that "bin/config" can store configuration.
What it means
Wrap-and-rethrow in bin/config set execute(): writing the local configuration file threw a FilesystemException because the local config path is not writable by the CLI user. The message includes the path that must be made writable.
Solutions
- Make the local config file/directory writable by the user running bin/config (often the webserver or phd user)
- Check file ownership and permissions on the reported path
- Run the command as a user with write access, e.g. via sudo -u <webuser>
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:150 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/4af90327df8d63d7.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/management/PhabricatorConfigManagementSetWorkflow.php:150
$config_entry->setValue($value);
// If the entry has been deleted, resurrect it.
$config_entry->setIsDeleted(0);
$config_entry->save();
$write_message = pht(
'Wrote configuration key "%s" to database storage.',
$key);
} else {
$config_source = new PhabricatorConfigLocalSource();
$local_path = $config_source->getReadablePath();
try {
$config_source->setKeys(array($key => $value));
} catch (FilesystemException $ex) {
throw new PhutilArgumentUsageException(
pht(
'Local path "%s" is not writable. This file must be writable '.
'so that "bin/config" can store configuration.',
Filesystem::readablePath($local_path)));
}
$write_message = pht(
'Wrote configuration key "%s" to local storage (in file "%s").',
$key,
$local_path);
}
echo tsprintf(
"<bg:green>** %s **</bg> %s\n",
pht('DONE'),
$write_message);
return 0;View on GitHub (pinned to 5720a38cfe)