[Synapse] Instant messaging server matrix network

Yes :slight_smile:

1 Like

Omg, thank you for posting this! I was going crazy trying to figure this out! Haven’t seen the error since editing the file. :heartpulse:

Hi,

This is just FYI.

I updated Matrix from 1.90.2 to 1.91.2. It updated fine it seems, but got the following messages that caught my attention.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.

setuptools-rust 1.7.0 requires setuptools>=62.4, but you have setuptools 60.8.2 which is incompatible.

No solution from me here, but a warning : do not try to fix it manually via pip or you’ll face something beautiful : Failed to read info for ****** : Invalid version: '*.*.*~ynh*'

I’ve had that error message a number of times. Each time I’ve just run the following command and it seems to fix it. I’m not sure if it’s likely to cause the problem mentioned in the previous post:

pip install pip --upgrade && pip install pyopenssl --upgrade && pip install setuptools --upgrade && pip install setuptools-rust --upgrade

Hello,
I have a synapse server under Yunohost running for years already without problem.
Recently, for some month I think, the video calls from Europe to East Asia are not working well anymore. We can’t see and hear properly our Asian correspondents. The image often freeze and sound is cut too much to allow a normal conversation.
Video calls through my Synapse server were great until recently (2-4 months I guess).
Coturn server is properly working.
Our european internet connection and their asian connection is good (>300Mbit/s).
My Yunohost server is at home under a good fiber connection.
We made test with other video call system, for instance call with Signal, and call quality is very good.

I have two questions:
(1) Is there any change in the default config of Synapse or coturn (in Yunohost) made recently that may have affected the quality of our video call?
(2) How should I proceed to investigate more thoroughly?

Thanks in advance for your suggestions :slightly_smiling_face:

Hello,

Maybe related to Improve turn server config and securize with tls/dtls by Josue-T Ā· Pull Request #222 Ā· YunoHost-Apps/synapse_ynh Ā· GitHub

Note you can disable DTLS (which could be the cause of the issue) from the config panel, cf synapse_ynh/config_panel.toml at b97297dc1d97039ba62f7762eac739c54f527897 Ā· YunoHost-Apps/synapse_ynh Ā· GitHub

Thanks @Josue for pointing me this information. TLS/DTLS on Audio/Video call was indeed enabled on my server.
I just disabled it and I will make some new test.

You were correct @Josue , this option to increase security of turn server with TLS/DTLS caused lags in video calls in my case.
When I remove this option, video calls are fluid as they were before.
Maybe my small server doesn’t have the capacity to handle this additional layer of security.
But to be correct, I think in my case there is no problem with Let’s Encrypt certificate as calls are correctly established. The lag cause calls to be impossible, but the connexion between correspondents happens without error.

Thanks again for your support and advice :slightly_smiling_face:

1 Like

OMG, I had been having crazy levels of problems with video calls and turning this option off made them all go away instantly.

Before, it would usually take about 4-6 time calling before we got a connection where both parties could see and hear each other. Since turning this setting off, every single call has connected correctly straight away.

Beforehand, the audio and video lagged. Now it’s near instant.

Beforehand the video would stutter, drop below 1fps and compress like crazy. Now it’s clear and smooth.

The difference is like night and day.

So, is there any problem solving I could help with to get both the security of TLS/DTLS and the call connection/quality of having it off? Happy to send logs or test patches. Oh, and yes, I’m using Let’s Encrypt certs.

After the migration to Yunohost 12 and Synapse 1.121, do you know if Sliding Sync is operational on our Synapse server?
I may have understood it is now included in latest Synapse versions (no need to add additional proxy), but I can connect to my server with Element X (client using this Sliding Sync function).
But I am not sure to fully catch the consequences on our server (I read clients are faster and calls even more reliable).

Hello :waving_hand:,
I have seen the merge of Testing into Master 4 days ago.
And also the merge of Matrix v2 implementation into Testing 4 days ago.
Does the current proposed update of Synapse into Yunohost includes Matrix v2 implementation?
If yes, with these changes (sliding sync and Element call), does the ā€œoldā€ Android Element application still works or do we have to use only the new Element X?

For nos it’s only the testing. But I really recommend to test this testing :wink:

Element and element X is expectation to work.

The only restrictions is for calls both are not compatible, so from an element android client you won’t be able to call a element X client. Elements web support both (if enabled from the settings) so from elements web you can call a element X or a legacy element android client.

Note also that this merge (Matrixv2) don’t Include MAS which require some big work on the core before to be merged.

1 Like

Thanks @Josue for these explanations :slight_smile:

I have found the setting on Element web/desktop, currently at Parameter / Experimental / Audio & Video / then I can activate Element call video call

It is strange to have an evolution of the Element call system with no fallback possible to allow an old Android Element app to communicate with a new Android Element X app.
I’ll have to move all users to the new Android Element X app to benefit from these evolutions.

Hello,
I am wondering what is the proper way to disable federation on my Synapse server?
I want users registered on my server to be able to communicate with other users of my server (message and calls) but to prevent users joining rooms in other synapse servers.

you could either misconfigure the federation for it not to work properly :smiley: Federation - Synapse

or use Configuration Manual - Synapse

Or contribute to or wait for this: Rework homeserver.yaml , config_panel and provide multiple config templates by Gredin67 Ā· Pull Request #590 Ā· YunoHost-Apps/synapse_ynh Ā· GitHub