Trouble setting up sliding sync with matrix
from ludicolo@lemmy.ml to selfhosted@lemmy.world on 17 Nov 10:46
https://lemmy.ml/post/22594095

Hello everyone!

After much pain and agony I was able to setup my matrix server! Huzzah!

Until I went to sign in with element x :(

It says my server does not have sliding sync support. I have tried looking at the official documentation and trying to getbit working but to no avail. I went thrught the only limited tutorial provided by the actual matrix channel. Still no success.

I was able to install shildichat and that works just fine! Same with the element desktop client.

Do I need to completely restart my matrix installation to get this working? Is there an easy way to get it working now that my mattix-synapse server is already setup?

For context I followed this exact tutorial (though instead of nginx proxy manager I used cloudflare tunnel)

www.youtube.com/watch?v=TFDFR6EBG3k

In the video it says nothing about sliding sync but when you go to his wiki site the matrix config has been updated with an empty sliding scale patameter.

Any help would be appreciated!

EDIT:

I am using ubuntu 20.04 deploying my matrix server through docker. I am using the latest build of dendrite matrix-synapse

Dendrite monolith matrix github:

github.com/matrix-org/dendrite/blob/…/README.md

This is the documentation I followed:

wiki.opensourceisawesome.com/…/install-matrix-usi…

EDIT 2:

please forgive my idiocy. What I wanted was element the app not element x. Unless there is a problem wjth me running matrix without this supposed sliding sync, my issue is solved lol. I will take the advice to implement it if necessary.

#selfhosted

threaded - newest

hendrik@palaver.p3x.de on 17 Nov 11:11 next collapse

You should add some info: Which server software do you use? What version number? And maybe how you installed this, Docker?

For example "Synapse v1.119.0" That'd be the most recent one.

If I'm not mistaken Synapse needs an additional proxy server for sliding sync? https://github.com/matrix-org/sliding-sync/blob/main/docs/Landing.md

ludicolo@lemmy.ml on 17 Nov 11:16 collapse

My bad I will edit the post!

Ubuntu 20.04 with docker and CasaOS

What do you mean by version number? For matrix? Ubuntu?

Edit:

Dendrite monolith matrix

github.com/matrix-org/dendrite/blob/…/README.md

hendrik@palaver.p3x.de on 17 Nov 11:37 collapse

I believe they're still messing with sliding sync and switching that over to a new version of the protocol. There are some open issues with Dendrite:

https://github.com/element-hq/dendrite/issues?q=is%3Aissue+is%3Aopen+sliding

https://github.com/element-hq/dendrite/issues/3236

WIPocket@lemmy.world on 17 Nov 11:14 next collapse

Sliding sync was recently implemented in Synapse itself, so as long as your Synapse is up to date there shouldnt be any more setup on the matrix side. Try checking the Synapse logs for any issues and/or the cloudflare tunnel configuration (I have no idea about what it does to traffic).

ludicolo@lemmy.ml on 17 Nov 11:25 collapse

I used dendrite monolith matrix, is that the reason or does thst narrow it down to cloudflare possibly?

github.com/matrix-org/dendrite/blob/…/README.md

ArtikBanana@lemmy.dbzer0.com on 17 Nov 11:39 next collapse

Dendrite doesn’t support sliding sync afaik github.com/element-hq/dendrite/issues/3236

Other than Synapse, I know Conduwuit has sliding sync support.

ludicolo@lemmy.ml on 17 Nov 12:05 collapse

Well damn. I guess I will check out another method to getting it up and running aooner or later. But for now this will do…

What is the benefit of sliding sync if you don’t mind me asking? What will I be missing out on?

eskuero@lemmy.fromshado.ws on 17 Nov 13:21 collapse

It’s supposedly faster/snappier loading on large rooms. But if you are self-hosting a single user instance, you might not notice much improvement.

I was also running the dendrite but I gave up because it seemed like development was stalled so I moved over to Synapse.

WIPocket@lemmy.world on 17 Nov 17:10 collapse

I recently migrated from Element to Element X with first the proxy and now simplified sliding sync, and it feels way faster. Imho Element X is still very alpha software, so I wouldnt recommend it to the general population just yet (and I still occasionally have to open the old Element), but the speed is really noticeable on even a very small instance.

bmcgonag@lemmy.world on 17 Nov 19:12 collapse

Just and FYI those are my pages and Video, and I also don’t have sliding sync working yet. I work on it here and there, but other than Element X, I’ve had no issues getting clients to connect to my servers running dendrite. I’ll update those docs, and probably do an update video when I get it working on Dendrite.

ludicolo@lemmy.ml on 20 Nov 08:40 collapse

Wow! Hey thanks for the tutorial! It was beyond helpful! Oh hell yeah can’t wait!

I do have some questions if you don’t mind me asking

So I recently used your affliate link for digital ocean and started following your coturn tutorial. I followed everything but my home server can’t seem to connect to it. Anytime I set the turn rules in the dendrite.yaml the server won’t start. I am using cloudflare tunnels for my actual matrix server then I use dns records to set the coturn record. Matrix works fine with turn variables uncommented just with no rtc on out of network. Do I need to forward the digital ocean ports? If so how do I do that and which ports do I forward? How can I get my home server to find my digital ocean server and use coturn?

EDIT:

I feel like it has to be something with dns records on cloudflare. I have been using tunnels for a majority of things inclueing matrix without coturn. I have no idea how to fix this portion of setup, any help would be appreciated!

EDIT 2:

NVM IT’S BEEN FIXED!!

I do have a question, did you ever figure out message rention and deletion?

bmcgonag@lemmy.world on 20 Nov 21:20 collapse

Glad you got Coturn working, what was it?

Haven’t messed with retention and deletion yet. Not enough data to mess with it so far.