!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

164 Members
Coordination and discussion about the matrix subsystem in NixOS - https://wiki.nixos.org/wiki/Matrix84 Servers

Load older messages


SenderMessageTime
6 Feb 2022
@dandellion:dodsorf.asDandellionmine is,, also pretty bad,,,21:58:12
@hexa:lossy.networkhexaok, I think I've migrated to the module and things are working (without workers)21:50:38
7 Feb 2022
@ralith:ralith.comRalithI really don't understand how synapse manages to be so incredibly CPU-intensive tbh18:54:33
6 Feb 2022
@hexa:lossy.networkhexaand I've apparently lost my very own avatar21:50:48
7 Feb 2022
@ralith:ralith.comRalithalso I/O-intensive18:54:42
6 Feb 2022
@hexa:lossy.networkhexaah, different media store paths21:52:55
7 Feb 2022
@moritz.hedtke:matrix.orgmoritz.hedtkeDo you have experience with dendrite? Because I think lots of it is because of bad implementation and some of it is because decentralized means you have to cope with many huge rooms and lots of slow other federated servers19:58:49
6 Feb 2022
@hexa:lossy.networkhexa Dandellion: can you share your worker and reverse proxy configuration? 22:02:52
7 Feb 2022
@dandellion:dodsorf.asDandellionit's a lot of connections, since federation is per room and fully meshed20:05:49
6 Feb 2022
@hexa:lossy.networkhexaalso … wondering how you handle the worker_shared_secret22:03:13
7 Feb 2022
@ralith:ralith.comRalithI'll muck with dendrite when it's mature and has a migration story and not before20:06:18
6 Feb 2022
@hexa:lossy.networkhexa * also … wondering how you handle the worker_replication_secret22:03:22
@hexa:lossy.networkhexa

Extracting a user ID from the access token or Authorization header is currently left as an exercise for the reader.

22:14:03
@hexa:lossy.networkhexaawesome, so from university I know that this is trivial.22:14:22
@hexa:lossy.networkhexahm ok, feels much snappier23:24:41
@hexa:lossy.networkhexastill having issues with the client endpoints sadly23:24:52
@hexa:lossy.networkhexathe requests correctly got forward to the client workers23:28:02
@hexa:lossy.networkhexabut resulted in http 400s23:28:29
@hexa:lossy.networkhexa

SynapseError: 400 - Unrecognized request

23:28:34
@hexa:lossy.networkhexa
# cat /nix/store/0mi0bv1r1gnxa53k3ljhcfk4jzlx1vcf-matrix-synapse-worker-client1-config.yaml
worker_app: synapse.app.generic_worker
worker_listeners:
- bind_addresses:
  - localhost
  port: 8010
  resources:
  - compress: false
    names:
    - client
  tls: false
  type: http
  x_forwarded: true
worker_name: client1
worker_replication_host: 127.0.0.1
worker_replication_http_port: 8009
23:29:12
@hexa:lossy.networkhexanot sure why a generic_worker with a client resource would not be able to handle that request23:29:35
@hexa:lossy.networkhexa

it also intermittently errors out on PUT requests

Traceback (most recent call last):
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/http/server.py", line 269, in _async_render_wrapper
    callback_return = await self._async_render(request)
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/http/server.py", line 471, in _async_render
    callback_return = await raw_callback_return
  File "/nix/store/bm9ravdndw17dzdy963a164sgnhwzqy4-python3.9-Twisted-21.7.0/lib/python3.9/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
    result = current_context.run(gen.send, result)
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/rest/client/sendtodevice.py", line 64, in _put
    await self.device_message_handler.send_device_message(
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/handlers/devicemessage.py", line 281, in send_device_message
    last_stream_id = await self.store.add_messages_to_device_inbox(
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/storage/databases/main/deviceinbox.py", line 421, in add_messages_to_device_inbox
    assert self._can_write_to_device
AssertionError
23:32:40
@hexa:lossy.networkhexa *
# cat /nix/store/0mi0bv1r1gnxa53k3ljhcfk4jzlx1vcf-matrix-synapse-worker-client1-config.yaml
worker_app: synapse.app.generic_worker
worker_listeners:
- bind_addresses:
  - localhost
  port: 8010
  resources:
  - compress: true
    names:
    - client
  tls: false
  type: http
  x_forwarded: true
worker_name: client1
worker_replication_host: 127.0.0.1
worker_replication_http_port: 8009
23:33:10
7 Feb 2022
@hexa:lossy.networkhexaunmarshalling lots of json all day 19:21:11
@hexa:lossy.networkhexa * unmarshalling loads of json all day 19:21:29
@hexa:lossy.networkhexahrm, so my worker setup worked so well that it didn't send out lots of messages20:07:16
@hexa:lossy.networkhexathat was fun20:07:19
@hexa:lossy.networkhexatest20:08:26
@hexa:lossy.networkhexaso, as everyone can see my matrix-worker experience is awesome20:08:47
@hexa:lossy.networkhexasorry for the spam.20:08:51

Show newer messages


Back to Room ListRoom Version: 4