Closed e1mo closed 1 year ago
The build is failing since the secrets (e.g. synapse signing key) for prod are not yet present (to avoid messing up federation and stuff if we were to accidentally deploy).
As soon as #26 is merged, I'll re-write this to be for hamilton. However, the migration plan is already at an usable state, so I'd be happy for some feedback regarding it.
Secrets for production not yet added to avoid breaking our setup in case we were to accidentally deploy this.
Migration plan (proposal)
and maskmarix-synapse.service service on old host (hopper,sudo systemctl disable --now matrix-synapse.service; sudo systemctl mask matrix-synapse.service
)services.matrix-synapse = lib.mkForce false;
(but with postgres enabled)matrix-media-repo
volume from old server and boot it back upsudo -u postgres pg_dump --format=custom synapse | ssh hamilton.mon.net.chaos.jetzt "sudo -u postgres pg_restore -d synapse --format=custom --single-transaction --verbose"
(needs SSH with agent forwarding) Database is to big for dumping and importing separatelysudo -u postgres pg_dump --format=custom synapse | ssh e1mo@hamilton.mon.net.chaos.jetzt "sudo -u postgres pg_restore -d matrix-synapse --format=custom --single-transaction --verbose --no-owner --role=matrix-synapse"
(Wrong db name on target, and didn't account for different db usernames on target)services.matrix-synapse = true;
and log level of infosynapse_media_store
files (different uids on the servers):chown matrix-synapse:matrix-synapse /mnt/synapse_media_store -R
_Based on the last migration_