I'm in the process of attempting a first-time install of Phabricator on a new dedicated server, and am working through configuration of the aphlict server (Browser Notifications).
After carefully following the instructions at https://secure.phabricator.com/book/phabricator/article/notifications/ (and rechecking them multiple times before coming here), along with discovering that the aphlict server needs to be started by my regular user rather than su root, I'm getting an exception that I have been unable to figure out for a few days. Note that it seemed to start up fine before I adjusted the location of the log file as described below. It was only after I had it initially running that I discovered the default location of the log file was outside of where we organize website-related logs. I then tried to stop it with my regular user, and was hit with an exception that I failed to save. I switched to su root, stopped it (seemed to stop without issue), adjusted the log file line as shown below, and then switched back to my regular user to restart it. That's when the phun began.
I copied `aphlict.custom.json` into the same directory as the `default` and adjusted only the log file location line as follows:
```{
"servers": [
{
"type": "client",
"port": 22280,
"listen": "0.0.0.0",
"ssl.key": null,
"ssl.cert": null,
"ssl.chain": null
},
{
"type": "admin",
"port": 22281,
"listen": "127.0.0.1",
"ssl.key": null,
"ssl.cert": null,
"ssl.chain": null
}
],
"logs": [
{
"path": "/var/log/httpd/dev/aphlict.log"
}
],
"pidfile": "/var/tmp/aphlict/pid/aphlict.pid"
}```
Traceback after adjusting log file line above:
```/phabricator]$ bin/aphlict start
Reading configuration from: phabricator/conf/aphlict/aphlict.custom.json
[2018-06-04 02:21:00] ERROR 2: vsprintf(): Too few arguments at [/var/www/dev/lab.lti.org/public/libphutil/src/internationalization/PhutilTranslator.php:136]
arcanist(head=master, ref.master=d581c453b83c), phabricator(head=master, ref.master=5bcca675e1c7), phutil(head=master, ref.master=20eff1c8d14f)
#0 vsprintf(string, array) called at [<phutil>/src/internationalization/PhutilTranslator.php:136]
#1 PhutilTranslator::translate(string, string, string)
#2 call_user_func_array(array, array) called at [<phutil>/src/internationalization/pht.php:17]
#3 pht(string, string, string) called at [<phabricator>/src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php:220]
#4 PhabricatorAphlictManagementWorkflow::parseLaunchArguments(PhutilArgumentParser) called at [<phabricator>/src/applications/aphlict/management/PhabricatorAphlictManagementStartWorkflow.php:14]
#5 PhabricatorAphlictManagementStartWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:441]
#6 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:333]
#7 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/support/aphlict/server/aphlict_launcher.php:23]
Usage Exception: [Invalid Translation!] Failed to create directory "%s" for specified log file (with index "%s"). You should manually create this directory or choose a different logfile location. %s```
The traceback info suggests that it is looking to create a directory that already exists (e.g. `/var/log/httpd/dev/`, or maybe something else, since I can't work out the actual cause of this error).
Any advice you can shine on this situation would be greatly appreciated.