synapse icon indicating copy to clipboard operation
synapse copied to clipboard

We need a way to rename homeservers (SYN-28)

Open matrixbot opened this issue 11 years ago • 16 comments

The current common use case for Synapse is that people install it running as localhost - have a play with it; see that it's good.

They then want to expose the same server to run as --server-name foo.net - except there isn't (as far as I know) an easy way to change the server-name without vaping the whole HS DB. We need one.

(Imported from https://matrix.org/jira/browse/SYN-28)

(Reported by @ara4n)

matrixbot avatar Sep 16 '14 00:09 matrixbot

Jira watchers: @erikjohnston @ara4n

matrixbot avatar Sep 16 '14 00:09 matrixbot

Links exported from Jira:

relates to SYN-266

matrixbot avatar Sep 16 '14 00:09 matrixbot

I don't think this can be done once the home server has federated with anyone else, since the remote will will always send to the old server name.

For the special case of renaming from a localhost we can probably write a script that goes and rewrites the local DB.

-- @erikjohnston

matrixbot avatar Sep 25 '14 15:09 matrixbot

We need to think this through better before it's too late.

If I decide to rebrand from foo.com to bar.com, it sounds like my only choice is to create a new HS DB containing the same account/profile names as before, and then somehow bootstrap these new users into the same rooms as the old ones (by inviting them using the old users)?

This feels very unwieldy. I guess supporting forwarding addresses would be a step in the better direction, and then we can migrate like email. For now, however, I can't see anything better than a script which creates the new DB and helps guide you through rejoining your users into rooms as the new user (and possibly leaving those rooms as the old user).

(Thank goodness we don't have 1:1 rooms!)

-- @ara4n

matrixbot avatar Feb 02 '15 18:02 matrixbot

The old users won't necessarily have permission to invite new users into the room.

-- @erikjohnston

matrixbot avatar Feb 03 '15 13:02 matrixbot

https://github.com/matrix-org/matrix-doc/pull/2787

ptman avatar Oct 01 '20 11:10 ptman

+1 please re-open this

cypherworld avatar Aug 18 '21 15:08 cypherworld

PrivacyTools.io is renaming and they run a big Matrix homeserver. They have been requesting people to migrate elsewhere and I understand them to be unsure whether to host Matrix on a new domain due to this issue while they certainly want to.

  • https://blog.privacytools.io/the-future-of-privacytools/
    • https://web.archive.org/web/20210730130240/https://blog.privacytools.io/the-future-of-privacytools/

I think changes such as requiring PL50 for inviting have generally made this issue more important considering the migration tool is failing in increasing amount of rooms due to having no permission to invite the new user.

Mikaela avatar Aug 18 '21 15:08 Mikaela

This will need spec work FTR

erikjohnston avatar Aug 23 '21 16:08 erikjohnston

I am stripping away a few domains I own. One of them is associated to my HS.

Can I transfer my existing (two and a half years of work) state to a new domain? Or do I have to redo just about everything?

Thanks. :)

IngwiePhoenix avatar Sep 13 '22 10:09 IngwiePhoenix

This ticket would (hopefully) have been closed if there was a way

ptman avatar Sep 13 '22 10:09 ptman

I see, so I'll be spending my day trying to note down all the channels I am in and re-joining them... ah, fun. :/ Thanks tho :)

IngwiePhoenix avatar Sep 13 '22 10:09 IngwiePhoenix

There exists https://ems.element.io/tools/matrix-migration

ptman avatar Sep 13 '22 10:09 ptman

Looks neat; however I will have to figure out a way to run a new blank homeserver and my "old" homeserver at the same time for that. That said, this tool is super handy nevertheless, making a bookmark for later. Thanks!

IngwiePhoenix avatar Sep 13 '22 11:09 IngwiePhoenix

How can we do when our instance is only local without federation (so we don't have any external synchronisation issues as mentionned in https://github.com/matrix-org/synapse/issues/1209#issuecomment-258910421 )

jlemangarin avatar Aug 07 '23 12:08 jlemangarin

There exists https://ems.element.io/tools/matrix-migration

  1. but it looks like a migration of room memebership, but not messages visibility, or I'm mistaken?
  2. how it could work for "private per server" rooms (with "Block anyone not part of {{ matrix_domain }} from ever joining this room: Enabled")?

gleruzh avatar Oct 29 '23 11:10 gleruzh