Move Phabricator to Code
Closed, ResolvedPublic

Description

This is a task to track the progress of moving Phabricator to code.kde.org.

bgupta created this task.Jun 28 2016, 8:04 AM
Restricted Application added a subscriber: sysadmin. · View Herald TranscriptJun 28 2016, 8:04 AM

The status of the move that was attempted by me last weekend:

  • Wanted nginx for http/2
  • Fetched nginx from upstream nginx debian repository
  • Turns out OpenSSL in Debian 8 is too old to support the ALPN upgrade negotiation protocol, and Chrome 51 has disabled the older NPN negotiation mechanism. Chrome cannot access site via H2, but Firefox and Safari can
  • Fetched mariadb/10.1 (latest stable) from upstream repository.
  • Fetched node/4.4-lts from upstream nodesource debian repository (Node needed by aphlict)
  • php5-fpm configured to use a TCP socket listening only on 127.0.0.1:9000, because I couldn't figure out the permissions with the unix domain socket (nginx would refuse to connect with permission denied errors). Surprisingly I'd never faced permission erros with unix domain sockets on my local setup with hhvm.
  • Files, db and configs were rsynced over.
  • Configs were edited appropriately.
  • Server was brought up successfully.
  • The moved Phabricator was working successfully with one issue, described below.

Repo path move

On the old server, repos are stored at /var/repo. On the new server I placed the repos at /var/lib/phabricator/repos (~/repos). I set repository.default-local-path to the new value, but Diffusion would complain about repos not being found.

Move procedure

  1. Stop aphlict, phd, nginx, php-fpm on old server.
  2. Take db dump on old server
  3. Rsync over filestorage and repos to new server
  4. Copy over config and edit appropriately
  5. Restore db dump on new server
  6. bin/storage upgrade
  7. Start php-fpm, phd, aphlict and nginx on new server, in order.
bcooksley closed this task as Resolved.Sep 12 2016, 10:31 AM
bcooksley added a subscriber: bcooksley.

Phabricator has been migrated now.