Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Migrate from Dendrite to Synapse #3116

Open
bahuma20 opened this issue Jun 18, 2023 · 12 comments
Open

Migrate from Dendrite to Synapse #3116

bahuma20 opened this issue Jun 18, 2023 · 12 comments

Comments

@bahuma20
Copy link

As the Dendrite project is currently orientating for a different use case i want to switch back to Synapse as it has more features and is more stable.

Is that possible?

I have a single-user instance and i am fine with loosing all my old chats (so no migration of those needed, i will just re-join groups on synapse later)

The only thing that i want is to not lock out of my domain and keep my username.

Can i just use the same private key for synapse then? Or are there other things to consider?

@axiopaladin
Copy link

If you don't need to migrate data, there's no reason you can't simply deactivate your current account, stop the Dendrite software on your server, and then start up a new Synapse instance on the same machine (or a new one, if you update your domain's DNS records to point to the new machine's IP) and create a new account with the same username on the new instance.

If you do need to migrate data, that's discussed in #1705, albeit in the opposite direction. In either case, I don't think it's possible to migrate data at this time.

@andzejsp
Copy link

is there a way to atleast export the room list? maybe from element app, but i havent seen that option.. also can someone tell me how to add old dendrite server keys to the new matrix synapse keys. documentation is written for phd enjoyers, im just a causal, a meer mortal, i dont understand what it all means.

excerpt:

old_signing_keys

The keys that the server used to sign messages with but won't use to sign new messages. For each key, key should be the base64-encoded public key, and expired_tsshould be the time (in milliseconds since the unix epoch) that it was last used.

It is possible to build an entry from an old signing.key file using the export_signing_key script which is provided with synapse.

Example configuration:

old_signing_keys:
"ed25519:id": { key: "base64string", expired_ts: 123456789123 }

i have the key, but where do i get the expired_ts??

@bahuma20
Copy link
Author

bahuma20 commented Oct 30, 2023

@andzejsp

i have the key, but where do i get the expired_ts??

The documentation says expired_ts should be the time (in milliseconds since the unix epoch) that it was last used.. This means the time when you switched.

@bahuma20
Copy link
Author

@axiopaladin I am a little worried about your solution.

When i want to deactivate my account via element it shows this warning:

image

And the part about "No one will be able to reuse your username" is the thing i want to prevent.

Is that somehow possible?

@axiopaladin
Copy link

@bahuma20 The homeserver is the only thing enforcing no-reuse. If you take the homeserver down completely and replace it with a fresh new one, it will not know to prevent registration with that name.

@cyberb
Copy link
Contributor

cyberb commented Nov 29, 2023

I am also unlucky one to start using dendrite and have bridge bots issues, I am thinking about migrating away to conduit or synapse.
I am afraid of migrating to Synapse as I usually use underpowered devices and that is why thinking about moving to Conduit.
Not sure what happened to dendrite and why it stopped progressing and now conduit seems to be a better option.
@bahuma20 did you finish the migration? are you happy with Synapse?

@bertybuttface
Copy link

@cyberb There have been some recent changes, I am no expert but they might help you with your bridge bot issues. In particular this PR which was recently merged: #3078

@cyberb
Copy link
Contributor

cyberb commented Nov 29, 2023

@bertybuttface oh good to know, let me try!
I was advised to not use dendrite here mautrix/slack#41 but it works so good (apart from this login issue) so I am willing to try any hot fix at this point.

@bertybuttface
Copy link

bertybuttface commented Nov 29, 2023

I think there are still a few more bits that need sorting (see kuhnchris comment at bottom of that PR) for bridge support to work perfectly. You might be better off following the advice you were provided with, I'm definitely no expert.

@S7evinK
Copy link
Contributor

S7evinK commented Nov 29, 2023

FYI: mautrix/slack#41 is most likely a race condition between the syncapi (handling /joined_members) and the appservice. (and probably explains more of the bridge issues)
If the AS handles the event before the syncapi had a chance, the bridge will be sad that there are no users and issues a /leave

@cyberb
Copy link
Contributor

cyberb commented Nov 29, 2023

FYI: good news, this seems to have fixed all my go bridge bot invite issues: #3078

@bahuma20
Copy link
Author

@cyberb Yes i have disabled my old account on Dendrite via Element (Disable account in the settings). That forced the account to leave all rooms i was in.

Then i setup Synapse and created a new account with the same name.

Everything worked

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants