phacility/phabricator · error · PhutilArgumentUsageException
You are trying to run a daemon as a nonstandard user, and `%
Error message
You are trying to run a daemon as a nonstandard user, and `%s` was not able to `%s` to the correct user. The daemons are configured to run as "%s", but the current user is "%s". Use `%s` to run as a different user, pass `%s` to ignore this warning, or edit `%s` to change the configuration.
What it means
Error "You are trying to run a daemon as a nonstandard user, and `%s` was not able to `%s` to the correct user. The daemons are configured to run as "%s", but the current user is "%s". Use `%s` to run as a different user, pass `%s` to ignore this warning, or edit `%s` to change the configuration." thrown in phacility/phabricator.
Source
Thrown at src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php:92
$run_as_current_user = false) {
// Convert any shorthand classnames like "taskmaster" into proper class
// names.
foreach ($daemons as $key => $daemon) {
$class = $this->findDaemonClass($daemon['class']);
$daemons[$key]['class'] = $class;
}
$console = PhutilConsole::getConsole();
if (!$run_as_current_user) {
// Check if the script is started as the correct user
$phd_user = PhabricatorEnv::getEnvConfig('phd.user');
$current_user = posix_getpwuid(posix_geteuid());
$current_user = $current_user['name'];
if ($phd_user && $phd_user != $current_user) {
if ($debug) {
throw new PhutilArgumentUsageException(
pht(
"You are trying to run a daemon as a nonstandard user, ".
"and `%s` was not able to `%s` to the correct user. \n".
'The daemons are configured to run as "%s", '.
'but the current user is "%s". '."\n".
'Use `%s` to run as a different user, pass `%s` to ignore this '.
'warning, or edit `%s` to change the configuration.',
'phd',
'sudo',
$phd_user,
$current_user,
'sudo',
'--as-current-user',
'phd.user'));
} else {
$this->runDaemonsAsUser = $phd_user;
$console->writeOut(pht('Starting daemons as %s', $phd_user)."\n");
}View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php:92 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/dd760deea09283d9.
Report an issue: GitHub.