Page MenuHomeDevCentral

Upgrade Aphlict image to new Phabricator configuration
Closed, ResolvedPublic

Description

Two things are needed to migrate:

  • Remove admin-host argument
  • Add a configuration file

Reference

https://secure.phabricator.com/T10794

Configuration

/opt/phabricator/conf/aphlict/aphlict.custom.json
{
  "servers": [
    {
      "type": "client",
      "port": 22280,
      "listen": "0.0.0.0",
      "ssl.key": null,
      "ssl.cert": null
    },
    {
      "type": "admin",
      "port": 22281,
      "listen": "0.0.0.0",
      "ssl.key": null,
      "ssl.cert": null
    }
  ],
  "logs": [
    {
      "path": "/var/log/aphlict.log"
    }
  ],
  "pidfile": "/var/run/aphlict.pid"
}

Event Timeline

dereckson triaged this task as High priority.May 20 2016, 18:05
dereckson created this task.
$ docker logs aphlict
fs.js:634
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

TypeError: path must be a string or Buffer
    at TypeError (native)
    at Object.fs.openSync (fs.js:634:18)
    at Object.fs.readFileSync (fs.js:502:33)
    at parse_config (/opt/phabricator/support/aphlict/server/aphlict_server.js:31:17)
    at Object.<anonymous> (/opt/phabricator/support/aphlict/server/aphlict_server.js:41:14)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)