我在安装phabricator时非常陌生,并且在运行守护程序时遇到问题。
当我运行sudo ./bin/phd start
时,我收到此错误。
Usage Exception: Daemons are configured to run as user "phd" in
configuration option `phd.user`, but the current user is "root" and `phd`
was unable to switch to the correct user with `sudo`. Command output:
Command failed with error #255!
COMMAND
exec sudo -En -u 'phd' -- ./phd-daemon
STDOUT
(empty)
STDERR
[2016-04-23 18:50:09] EXCEPTION: (Exception) Specified daemon PID directory
('/var/tmp/phd/pid') does not exist or is not writable by the daemon user!
at [<phutil>/src/daemon/PhutilDaemonOverseer.php:114]
arcanist(head=master, ref.master=a2ab38df78a9), phabricator(head=master,
ref.master=00885edc47d4), phutil(head=master, ref.master=b8058f6e29ba)
#0 PhutilDaemonOverseer::__construct(array) called at
[<phabricator>/scripts/daemon/launch_daemon.php:11]
我正在遵循此安装指南。 https://gist.github.com/sparrc/b4eff48a3e7af8411fc1
谢谢
最佳答案
您在计算机上创建了phd用户吗?
如果不这样做,请创建它。
如果这样做,请尝试首先切换到phd或在命令前加上sudo -u phd
来运行该命令。
关于ubuntu - phd无法使用sudo切换到正确的用户,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36810000/