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

to_device message didn't get delivered #9533

Closed
bwindels opened this issue Mar 2, 2021 · 23 comments
Closed

to_device message didn't get delivered #9533

bwindels opened this issue Mar 2, 2021 · 23 comments
Assignees
Labels
S-Critical Blocks development, potential data loss, more than 25% of users possibly affected, no workarounds. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@bwindels
Copy link
Contributor

bwindels commented Mar 2, 2021

Description

With two clients connected for user @bruno1e2ee:matrix.org, device ACNVYZCKHP is sending to_device messages and device HQAFTINYFN is syncing. One to_device message didn't get delivered. The request & response for the to_device message is in send.txt, and the HAR for syncing with HQAFTINYFN is attached as sync.zip. The device message is expected from https://matrix.org/_matrix/client/r0/sync?since=s1850875933_757284961_12315629_764933098_636406164_2112340_221003142_783098628_175975&timeout=0&filter=1&_cacheBuster=5607312750984851 (can correlate the timestamps in the response headers) but never comes.

send.txt

sync.zip

@clokep clokep added S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. labels Mar 3, 2021
@bwindels
Copy link
Contributor Author

bwindels commented Mar 3, 2021

Hi @clokep, not sure how the severity levels work for synapse, but just want to clarify that this breaks encryption when it happens.

@ara4n
Copy link
Member

ara4n commented Apr 23, 2021

yeah, this really isn't minor severity, given it entirely breaks encryption with one or more devices when it happens, with no way to recover.

@ara4n ara4n added S-Critical Blocks development, potential data loss, more than 25% of users possibly affected, no workarounds. and removed S-Minor Blocks non-critical functionality, workarounds exist. labels Apr 23, 2021
@ara4n
Copy link
Member

ara4n commented Apr 23, 2021

moving to S-Critical given it causes data loss.

@callahad
Copy link
Contributor

@bwindels Are you able to reproduce this?

Unfortunately the promotion to S-Critical occurred after the server-side logs had expired, so we'll instead take this issue as an opportunity to double check that our logging will be sufficient to resolve the next time this occurs.

We're looking into how we can ensure that we catch new information which should modify the severity.

@callahad callahad added the X-Needs-Info This issue is blocked awaiting information from the reporter label May 6, 2021
richvdh added a commit that referenced this issue May 11, 2021
Hopefully this will help us track down where to-device messages are getting
lost/delayed.
@richvdh
Copy link
Member

richvdh commented May 13, 2021

@uhoreg you mentioned you might be able to reproduce this? If you can do so and share the logs (ideally having enabled the additional debug logging in #9959), that would be super helpful.

@uhoreg
Copy link
Member

uhoreg commented May 14, 2021

Here are some logs I took today using develop as of a day or two ago.

@ alice:mls sends two to-device messages to @ bob:mls. The first one (2021-05-14 21:48:35,516) seemed to be fairly quick, though it was maybe a second or two. The second one (2021-05-14 21:49:40,775) took quite long -- looks like bob's sync doesn't return until (2021-05-14 21:50:10,398) -- about 30 seconds later.

synapse.log

@richvdh
Copy link
Member

richvdh commented May 26, 2021

Thanks for that, @uhoreg. Unfortunately no smoking guns here. The /sync request at 21:50:10,398 didn't arrive until 21:50:10,384, so basically the delay here is on the client side.

(as an aside: I'm trying to separate delayed to-device messages from lost ones, and am tracking the former on #9564.)

@callahad
Copy link
Contributor

callahad commented Jun 3, 2021

Closing pending further reports; we're not aware of this occurring since Bruno's initial report. But we'll leave the debug logging cranked up on matrix.org so we can take action if we do see it pop up again.

@callahad callahad closed this as completed Jun 3, 2021
@deepbluev7
Copy link
Contributor

I think I am hitting this issue now too. For some reason my Nheko on my laptop can only sometimes send to_device messages to my Element instance on the same laptop.

Relevant logs (with logging set to DEBUG):

2021-07-26 20:12:55,186 - synapse.access.http.8008 - 349 - DEBUG - PUT-118 - 88.217.180.100 - 8008 - Received request: PUT /_matrix/client/r0/sendToDevice/m.room.encrypted/D3LC3GtcEKEeRnrdNjxQm2gW3qXviX3D
2021-07-26 20:12:55,187 - synapse.access.http.8008 - 349 - DEBUG - POST-119 - 88.217.180.100 - 8008 - Received request: POST /_matrix/client/r0/keys/claim
2021-07-26 20:12:55,187 - synapse.storage.txn - 530 - DEBUG - PUT-118 - [TXN START] {_load_next_mult_id-3f6}
2021-07-26 20:12:55,188 - synapse.storage.txn - 530 - DEBUG - POST-119 - [TXN START] {claim_e2e_one_time_keys-3f7}
2021-07-26 20:12:55,188 - synapse.storage.txn - 633 - DEBUG - POST-119 - [TXN END] {claim_e2e_one_time_keys-3f7} 0.000205 sec
2021-07-26 20:12:55,188 - synapse.handlers.e2e_keys - 477 - INFO - POST-119 - Claimed one-time-keys: 
2021-07-26 20:12:55,188 - synapse.storage.txn - 633 - DEBUG - PUT-118 - [TXN END] {_load_next_mult_id-3f6} 0.000978 sec
2021-07-26 20:12:55,189 - synapse.access.http.8008 - 389 - INFO - POST-119 - 88.217.180.100 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.001sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/1) 34B 200 "POST /_matrix/client/r0/k
eys/claim HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
2021-07-26 20:12:55,189 - synapse.storage.txn - 530 - DEBUG - PUT-118 - [TXN START] {add_messages_to_device_inbox-3f8}
2021-07-26 20:12:55,190 - synapse.access.http.9893 - 349 - DEBUG - POST-120 - 127.0.0.1 - 9893 - Received request: POST /_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev
2021-07-26 20:12:55,190 - synapse.util.metrics - 137 - DEBUG - POST-120 - Entering block presence_update_states
2021-07-26 20:12:55,190 - synapse.util.metrics - 145 - DEBUG - POST-120 - Exiting block presence_update_states
2021-07-26 20:12:55,190 - synapse.access.http.9893 - 389 - INFO - POST-120 - 127.0.0.1 - 9893 - {None} Processed request: 0.001sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "POST /_synapse/replication/presence_set_state/%
40deepbluev7%3Aneko.dev HTTP/1.1" "Synapse/1.39.0rc2" [0 dbevts]
2021-07-26 20:12:55,190 - synapse.9533_debug - 542 - DEBUG - PUT-118 - Stored to-device messages with stream_id 183615 for [('@deepbluev7:neko.dev', 'TDXVQTYIQM')]
2021-07-26 20:12:55,191 - synapse.storage.txn - 633 - DEBUG - PUT-118 - [TXN END] {add_messages_to_device_inbox-3f8} 0.001458 sec
2021-07-26 20:12:55,191 - synapse.storage.txn - 530 - DEBUG - PUT-118 - [TXN START] {MultiWriterIdGenerator._update_table-3f9}
2021-07-26 20:12:55,191 - synapse.storage.txn - 633 - DEBUG - PUT-118 - [TXN END] {MultiWriterIdGenerator._update_table-3f9} 0.000279 sec
2021-07-26 20:12:55,191 - synapse.util.metrics - 137 - DEBUG - PUT-118 - Entering block on_new_event
2021-07-26 20:12:55,192 - synapse.9533_debug - 431 - DEBUG - PUT-118 - to-device messages stream id 183615, awaking streams for dict_keys(['@deepbluev7:neko.dev'])
2021-07-26 20:12:55,192 - synapse.util.metrics - 137 - DEBUG - user_directory.notify_new_event-104 - Entering block user_dir_delta
2021-07-26 20:12:55,192 - synapse.util.metrics - 145 - DEBUG - user_directory.notify_new_event-104 - Exiting block user_dir_delta
2021-07-26 20:12:55,192 - synapse.util.metrics - 137 - DEBUG - presence.notify_new_event-108 - Entering block presence_delta
2021-07-26 20:12:55,192 - synapse.util.metrics - 145 - DEBUG - presence.notify_new_event-108 - Exiting block presence_delta
2021-07-26 20:12:55,192 - synapse.util.metrics - 137 - DEBUG - replication_notifier-40 - Entering block repl.stream.get_updates
2021-07-26 20:12:55,192 - synapse.replication.tcp.resource - 168 - DEBUG - replication_notifier-40 - Getting stream: to_device: 183614 -> 183615
2021-07-26 20:12:55,193 - synapse.util.metrics - 145 - DEBUG - PUT-118 - Exiting block on_new_event
2021-07-26 20:12:55,193 - synapse.storage.txn - 530 - DEBUG - replication_notifier-40 - [TXN START] {get_all_new_device_messages-3fa}
2021-07-26 20:12:55,193 - synapse.access.http.8008 - 389 - INFO - PUT-118 - 88.217.180.100 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.007sec/-0.000sec (0.002sec, 0.000sec) (0.001sec/0.003sec/3) 2B 200 "PUT /_matrix/client/r0/send
ToDevice/m.room.encrypted/D3LC3GtcEKEeRnrdNjxQm2gW3qXviX3D HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
2021-07-26 20:12:55,194 - synapse.storage.txn - 633 - DEBUG - replication_notifier-40 - [TXN END] {get_all_new_device_messages-3fa} 0.001227 sec
2021-07-26 20:12:55,194 - synapse.replication.tcp.resource - 181 - DEBUG - replication_notifier-40 - Sending 1 updates
2021-07-26 20:12:55,194 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-40 - Streaming: to_device -> 183615
2021-07-26 20:12:55,194 - synapse.util.metrics - 145 - DEBUG - replication_notifier-40 - Exiting block repl.stream.get_updates
2021-07-26 20:12:55,195 - synapse.replication.tcp.resource - 231 - DEBUG - replication_notifier-40 - No more pending updates, breaking poke loop

So synapse is accepting and processing the request, but I can't find it in my Element network tab at all (and it never logs that it is decrypting a to_device message). Weirdly enough, sometimes it does work, but in about 80% of cases it doesn't. To me all the logs look correct, but the event just never arrives... I would assume Nheko is doing something weird here, but it works with a different Element client, that is less busy (not 20 presence events per second) perfectly fine. Just not with this one on the same account...

@deepbluev7
Copy link
Contributor

deepbluev7 commented Jul 26, 2021

Okay, I have one clue now. Disabling presence makes to_device messages a lot more reliable. So there seems to be some race, where a new to_device event gets inserted at the same time of a presence event and then only the presence event gets pulled from the stream maybe? Note that I am running 2 synchrotrons next to my master, event persister and a few federation workers.

@callahad callahad reopened this Jul 27, 2021
@deepbluev7
Copy link
Contributor

Another data point: Seems to not happen with just 1 /sync worker instead of 2.

@callahad
Copy link
Contributor

Thank you so much for bringing this back up, those do sound like promising leads. We're pretty slammed until the 1.40 RC goes out (next week), but we'll take up investigating after that.

@deepbluev7
Copy link
Contributor

Thank you for planning to look into this! I tried myself for a day, but I got a bit lost and couldn't figure out where the messages actually get lost, since the logs look correct even with some extra logging added on my side. At least I know how to work around it in the meantime when I hit it.

@richvdh richvdh removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Aug 5, 2021
DMRobertson pushed a commit that referenced this issue Aug 19, 2021
If in doubt, print it out. Thanks Erik for advising.
@DMRobertson
Copy link
Contributor

@deepbluev7 I've added a bunch of logging in ceb29d4, and attached a patch. Would you be able to apply the patch and trigger the issue, then provide logs? It's all guarded on the same config that Rich introduced before, so just need your homeserver and worker configs to have synapse.9533_debug set to level: DEBUG

0001-Add-further-logging-for-9533.patch.txt

@deepbluev7
Copy link
Contributor

Logs for a key request from TDXVQTYIQM to PCSZKSTRBC and immediate reply in the other direction.

TDXVQTYIQM is Element Web, PCSZKSTRBC is Nheko. It could of course also be a bug in either of those, but Nheko seems to send it, so maybe Element could be to slow to process the immediate reply. I tried to get around that by adding a sleep already though, so it is probably synapse.

master:

2021-08-19 18:03:36,600 - synapse.9533_debug - 577 - DEBUG - PUT-1187 - Stored to-device messages with stream_id 197877 for [('@deepbluev7:neko.dev', 'BDSWWRTJPP'), ('@deepbluev7:neko.dev', 'BHXAVBBPVG'), ('@deepbluev7:neko.dev', 'CDLUJHDM
FP'), ('@deepbluev7:neko.dev', 'EORPVDBDAE'), ('@deepbluev7:neko.dev', 'FPNEJCNFUV'), ('@deepbluev7:neko.dev', 'HTFVTDCDEW'), ('@deepbluev7:neko.dev', 'IDMUVVWGLU'), ('@deepbluev7:neko.dev', 'ISZROSKQRJ'), ('@deepbluev7:neko.dev', 'JMNWYNI
YYI'), ('@deepbluev7:neko.dev', 'KLHHVVACKZ'), ('@deepbluev7:neko.dev', 'KSma6JdXSXhPon1h+d1ZgDlnDYqvHhXfWOeo4MPdV8k'), ('@deepbluev7:neko.dev', 'MNKUSHTWIH'), ('@deepbluev7:neko.dev', 'MVOYLXEVGR'), ('@deepbluev7:neko.dev', 'NCBVRIANUG'),
 ('@deepbluev7:neko.dev', 'OEFUXNIWDX'), ('@deepbluev7:neko.dev', 'OPSJFJYOUK'), ('@deepbluev7:neko.dev', 'PCSZKSTRBC'), ('@deepbluev7:neko.dev', 'QDHFJZZBLF'), ('@deepbluev7:neko.dev', 'QEANLWPYSZ'), ('@deepbluev7:neko.dev', 'QYAIRWTQPM')
, ('@deepbluev7:neko.dev', 'RDCSSGUDYL'), ('@deepbluev7:neko.dev', 'RQPNMCZNHW'), ('@deepbluev7:neko.dev', 'SJOZHUKUZL'), ('@deepbluev7:neko.dev', 'SUFAOAHAFX'), ('@deepbluev7:neko.dev', 'SXYRINNJOR'), ('@deepbluev7:neko.dev', 'TDXVQTYIQM'
), ('@deepbluev7:neko.dev', 'UGQUTGIQMS'), ('@deepbluev7:neko.dev', 'UMXQXCVUTI'), ('@deepbluev7:neko.dev', 'WEMHVDFQCA'), ('@deepbluev7:neko.dev', 'WGZSQQCJCG'), ('@deepbluev7:neko.dev', 'WNSGYIXLQH'), ('@deepbluev7:neko.dev', 'YBPCTFLJCO
'), ('@deepbluev7:neko.dev', 'YXIZBMTQMU'), ('@deepbluev7:neko.dev', 'ZSWRUXRMSQ'), ('@deepbluev7:neko.dev', 'e6WRBb/kGGRvArEJTqDy9AtJs99NLDntGs9yiImvSp4'), ('@deepbluev7:neko.dev', 'ogQMXmuP59LwXzflqmehkNREV4+1r+yUpf9iXVIYmzs')]
2021-08-19 18:03:36,601 - synapse.9533_debug - 432 - DEBUG - PUT-1187 - to-device messages stream id 197877, awaking streams for dict_keys(['@deepbluev7:neko.dev'])
2021-08-19 18:03:36,602 - synapse.access.http.8008 - 389 - INFO - PUT-1187 - 88.217.180.141 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.009sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.006sec/3) 2B 200 "PUT /_matrix/client/r0/sen
dToDevice/m.room_key_request/m1629396014600.10 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
2021-08-19 18:03:36,603 - synapse.9533_debug - 392 - DEBUG - replication_notifier-430 - get_all_new_device_messages: after sorting, got ([(197877, ('@deepbluev7:neko.dev',))], 197877, False)
2021-08-19 18:03:36,603 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-430 - Streaming: to_device -> 197877
2021-08-19 18:03:36,641 - synapse.access.http.9893 - 389 - INFO - POST-1188 - 127.0.0.1 - 9893 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "POST /_synapse/replication/presence_set_state/
%40deepbluev7%3Aneko.dev HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:36,656 - synapse.access.http.9893 - 389 - INFO - POST-1189 - 127.0.0.1 - 9893 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "POST /_synapse/replication/presence_set_state/
%40deepbluev7%3Aneko.dev HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,050 - synapse.replication.http.federation - 172 - INFO - POST-1190 - Got 'm.presence' edu from matrix.petrovs.info
2021-08-19 18:03:37,050 - synapse.access.http.9893 - 389 - INFO - POST-1190 - 127.0.0.1 - 9893 - {None} Processed request: 0.001sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 4B 200 "POST /_synapse/replication/fed_send_edu/m.pres
ence/AFsFDncSdD HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,117 - synapse.9533_debug - 577 - DEBUG - PUT-1192 - Stored to-device messages with stream_id 197878 for [('@deepbluev7:neko.dev', 'BDSWWRTJPP'), ('@deepbluev7:neko.dev', 'BHXAVBBPVG'), ('@deepbluev7:neko.dev', 'CDLUJHDM
FP'), ('@deepbluev7:neko.dev', 'EORPVDBDAE'), ('@deepbluev7:neko.dev', 'FPNEJCNFUV'), ('@deepbluev7:neko.dev', 'HTFVTDCDEW'), ('@deepbluev7:neko.dev', 'IDMUVVWGLU'), ('@deepbluev7:neko.dev', 'ISZROSKQRJ'), ('@deepbluev7:neko.dev', 'JMNWYNI
YYI'), ('@deepbluev7:neko.dev', 'KLHHVVACKZ'), ('@deepbluev7:neko.dev', 'KSma6JdXSXhPon1h+d1ZgDlnDYqvHhXfWOeo4MPdV8k'), ('@deepbluev7:neko.dev', 'MNKUSHTWIH'), ('@deepbluev7:neko.dev', 'MVOYLXEVGR'), ('@deepbluev7:neko.dev', 'NCBVRIANUG'),
 ('@deepbluev7:neko.dev', 'OEFUXNIWDX'), ('@deepbluev7:neko.dev', 'OPSJFJYOUK'), ('@deepbluev7:neko.dev', 'PCSZKSTRBC'), ('@deepbluev7:neko.dev', 'QDHFJZZBLF'), ('@deepbluev7:neko.dev', 'QEANLWPYSZ'), ('@deepbluev7:neko.dev', 'QYAIRWTQPM')
, ('@deepbluev7:neko.dev', 'RDCSSGUDYL'), ('@deepbluev7:neko.dev', 'RQPNMCZNHW'), ('@deepbluev7:neko.dev', 'SJOZHUKUZL'), ('@deepbluev7:neko.dev', 'SUFAOAHAFX'), ('@deepbluev7:neko.dev', 'SXYRINNJOR'), ('@deepbluev7:neko.dev', 'TDXVQTYIQM'
), ('@deepbluev7:neko.dev', 'UGQUTGIQMS'), ('@deepbluev7:neko.dev', 'UMXQXCVUTI'), ('@deepbluev7:neko.dev', 'WEMHVDFQCA'), ('@deepbluev7:neko.dev', 'WGZSQQCJCG'), ('@deepbluev7:neko.dev', 'WNSGYIXLQH'), ('@deepbluev7:neko.dev', 'YBPCTFLJCO
'), ('@deepbluev7:neko.dev', 'YXIZBMTQMU'), ('@deepbluev7:neko.dev', 'ZSWRUXRMSQ'), ('@deepbluev7:neko.dev', 'e6WRBb/kGGRvArEJTqDy9AtJs99NLDntGs9yiImvSp4'), ('@deepbluev7:neko.dev', 'ogQMXmuP59LwXzflqmehkNREV4+1r+yUpf9iXVIYmzs')]
2021-08-19 18:03:37,117 - synapse.9533_debug - 432 - DEBUG - PUT-1192 - to-device messages stream id 197878, awaking streams for dict_keys(['@deepbluev7:neko.dev'])
2021-08-19 18:03:37,118 - synapse.access.http.8008 - 389 - INFO - PUT-1192 - 88.217.180.141 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.005sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.003sec/3) 2B 200 "PUT /_matrix/client/r0/sen
dToDevice/m.room_key_request/m1629396014600.11 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
2021-08-19 18:03:37,120 - synapse.9533_debug - 392 - DEBUG - replication_notifier-431 - get_all_new_device_messages: after sorting, got ([(197878, ('@deepbluev7:neko.dev',))], 197878, False)
2021-08-19 18:03:37,120 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-431 - Streaming: to_device -> 197878
2021-08-19 18:03:37,171 - synapse.replication.http.federation - 172 - INFO - POST-1193 - Got 'm.presence' edu from matrix.groener.app
2021-08-19 18:03:37,172 - synapse.replication.http.federation - 172 - INFO - POST-1194 - Got 'm.receipt' edu from matrix.groener.app
2021-08-19 18:03:37,177 - synapse.access.http.9893 - 389 - INFO - POST-1193 - 127.0.0.1 - 9893 - {None} Processed request: 0.006sec/-0.000sec (0.002sec, 0.000sec) (0.001sec/0.002sec/4) 4B 200 "POST /_synapse/replication/fed_send_edu/m.pres
ence/UIEOfPiDlH HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,178 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-432 - Streaming: presence -> 134230489
2021-08-19 18:03:37,181 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-432 - Streaming: receipts -> 10923237
2021-08-19 18:03:37,182 - synapse.access.http.9893 - 389 - INFO - POST-1194 - 127.0.0.1 - 9893 - {None} Processed request: 0.010sec/-0.000sec (0.003sec, 0.000sec) (0.001sec/0.004sec/5) 4B 200 "POST /_synapse/replication/fed_send_edu/m.rece
ipt/AuWnmbWcor HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,195 - synapse.9533_debug - 577 - DEBUG - PUT-1195 - Stored to-device messages with stream_id 197879 for [('@deepbluev7:neko.dev', 'TDXVQTYIQM')]
2021-08-19 18:03:37,196 - synapse.9533_debug - 432 - DEBUG - PUT-1195 - to-device messages stream id 197879, awaking streams for dict_keys(['@deepbluev7:neko.dev'])
2021-08-19 18:03:37,197 - synapse.access.http.8008 - 389 - INFO - PUT-1195 - 88.217.180.141 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.004sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.001sec/3) 2B 200 "PUT /_matrix/client/r0/sendToDevice/m.room.encrypted/2965REpGLME5TIoVeN4fzXVPauREeXso HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
2021-08-19 18:03:37,198 - synapse.access.http.9893 - 389 - INFO - POST-1196 - 127.0.0.1 - 9893 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "POST /_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,198 - synapse.9533_debug - 392 - DEBUG - replication_notifier-433 - get_all_new_device_messages: after sorting, got ([(197879, ('@deepbluev7:neko.dev',))], 197879, False)
2021-08-19 18:03:37,198 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-433 - Streaming: to_device -> 197879

synchroron1

@40000000611e9d1d240ff8dd 2021-08-19 18:03:36,604 - synapse.9533_debug - 432 - DEBUG - process-replication-data-752 - to-device messages stream id 197877, awaking streams for ['@deepbluev7:neko.dev']
@40000000611e9d1d24531897 2021-08-19 18:03:36,609 - synapse.9533_debug - 138 - DEBUG - GET-774 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197876 current_stream_id 197877 has_changed True
@40000000611e9d1d245814e9 2021-08-19 18:03:36,609 - synapse.9533_debug - 138 - DEBUG - GET-773 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197876 current_stream_id 197877 has_changed True
@40000000611e9d1d245c9608 2021-08-19 18:03:36,609 - synapse.9533_debug - 138 - DEBUG - GET-778 - get_new_messages_for_device user @deepbluev7:neko.dev device PCSZKSTRBC last_stream_id 197876 current_stream_id 197877 has_changed True
@40000000611e9d1d24664fc8 2021-08-19 18:03:36,610 - synapse.9533_debug - 172 - DEBUG - GET-774 - get_all_new_device_messages: after sorting, last_stream_id 197876, current_stream_id 197877 result ([{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'rBEzFYLrzzmctSdt'}], 197877)
@40000000611e9d1d246e3f3e 2021-08-19 18:03:36,611 - synapse.9533_debug - 189 - DEBUG - GET-774 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197877, device_list_key=134317919, groups_key=31)
@40000000611e9d1d246fe05c 2021-08-19 18:03:36,611 - synapse.9533_debug - 253 - DEBUG - GET-774 - to_device sent down in sync {'events': [{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1d247597d5 2021-08-19 18:03:36,611 - synapse.access.http.8091 - 389 - INFO - GET-774 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.525sec/-0.000sec (0.003sec, 0.001sec) (0.003sec/0.002sec/3) 407B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230487_70_10923236_512011_336_197876_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1d2478d3b0 2021-08-19 18:03:36,611 - synapse.9533_debug - 172 - DEBUG - GET-773 - get_all_new_device_messages: after sorting, last_stream_id 197876, current_stream_id 197877 result ([{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'rBEzFYLrzzmctSdt'}], 197877)
@40000000611e9d1d247e5bf6 2021-08-19 18:03:36,612 - synapse.9533_debug - 189 - DEBUG - GET-773 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197877, device_list_key=134317919, groups_key=31)
@40000000611e9d1d247fb222 2021-08-19 18:03:36,612 - synapse.9533_debug - 253 - DEBUG - GET-773 - to_device sent down in sync {'events': [{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1d24844d97 2021-08-19 18:03:36,612 - synapse.access.http.8091 - 389 - INFO - GET-773 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.527sec/-0.000sec (0.003sec, 0.000sec) (0.005sec/0.001sec/3) 388B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084279_134230487_70_10923236_512011_336_197876_134317919_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [0 dbevts]
@40000000611e9d1d248a60af 2021-08-19 18:03:36,612 - synapse.9533_debug - 172 - DEBUG - GET-778 - get_all_new_device_messages: after sorting, last_stream_id 197876, current_stream_id 197877 result ([{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'rBEzFYLrzzmctSdt'}], 197877)
@40000000611e9d1d248ff412 2021-08-19 18:03:36,613 - synapse.9533_debug - 189 - DEBUG - GET-778 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197877, device_list_key=134317919, groups_key=31)
@40000000611e9d1d24914184 2021-08-19 18:03:36,613 - synapse.9533_debug - 253 - DEBUG - GET-778 - to_device sent down in sync {'events': [{'content': {'action': 'request_cancellation', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1'}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1d2495bfbd 2021-08-19 18:03:36,613 - synapse.access.http.8091 - 389 - INFO - GET-778 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.068sec/-0.000sec (0.003sec, 0.000sec) (0.001sec/0.001sec/2) 388B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230488_70_10923236_512011_336_197876_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1d24a41fab 2021-08-19 18:03:36,614 - synapse.9533_debug - 203 - DEBUG - GET-780 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197876
@40000000611e9d1d24b0e220 2021-08-19 18:03:36,615 - synapse.9533_debug - 203 - DEBUG - GET-781 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197876
@40000000611e9d1d24b6dc53 2021-08-19 18:03:36,615 - synapse.9533_debug - 233 - DEBUG - GET-780 - deleted 1 messages for device
@40000000611e9d1d24b8ec5b 2021-08-19 18:03:36,615 - synapse.9533_debug - 242 - DEBUG - GET-780 - cache updated for (user, device) to 197877
@40000000611e9d1d24bc5111 2021-08-19 18:03:36,616 - synapse.9533_debug - 233 - DEBUG - GET-781 - deleted 1 messages for device
@40000000611e9d1d24bd55f4 2021-08-19 18:03:36,616 - synapse.9533_debug - 242 - DEBUG - GET-781 - cache updated for (user, device) to 197877
@40000000611e9d1d2641a6d7 2021-08-19 18:03:36,641 - synapse.http.client - 440 - INFO - GET-782 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1d26459fce 2021-08-19 18:03:36,642 - synapse.9533_debug - 203 - DEBUG - GET-782 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197877
@40000000611e9d1d26468beb 2021-08-19 18:03:36,642 - synapse.9533_debug - 216 - DEBUG - GET-782 - No changes in cache since last check
@40000000611e9d1d2664c50f 2021-08-19 18:03:36,644 - synapse.9533_debug - 138 - DEBUG - GET-782 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197876 current_stream_id 197877 has_changed True
@40000000611e9d1d266e2e26 2021-08-19 18:03:36,644 - synapse.9533_debug - 172 - DEBUG - GET-782 - get_all_new_device_messages: after sorting, last_stream_id 197876, current_stream_id 197877 result ([], 197877)
@40000000611e9d1d2728bb00 2021-08-19 18:03:36,656 - synapse.http.client - 440 - INFO - GET-783 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1d272c5a2f 2021-08-19 18:03:36,657 - synapse.9533_debug - 203 - DEBUG - GET-783 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197876
@40000000611e9d1d2739492d 2021-08-19 18:03:36,657 - synapse.9533_debug - 233 - DEBUG - GET-783 - deleted 1 messages for device
@40000000611e9d1d273a5499 2021-08-19 18:03:36,658 - synapse.9533_debug - 242 - DEBUG - GET-783 - cache updated for (user, device) to 197877
@40000000611e9d1e073d78fd 2021-08-19 18:03:37,121 - synapse.9533_debug - 432 - DEBUG - process-replication-data-753 - to-device messages stream id 197878, awaking streams for ['@deepbluev7:neko.dev']
@40000000611e9d1e079d0dac 2021-08-19 18:03:37,127 - synapse.9533_debug - 138 - DEBUG - GET-782 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197876 current_stream_id 197878 has_changed True
@40000000611e9d1e07a13c04 2021-08-19 18:03:37,127 - synapse.9533_debug - 138 - DEBUG - GET-783 - get_new_messages_for_device user @deepbluev7:neko.dev device PCSZKSTRBC last_stream_id 197877 current_stream_id 197878 has_changed True
@40000000611e9d1e07a4f286 2021-08-19 18:03:37,128 - synapse.9533_debug - 138 - DEBUG - GET-781 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197877 current_stream_id 197878 has_changed True
@40000000611e9d1e07ab785d 2021-08-19 18:03:37,128 - synapse.metrics - 598 - INFO - sentinel - Collecting gc 1
@40000000611e9d1e0876cfa0 2021-08-19 18:03:37,141 - synapse.9533_debug - 138 - DEBUG - GET-780 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197877 current_stream_id 197878 has_changed True
@40000000611e9d1e0879ef11 2021-08-19 18:03:37,142 - synapse.9533_debug - 172 - DEBUG - GET-782 - get_all_new_device_messages: after sorting, last_stream_id 197876, current_stream_id 197878 result ([{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'iwSvCvSROJnDhVKb'}], 197878)
@40000000611e9d1e0883c5a9 2021-08-19 18:03:37,142 - synapse.9533_debug - 189 - DEBUG - GET-782 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0885ae3e 2021-08-19 18:03:37,142 - synapse.9533_debug - 253 - DEBUG - GET-782 - to_device sent down in sync {'events': [{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e088d5543 2021-08-19 18:03:37,143 - synapse.access.http.8091 - 389 - INFO - GET-782 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.504sec/-0.000sec (0.005sec, 0.000sec) (0.005sec/0.002sec/4) 609B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230488_70_10923236_512011_336_197876_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1e08923893 2021-08-19 18:03:37,143 - synapse.9533_debug - 172 - DEBUG - GET-783 - get_all_new_device_messages: after sorting, last_stream_id 197877, current_stream_id 197878 result ([{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'iwSvCvSROJnDhVKb'}], 197878)
@40000000611e9d1e08989190 2021-08-19 18:03:37,144 - synapse.9533_debug - 189 - DEBUG - GET-783 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e089a3eda 2021-08-19 18:03:37,144 - synapse.9533_debug - 253 - DEBUG - GET-783 - to_device sent down in sync {'events': [{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e089f2086 2021-08-19 18:03:37,144 - synapse.access.http.8091 - 389 - INFO - GET-783 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.490sec/-0.000sec (0.002sec, 0.000sec) (0.003sec/0.001sec/3) 590B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230488_70_10923236_512011_336_197877_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1e08a5854b 2021-08-19 18:03:37,144 - synapse.9533_debug - 172 - DEBUG - GET-781 - get_all_new_device_messages: after sorting, last_stream_id 197877, current_stream_id 197878 result ([{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'iwSvCvSROJnDhVKb'}], 197878)
@40000000611e9d1e08ab06ad 2021-08-19 18:03:37,145 - synapse.9533_debug - 189 - DEBUG - GET-781 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e08aca192 2021-08-19 18:03:37,145 - synapse.9533_debug - 253 - DEBUG - GET-781 - to_device sent down in sync {'events': [{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e08b18691 2021-08-19 18:03:37,145 - synapse.access.http.8091 - 389 - INFO - GET-781 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.531sec/-0.000sec (0.003sec, 0.000sec) (0.002sec/0.014sec/3) 609B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230488_70_10923236_512011_336_197877_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1e08b4b5a0 2021-08-19 18:03:37,145 - synapse.9533_debug - 172 - DEBUG - GET-780 - get_all_new_device_messages: after sorting, last_stream_id 197877, current_stream_id 197878 result ([{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev', 'message_id': 'iwSvCvSROJnDhVKb'}], 197878)
@40000000611e9d1e08ba2856 2021-08-19 18:03:37,146 - synapse.9533_debug - 189 - DEBUG - GET-780 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230488, typing_key=70, receipt_key=10923236, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e08bbbbf3 2021-08-19 18:03:37,146 - synapse.9533_debug - 253 - DEBUG - GET-780 - to_device sent down in sync {'events': [{'content': {'action': 'request', 'requesting_device_id': 'TDXVQTYIQM', 'request_id': 'm1629396003600.1', 'body': {'room_id': '!CYvyeleADEeDAsndPa:ocean.joedonofry.com', 'algorithm': 'm.megolm.v1.aes-sha2', 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw', 'session_id': 'NhbIfVw/TUl4aGmDUaaZRcrKQopy57/zk2TrIyN5MqI'}}, 'type': 'm.room_key_request', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e08c0977a 2021-08-19 18:03:37,146 - synapse.access.http.8091 - 389 - INFO - GET-780 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.532sec/-0.000sec (0.004sec, 0.000sec) (0.004sec/0.002sec/3) 590B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084279_134230488_70_10923236_512011_336_197877_134317919_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [0 dbevts]
@40000000611e9d1e08dca088 2021-08-19 18:03:37,148 - synapse.9533_debug - 203 - DEBUG - GET-784 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197877
@40000000611e9d1e08ec73f3 2021-08-19 18:03:37,149 - synapse.9533_debug - 203 - DEBUG - GET-785 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197877
@40000000611e9d1e08f1156f 2021-08-19 18:03:37,149 - synapse.9533_debug - 233 - DEBUG - GET-784 - deleted 1 messages for device
@40000000611e9d1e08f36b0d 2021-08-19 18:03:37,150 - synapse.9533_debug - 242 - DEBUG - GET-784 - cache updated for (user, device) to 197878
@40000000611e9d1e08f9bd27 2021-08-19 18:03:37,150 - synapse.9533_debug - 233 - DEBUG - GET-785 - deleted 1 messages for device
@40000000611e9d1e08faef15 2021-08-19 18:03:37,150 - synapse.9533_debug - 242 - DEBUG - GET-785 - cache updated for (user, device) to 197878
@40000000611e9d1e0bbaa2d8 2021-08-19 18:03:37,196 - synapse.9533_debug - 189 - DEBUG - GET-785 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0bc3b90b 2021-08-19 18:03:37,197 - synapse.access.http.8091 - 389 - INFO - GET-785 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.048sec/-0.000sec (0.008sec, 0.000sec) (0.003sec/0.002sec/4) 729B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230488_70_10923236_512011_336_197878_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1e0bd35c70 2021-08-19 18:03:37,198 - synapse.9533_debug - 189 - DEBUG - GET-784 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197878, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0bddd052 2021-08-19 18:03:37,198 - synapse.access.http.8091 - 389 - INFO - GET-784 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.051sec/-0.000sec (0.007sec, 0.000sec) (0.004sec/0.004sec/3) 710B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084279_134230488_70_10923236_512011_336_197878_134317919_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [0 dbevts]
@40000000611e9d1e0be7fe08 2021-08-19 18:03:37,199 - synapse.http.client - 440 - INFO - GET-786 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e0bf00ddc 2021-08-19 18:03:37,200 - synapse.9533_debug - 203 - DEBUG - GET-786 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197877
@40000000611e9d1e0c00ba72 2021-08-19 18:03:37,201 - synapse.9533_debug - 432 - DEBUG - process-replication-data-756 - to-device messages stream id 197879, awaking streams for ['@deepbluev7:neko.dev']
@40000000611e9d1e0c0b2278 2021-08-19 18:03:37,201 - synapse.9533_debug - 233 - DEBUG - GET-786 - deleted 1 messages for device
@40000000611e9d1e0c0c4d15 2021-08-19 18:03:37,202 - synapse.9533_debug - 242 - DEBUG - GET-786 - cache updated for (user, device) to 197878
@40000000611e9d1e0c5257a7 2021-08-19 18:03:37,206 - synapse.9533_debug - 203 - DEBUG - GET-787 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197878
@40000000611e9d1e0c5f9ff4 2021-08-19 18:03:37,207 - synapse.9533_debug - 203 - DEBUG - GET-788 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197878
@40000000611e9d1e0c6a7138 2021-08-19 18:03:37,207 - synapse.9533_debug - 138 - DEBUG - GET-786 - get_new_messages_for_device user @deepbluev7:neko.dev device PCSZKSTRBC last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e0c6ecd00 2021-08-19 18:03:37,208 - synapse.9533_debug - 233 - DEBUG - GET-787 - deleted 0 messages for device
@40000000611e9d1e0c727cbd 2021-08-19 18:03:37,208 - synapse.9533_debug - 242 - DEBUG - GET-787 - cache updated for (user, device) to 197878
@40000000611e9d1e0c8f9b0a 2021-08-19 18:03:37,210 - synapse.9533_debug - 233 - DEBUG - GET-788 - deleted 0 messages for device
@40000000611e9d1e0c91f9e4 2021-08-19 18:03:37,210 - synapse.9533_debug - 242 - DEBUG - GET-788 - cache updated for (user, device) to 197878
@40000000611e9d1e0ca54077 2021-08-19 18:03:37,212 - synapse.9533_debug - 172 - DEBUG - GET-786 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1e0cabd704 2021-08-19 18:03:37,212 - synapse.9533_debug - 189 - DEBUG - GET-786 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0cb53204 2021-08-19 18:03:37,213 - synapse.access.http.8091 - 389 - INFO - GET-786 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.018sec/-0.000sec (0.008sec, 0.000sec) (0.001sec/0.004sec/3) 848B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230488_70_10923236_512011_336_197878_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1e0cb93f5e 2021-08-19 18:03:37,213 - synapse.9533_debug - 138 - DEBUG - GET-787 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e0cbf43fb 2021-08-19 18:03:37,213 - synapse.9533_debug - 138 - DEBUG - GET-788 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e0cc561c1 2021-08-19 18:03:37,214 - synapse.9533_debug - 172 - DEBUG - GET-787 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([{'content': {'algorithm': 'm.olm.v1.curve25519-aes-sha2', 'ciphertext': {'Ut/tPN9Ftrq8Nhb6e7WxNFEoiQZV/xOx3eojujPunxU': {'body': 'Awogma4E4ODWRrjhkuiDYLvaT5eYm7JLuCsjJkuvpf09hi4QhgIi0AaR61jlYt5aKIbCvK6JY+fogKb3LTRnnegB0r6drqjAWgU5aKez5tEpyJgzlcrzED5mM5vQQPWfQSlceBoH9kQCgtgG0kdbL4E3FEMN7y71TFXT+zyQ8TA1XeBmoFgt7bA5o2Typ/ccu7XIJapwVqdvEBx2ooRNwHb0BuTw+TcKCIM/YtAIMqe3hF0D8rXQE5jCWXdbv2Br06/mtqmYxNUmRauFYpLW4XaC7BKE8oURm8fM92YWNlbwhDFtjaBAkWNNb2U1FEyVnKiBBiED/UgUy+dI21L7GNlXl8O2fahyMdSMD9p5BNPbTJyugggjFWVwVPbEKQQx5iZwkC+H5JIfH3kc4sUnw94BbftAeUhMVlvMfOCgCbfbSQm8huJX/u902F8tuz/E5mPNju6KrPi5pMyvEVNkH8bYdy/JtFFQ6cFhS9ByIjX/3H8VBu/UcI6/cWbfQd+rPsXrTEMeEXD0G0DRSfpEwNn/IRPu7u07BsbGiMRnmLQp3/+xd3TvKegvC6sMMGioXzlcwaogGvqBF1ove8PlvlneXW5Ew3kHvDxvK8uY8vaqKjk+tdB2oqn6XKQIADgtrkQdm31twyLQYqOisbqmRYRvcGB2eUgfxFGJzJXc4i7D/8aEFfij/7oLdr5cyQvGafIHOECBKnMqYRrH8fIQeXZEIkltO3Y5nSSg5UhuZ4BV+EkVvrQaDNsa+f7INIZ+EogEroeP3rtFS3jWi9HWccSrtiYkBTPTmfgW5jiyVzbLUqpc5S31c7rwJPJY0zqcjXe2gQK6Dm71aMQBh+4rmCQa3dh0Y1LIqc0gxdrX7KRgiVQq9MpeIPJvu5184AJ0+hypkpgjTxdud4AYLfoOOSCedSvsHkGNkkSv4oLAcoFngzsGfGstCKvza1D33hHAlk3P8FzCJxESe+aCDbZCGiF5Gk1P2AmMIL8FXqlGe7tXyaXo2z7qfPmCbYYHSpxVAcbKBZeI7vY3qg8ejC6Bb22DApsWcgWYaOB+3TWvHkjnfpiOE0WypJzBcnvfRdvj/4bRWXaBX7zL0lncgorb10Tdfil6lNWhK6wa6PV/2FUFBIRBtdfKtmbN8TOsUSGvRwFFZ7hEGh3JSvDC1h+cFF3AmEEpQP9djPtXY+0H5DJ3', 'type': 1}}, 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw'}, 'type': 'm.room.encrypted', 'sender': '@deepbluev7:neko.dev', 'message_id': 'zlpTrqrpKbDIccmB'}], 197879)
@40000000611e9d1e0ccc7e27 2021-08-19 18:03:37,214 - synapse.9533_debug - 189 - DEBUG - GET-787 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0cce6ace 2021-08-19 18:03:37,214 - synapse.9533_debug - 253 - DEBUG - GET-787 - to_device sent down in sync {'events': [{'content': {'algorithm': 'm.olm.v1.curve25519-aes-sha2', 'ciphertext': {'Ut/tPN9Ftrq8Nhb6e7WxNFEoiQZV/xOx3eojujPunxU': {'body': 'Awogma4E4ODWRrjhkuiDYLvaT5eYm7JLuCsjJkuvpf09hi4QhgIi0AaR61jlYt5aKIbCvK6JY+fogKb3LTRnnegB0r6drqjAWgU5aKez5tEpyJgzlcrzED5mM5vQQPWfQSlceBoH9kQCgtgG0kdbL4E3FEMN7y71TFXT+zyQ8TA1XeBmoFgt7bA5o2Typ/ccu7XIJapwVqdvEBx2ooRNwHb0BuTw+TcKCIM/YtAIMqe3hF0D8rXQE5jCWXdbv2Br06/mtqmYxNUmRauFYpLW4XaC7BKE8oURm8fM92YWNlbwhDFtjaBAkWNNb2U1FEyVnKiBBiED/UgUy+dI21L7GNlXl8O2fahyMdSMD9p5BNPbTJyugggjFWVwVPbEKQQx5iZwkC+H5JIfH3kc4sUnw94BbftAeUhMVlvMfOCgCbfbSQm8huJX/u902F8tuz/E5mPNju6KrPi5pMyvEVNkH8bYdy/JtFFQ6cFhS9ByIjX/3H8VBu/UcI6/cWbfQd+rPsXrTEMeEXD0G0DRSfpEwNn/IRPu7u07BsbGiMRnmLQp3/+xd3TvKegvC6sMMGioXzlcwaogGvqBF1ove8PlvlneXW5Ew3kHvDxvK8uY8vaqKjk+tdB2oqn6XKQIADgtrkQdm31twyLQYqOisbqmRYRvcGB2eUgfxFGJzJXc4i7D/8aEFfij/7oLdr5cyQvGafIHOECBKnMqYRrH8fIQeXZEIkltO3Y5nSSg5UhuZ4BV+EkVvrQaDNsa+f7INIZ+EogEroeP3rtFS3jWi9HWccSrtiYkBTPTmfgW5jiyVzbLUqpc5S31c7rwJPJY0zqcjXe2gQK6Dm71aMQBh+4rmCQa3dh0Y1LIqc0gxdrX7KRgiVQq9MpeIPJvu5184AJ0+hypkpgjTxdud4AYLfoOOSCedSvsHkGNkkSv4oLAcoFngzsGfGstCKvza1D33hHAlk3P8FzCJxESe+aCDbZCGiF5Gk1P2AmMIL8FXqlGe7tXyaXo2z7qfPmCbYYHSpxVAcbKBZeI7vY3qg8ejC6Bb22DApsWcgWYaOB+3TWvHkjnfpiOE0WypJzBcnvfRdvj/4bRWXaBX7zL0lncgorb10Tdfil6lNWhK6wa6PV/2FUFBIRBtdfKtmbN8TOsUSGvRwFFZ7hEGh3JSvDC1h+cFF3AmEEpQP9djPtXY+0H5DJ3', 'type': 1}}, 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw'}, 'type': 'm.room.encrypted', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e0cd39dcd 2021-08-19 18:03:37,215 - synapse.access.http.8091 - 389 - INFO - GET-787 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.009sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.002sec/3) 1685B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197878_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1e0cd8743d 2021-08-19 18:03:37,215 - synapse.9533_debug - 172 - DEBUG - GET-788 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1e0d115a79 2021-08-19 18:03:37,219 - synapse.9533_debug - 203 - DEBUG - GET-790 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197878
@40000000611e9d1e0d1d53d8 2021-08-19 18:03:37,219 - synapse.9533_debug - 233 - DEBUG - GET-790 - deleted 1 messages for device
@40000000611e9d1e0d1e7556 2021-08-19 18:03:37,220 - synapse.9533_debug - 242 - DEBUG - GET-790 - cache updated for (user, device) to 197879
@40000000611e9d1e0f532d3b 2021-08-19 18:03:37,256 - synapse.http.client - 440 - INFO - GET-791 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e0f57968e 2021-08-19 18:03:37,257 - synapse.9533_debug - 203 - DEBUG - GET-791 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197878
@40000000611e9d1e0f7105e7 2021-08-19 18:03:37,258 - synapse.9533_debug - 233 - DEBUG - GET-791 - deleted 0 messages for device
@40000000611e9d1e0f7226b0 2021-08-19 18:03:37,259 - synapse.9533_debug - 242 - DEBUG - GET-791 - cache updated for (user, device) to 197879
@40000000611e9d1e0f7cbab4 2021-08-19 18:03:37,259 - synapse.http.client - 440 - INFO - GET-792 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e0f807a05 2021-08-19 18:03:37,260 - synapse.9533_debug - 203 - DEBUG - GET-792 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1e0f816afc 2021-08-19 18:03:37,260 - synapse.9533_debug - 216 - DEBUG - GET-792 - No changes in cache since last check
@40000000611e9d1e0fc21855 2021-08-19 18:03:37,264 - synapse.9533_debug - 138 - DEBUG - GET-792 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e0fceee8c 2021-08-19 18:03:37,265 - synapse.9533_debug - 172 - DEBUG - GET-792 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1e0fd4e9ce 2021-08-19 18:03:37,265 - synapse.9533_debug - 189 - DEBUG - GET-792 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0fdd4e53 2021-08-19 18:03:37,266 - synapse.access.http.8091 - 389 - INFO - GET-792 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.008sec/-0.000sec (0.006sec, 0.000sec) (0.000sec/0.001sec/2) 867B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230488_70_10923236_512011_336_197878_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1e16e33ce3 2021-08-19 18:03:37,383 - synapse.http.client - 440 - INFO - GET-794 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e16e89e1a 2021-08-19 18:03:37,384 - synapse.9533_debug - 203 - DEBUG - GET-794 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1e16e9e70c 2021-08-19 18:03:37,384 - synapse.9533_debug - 216 - DEBUG - GET-794 - No changes in cache since last check
@40000000611e9d1e33fb44d4 2021-08-19 18:03:37,871 - synapse.9533_debug - 189 - DEBUG - GET-794 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230490, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e34018493 2021-08-19 18:03:37,872 - synapse.access.http.8091 - 389 - INFO - GET-794 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.491sec/-0.000sec (0.003sec, 0.000sec) (0.003sec/0.001sec/1) 375B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197879_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1e340e20d4 2021-08-19 18:03:37,873 - synapse.9533_debug - 138 - DEBUG - GET-788 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e3417453c 2021-08-19 18:03:37,873 - synapse.9533_debug - 189 - DEBUG - GET-791 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230490, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e341e6242 2021-08-19 18:03:37,874 - synapse.access.http.8091 - 389 - INFO - GET-791 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.620sec/-0.000sec (0.003sec, 0.000sec) (0.003sec/0.002sec/2) 356B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230489_70_10923237_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1e3423e6d1 2021-08-19 18:03:37,874 - synapse.9533_debug - 172 - DEBUG - GET-788 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1e34d00fc8 2021-08-19 18:03:37,885 - synapse.9533_debug - 138 - DEBUG - GET-788 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e34db3bc4 2021-08-19 18:03:37,886 - synapse.9533_debug - 172 - DEBUG - GET-788 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1e36a52cc6 2021-08-19 18:03:37,916 - synapse.http.client - 440 - INFO - GET-795 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e36a9c479 2021-08-19 18:03:37,917 - synapse.9533_debug - 203 - DEBUG - GET-795 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197879
@40000000611e9d1e36aaaedd 2021-08-19 18:03:37,917 - synapse.9533_debug - 216 - DEBUG - GET-795 - No changes in cache since last check
@40000000611e9d1e36ca1e01 2021-08-19 18:03:37,919 - synapse.9533_debug - 189 - DEBUG - GET-795 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e36cf185e 2021-08-19 18:03:37,919 - synapse.access.http.8091 - 389 - INFO - GET-795 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.005sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/1) 358B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230490_70_10923237_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1e3953ef9e 2021-08-19 18:03:37,961 - synapse.http.client - 440 - INFO - GET-797 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e39581062 2021-08-19 18:03:37,962 - synapse.9533_debug - 203 - DEBUG - GET-797 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197879
@40000000611e9d1e395904ca 2021-08-19 18:03:37,962 - synapse.9533_debug - 216 - DEBUG - GET-797 - No changes in cache since last check
@40000000611e9d1e3ab03976 2021-08-19 18:03:37,984 - synapse.http.client - 440 - INFO - GET-798 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1e3ab40dd5 2021-08-19 18:03:37,984 - synapse.9533_debug - 203 - DEBUG - GET-798 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1e3ab4fa5f 2021-08-19 18:03:37,984 - synapse.9533_debug - 216 - DEBUG - GET-798 - No changes in cache since last check
@40000000611e9d1e3ad88418 2021-08-19 18:03:37,987 - synapse.9533_debug - 189 - DEBUG - GET-798 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e3add75a7 2021-08-19 18:03:37,987 - synapse.access.http.8091 - 389 - INFO - GET-798 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.005sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/1) 377B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230490_70_10923237_512011_336_197879_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1f05ee32c6 2021-08-19 18:03:38,099 - synapse.http.client - 440 - INFO - GET-800 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f05f2805a 2021-08-19 18:03:38,099 - synapse.9533_debug - 203 - DEBUG - GET-800 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1f05f37762 2021-08-19 18:03:38,099 - synapse.9533_debug - 216 - DEBUG - GET-800 - No changes in cache since last check
@40000000611e9d1f10fcb2ae 2021-08-19 18:03:38,284 - synapse.9533_debug - 189 - DEBUG - GET-790 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f110789e5 2021-08-19 18:03:38,285 - synapse.access.http.8091 - 389 - INFO - GET-790 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 1.067sec/-0.000sec (0.007sec, 0.001sec) (0.008sec/0.005sec/4) 726B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197879_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1f110d1846 2021-08-19 18:03:38,285 - synapse.9533_debug - 138 - DEBUG - GET-788 - get_new_messages_for_device user @deepbluev7:neko.dev device BHXAVBBPVG last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1f11199d8e 2021-08-19 18:03:38,286 - synapse.9533_debug - 189 - DEBUG - GET-800 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f11224b93 2021-08-19 18:03:38,287 - synapse.access.http.8091 - 389 - INFO - GET-800 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.191sec/-0.000sec (0.005sec, 0.000sec) (0.003sec/0.001sec/1) 726B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230491_70_10923237_512011_336_197879_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1f112a9032 2021-08-19 18:03:38,287 - synapse.9533_debug - 189 - DEBUG - GET-797 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f11317ca7 2021-08-19 18:03:38,288 - synapse.access.http.8091 - 389 - INFO - GET-797 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.329sec/-0.000sec (0.005sec, 0.000sec) (0.003sec/0.002sec/2) 707B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230491_70_10923237_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1f1138fc25 2021-08-19 18:03:38,288 - synapse.9533_debug - 172 - DEBUG - GET-788 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([], 197879)
@40000000611e9d1f113ea6c7 2021-08-19 18:03:38,289 - synapse.9533_debug - 189 - DEBUG - GET-788 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f11459b38 2021-08-19 18:03:38,289 - synapse.access.http.8091 - 389 - INFO - GET-788 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 1.082sec/-0.000sec (0.007sec, 0.003sec) (0.005sec/0.010sec/9) 707B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084279_134230489_70_10923237_512011_336_197878_134317919_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [0 dbevts]
@40000000611e9d1f115148b4 2021-08-19 18:03:38,290 - synapse.9533_debug - 203 - DEBUG - GET-801 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1f11524247 2021-08-19 18:03:38,290 - synapse.9533_debug - 216 - DEBUG - GET-801 - No changes in cache since last check
@40000000611e9d1f116fbb56 2021-08-19 18:03:38,292 - synapse.9533_debug - 203 - DEBUG - GET-802 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197878
@40000000611e9d1f117e09b2 2021-08-19 18:03:38,293 - synapse.9533_debug - 233 - DEBUG - GET-802 - deleted 0 messages for device
@40000000611e9d1f117f3f76 2021-08-19 18:03:38,293 - synapse.9533_debug - 242 - DEBUG - GET-802 - cache updated for (user, device) to 197879
@40000000611e9d1f147fe483 2021-08-19 18:03:38,343 - synapse.http.client - 440 - INFO - GET-803 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f14849918 2021-08-19 18:03:38,344 - synapse.9533_debug - 203 - DEBUG - GET-803 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197879
@40000000611e9d1f1485a25d 2021-08-19 18:03:38,344 - synapse.9533_debug - 216 - DEBUG - GET-803 - No changes in cache since last check
@40000000611e9d1f16e314f1 2021-08-19 18:03:38,383 - synapse.9533_debug - 189 - DEBUG - GET-803 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f16e912be 2021-08-19 18:03:38,384 - synapse.access.http.8091 - 389 - INFO - GET-803 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.043sec/-0.000sec (0.003sec, 0.000sec) (0.001sec/0.000sec/1) 319B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230491_70_10923238_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1f180ab249 2021-08-19 18:03:38,403 - synapse.http.client - 440 - INFO - GET-805 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f180f386a 2021-08-19 18:03:38,403 - synapse.9533_debug - 203 - DEBUG - GET-805 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1f18103058 2021-08-19 18:03:38,403 - synapse.9533_debug - 216 - DEBUG - GET-805 - No changes in cache since last check
@40000000611e9d1f18303ae5 2021-08-19 18:03:38,405 - synapse.9533_debug - 189 - DEBUG - GET-805 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f18355f41 2021-08-19 18:03:38,406 - synapse.access.http.8091 - 389 - INFO - GET-805 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.005sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/1) 338B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230491_70_10923238_512011_336_197879_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1f1980cf1d 2021-08-19 18:03:38,427 - synapse.http.client - 440 - INFO - GET-806 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f19855c7b 2021-08-19 18:03:38,428 - synapse.9533_debug - 203 - DEBUG - GET-806 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197879
@40000000611e9d1f19865a16 2021-08-19 18:03:38,428 - synapse.9533_debug - 216 - DEBUG - GET-806 - No changes in cache since last check
@40000000611e9d1f20932aee 2021-08-19 18:03:38,546 - synapse.http.client - 440 - INFO - GET-808 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f2099863a 2021-08-19 18:03:38,546 - synapse.9533_debug - 203 - DEBUG - GET-808 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1f209a7781 2021-08-19 18:03:38,546 - synapse.9533_debug - 216 - DEBUG - GET-808 - No changes in cache since last check
@40000000611e9d1f29ec1627 2021-08-19 18:03:38,703 - synapse.9533_debug - 189 - DEBUG - GET-806 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f29f62543 2021-08-19 18:03:38,703 - synapse.access.http.8091 - 389 - INFO - GET-806 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.279sec/-0.000sec (0.062sec, 0.007sec) (0.008sec/0.146sec/6) 1003B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084279_134230492_70_10923238_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1f2d4b387e 2021-08-19 18:03:38,759 - synapse.http.client - 440 - INFO - GET-809 - Received response to POST http://127.0.0.1:9893/_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev: 200
@40000000611e9d1f2d4f8e0d 2021-08-19 18:03:38,760 - synapse.9533_debug - 203 - DEBUG - GET-809 - delete_messages_for_device: user @deepbluev7:neko.dev device PCSZKSTRBC; cache says last_deleted_stream_id=197879
@40000000611e9d1f2d508a67 2021-08-19 18:03:38,760 - synapse.9533_debug - 216 - DEBUG - GET-809 - No changes in cache since last check
@40000000611e9d1f2e775e31 2021-08-19 18:03:38,779 - synapse.9533_debug - 189 - DEBUG - GET-808 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f2e828cfe 2021-08-19 18:03:38,780 - synapse.access.http.8091 - 389 - INFO - GET-808 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.246sec/-0.000sec (0.010sec, 0.002sec) (0.009sec/0.113sec/9) 1353B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s7084279_134230492_70_10923238_512011_336_197879_134317919_31 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
@40000000611e9d1f327ad474 2021-08-19 18:03:38,846 - synapse.9533_debug - 189 - DEBUG - GET-809 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317920, groups_key=31)
@40000000611e9d1f3282e61f 2021-08-19 18:03:38,847 - synapse.access.http.8091 - 389 - INFO - GET-809 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.090sec/-0.000sec (0.003sec, 0.000sec) (0.008sec/0.002sec/2) 245B 200 "GET /_matrix/client/r0/sync?set_presence=online&since=s7084280_134230492_70_10923238_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
@40000000611e9d1f3292b3b5 2021-08-19 18:03:38,848 - synapse.9533_debug - 189 - DEBUG - GET-802 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317920, groups_key=31)
@40000000611e9d1f329950df 2021-08-19 18:03:38,848 - synapse.access.http.8091 - 389 - INFO - GET-802 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.557sec/-0.000sec (0.015sec, 0.001sec) (0.009sec/0.008sec/7) 245B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084279_134230491_70_10923238_512011_336_197879_134317919_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [1 dbevts]
@40000000611e9d1f32a19311 2021-08-19 18:03:38,849 - synapse.9533_debug - 189 - DEBUG - GET-801 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317920, groups_key=31)
@40000000611e9d1f32a6328e 2021-08-19 18:03:38,849 - synapse.access.http.8091 - 389 - INFO - GET-801 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.559sec/-0.000sec (0.041sec, 0.001sec) (0.009sec/0.067sec/7) 264B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230491_70_10923238_512011_336_197879_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1f32b50b39 2021-08-19 18:03:38,850 - synapse.9533_debug - 203 - DEBUG - GET-810 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197879
@40000000611e9d1f32b5f4a2 2021-08-19 18:03:38,850 - synapse.9533_debug - 216 - DEBUG - GET-810 - No changes in cache since last check
@40000000611e9d1f32d8c625 2021-08-19 18:03:38,852 - synapse.9533_debug - 203 - DEBUG - GET-811 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879
@40000000611e9d1f32d9f02b 2021-08-19 18:03:38,853 - synapse.9533_debug - 216 - DEBUG - GET-811 - No changes in cache since last check
@40000000611e9d1f32ff7325 2021-08-19 18:03:38,855 - synapse.9533_debug - 189 - DEBUG - GET-810 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317922, groups_key=31)
@40000000611e9d1f330553c0 2021-08-19 18:03:38,855 - synapse.access.http.8091 - 389 - INFO - GET-810 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.006sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.001sec/2) 245B 200 "GET /_matrix/client/r0/sync?filter=9&set_presence=offline&since=s7084280_134230492_70_10923238_512011_336_197879_134317920_31&timeout=30000 HTTP/1.0" "mautrix-whatsapp/0.1.7+dev.unknown mautrix-go/v0.9.14" [0 dbevts]
@40000000611e9d1f330dac69 2021-08-19 18:03:38,856 - synapse.9533_debug - 189 - DEBUG - GET-811 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084280, instance_map={}), presence_key=134230492, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317922, groups_key=31)
@40000000611e9d1f33129411 2021-08-19 18:03:38,856 - synapse.access.http.8091 - 389 - INFO - GET-811 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.004sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.001sec/2) 264B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084280_134230492_70_10923238_512011_336_197879_134317920_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]
@40000000611e9d1f331f5a15 2021-08-19 18:03:38,857 - synapse.9533_debug - 203 - DEBUG - GET-812 - delete_messages_for_device: user @deepbluev7:neko.dev device BHXAVBBPVG; cache says last_deleted_stream_id=197879
@40000000611e9d1f33205221 2021-08-19 18:03:38,857 - synapse.9533_debug - 216 - DEBUG - GET-812 - No changes in cache since last check
@40000000611e9d1f333d601c 2021-08-19 18:03:38,859 - synapse.9533_debug - 203 - DEBUG - GET-813 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197879

Didn't route any traffic to synchrotron2

TTP/1.1" "Prometheus/2.26.1" [0 dbevts]
@40000000611d598e2db1a46a 2021-08-18 19:03:05,766 - synapse.util.caches.lrucache - 162 - INFO - LruCache._expire_old_entries-431 - Dropped 6 items from caches
@40000000611d599023d6bbc3 2021-08-18 19:03:07,601 - synapse.access.http.9109 - 389 - INFO - GET-864 - ::1 - 9109 - {None} Processed request: 0.013sec/-0.000sec (0.013sec, 0.000sec) (0.000sec/0.000sec/0) 146623B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]
@40000000611d599f23d83edd 2021-08-18 19:03:22,601 - synapse.access.http.9109 - 389 - INFO - GET-865 - ::1 - 9109 - {None} Processed request: 0.013sec/-0.000sec (0.013sec, 0.000sec) (0.000sec/0.000sec/0) 146593B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]
@40000000611d59ac2dba3f64 2021-08-18 19:03:35,766 - synapse.util.caches.lrucache - 162 - INFO - LruCache._expire_old_entries-432 - Dropped 5 items from caches
@40000000611d59ae23d6b19b 2021-08-18 19:03:37,601 - synapse.access.http.9109 - 389 - INFO - GET-866 - ::1 - 9109 - {None} Processed request: 0.013sec/-0.000sec (0.012sec, 0.001sec) (0.000sec/0.000sec/0) 146597B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]
@40000000611d59bb2b984191 2021-08-18 19:03:50,731 - synapse.metrics - 598 - INFO - sentinel - Collecting gc 1
@40000000611d59bd23cf53d9 2021-08-18 19:03:52,600 - synapse.access.http.9109 - 389 - INFO - GET-867 - ::1 - 9109 - {None} Processed request: 0.013sec/-0.000sec (0.012sec, 0.000sec) (0.000sec/0.000sec/0) 146601B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]

event creator

2021-08-19 18:03:26,297 - synapse.access.http.8086 - 389 - INFO - GET-38 - 127.0.0.1 - 8086 - {None} Processed request: 0.002sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.001sec/2) 77B 200 "GET /_matrix/client/r0/profile/%40deepbluev7%3Aneko.dev HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]
2021-08-19 18:03:26,303 - synapse.access.http.9894 - 389 - INFO - POST-37 - 127.0.0.1 - 9894 - {None} Processed request: 0.271sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/OhfgsnrpRs HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:26,304 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-42 - Streaming: caches -> 2959632
2021-08-19 18:03:26,309 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-42 - Streaming: events -> 7084277
2021-08-19 18:03:26,509 - synapse.9533_debug - 432 - DEBUG - process-replication-data-567 - to-device messages stream id 197843, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:26,539 - synapse.replication.http.federation - 128 - INFO - POST-39 - Got 1 events from federation
2021-08-19 18:03:26,586 - synapse.9533_debug - 432 - DEBUG - process-replication-data-568 - to-device messages stream id 197844, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:26,626 - synapse.state - 584 - INFO - persist_events-27 - Resolving state for !ZjZUpZpLKxVfAEWyjp:matrix.org with groups [1140310, 1294159]
2021-08-19 18:03:26,636 - synapse.state.v1 - 83 - INFO - persist_events-27 - Asking for 3409/3410 conflicted events
2021-08-19 18:03:26,657 - synapse.9533_debug - 432 - DEBUG - process-replication-data-569 - to-device messages stream id 197845, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:26,674 - synapse.state.v1 - 117 - INFO - persist_events-27 - Asking for 3/3 auth events
2021-08-19 18:03:26,783 - synapse.9533_debug - 432 - DEBUG - process-replication-data-570 - to-device messages stream id 197846, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:26,793 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-43 - Streaming: caches -> 2959633
2021-08-19 18:03:26,794 - synapse.access.http.9894 - 389 - INFO - POST-39 - 127.0.0.1 - 9894 - {None} Processed request: 0.256sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/WsgxsDWeyY HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:26,798 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-44 - Streaming: events -> 7084278
2021-08-19 18:03:26,849 - synapse.9533_debug - 432 - DEBUG - process-replication-data-571 - to-device messages stream id 197847, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:26,966 - synapse.9533_debug - 432 - DEBUG - process-replication-data-573 - to-device messages stream id 197848, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,005 - synapse.9533_debug - 432 - DEBUG - process-replication-data-574 - to-device messages stream id 197849, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,019 - synapse.9533_debug - 432 - DEBUG - process-replication-data-575 - to-device messages stream id 197850, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,049 - synapse.9533_debug - 432 - DEBUG - process-replication-data-576 - to-device messages stream id 197851, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,143 - synapse.9533_debug - 432 - DEBUG - process-replication-data-578 - to-device messages stream id 197852, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,176 - synapse.9533_debug - 432 - DEBUG - process-replication-data-579 - to-device messages stream id 197853, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,190 - synapse.9533_debug - 432 - DEBUG - process-replication-data-580 - to-device messages stream id 197854, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,212 - synapse.9533_debug - 432 - DEBUG - process-replication-data-581 - to-device messages stream id 197855, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,271 - synapse.9533_debug - 432 - DEBUG - process-replication-data-583 - to-device messages stream id 197856, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,308 - synapse.9533_debug - 432 - DEBUG - process-replication-data-584 - to-device messages stream id 197857, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,326 - synapse.9533_debug - 432 - DEBUG - process-replication-data-585 - to-device messages stream id 197858, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,340 - synapse.9533_debug - 432 - DEBUG - process-replication-data-586 - to-device messages stream id 197859, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,387 - synapse.9533_debug - 432 - DEBUG - process-replication-data-588 - to-device messages stream id 197860, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,424 - synapse.9533_debug - 432 - DEBUG - process-replication-data-589 - to-device messages stream id 197861, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,437 - synapse.9533_debug - 432 - DEBUG - process-replication-data-590 - to-device messages stream id 197862, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,453 - synapse.9533_debug - 432 - DEBUG - process-replication-data-591 - to-device messages stream id 197863, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,540 - synapse.9533_debug - 432 - DEBUG - process-replication-data-593 - to-device messages stream id 197864, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,579 - synapse.9533_debug - 432 - DEBUG - process-replication-data-594 - to-device messages stream id 197865, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,605 - synapse.9533_debug - 432 - DEBUG - process-replication-data-595 - to-device messages stream id 197866, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,625 - synapse.9533_debug - 432 - DEBUG - process-replication-data-596 - to-device messages stream id 197867, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,657 - synapse.9533_debug - 432 - DEBUG - process-replication-data-598 - to-device messages stream id 197868, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,730 - synapse.9533_debug - 432 - DEBUG - process-replication-data-599 - to-device messages stream id 197869, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,840 - synapse.9533_debug - 432 - DEBUG - process-replication-data-601 - to-device messages stream id 197870, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,906 - synapse.9533_debug - 432 - DEBUG - process-replication-data-602 - to-device messages stream id 197871, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:27,950 - synapse.9533_debug - 432 - DEBUG - process-replication-data-604 - to-device messages stream id 197872, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:28,018 - synapse.9533_debug - 432 - DEBUG - process-replication-data-605 - to-device messages stream id 197873, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:28,152 - synapse.9533_debug - 432 - DEBUG - process-replication-data-606 - to-device messages stream id 197874, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:28,299 - synapse.9533_debug - 432 - DEBUG - process-replication-data-608 - to-device messages stream id 197875, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:29,981 - synapse.replication.http.federation - 128 - INFO - POST-40 - Got 1 events from federation
2021-08-19 18:03:29,997 - synapse.state - 584 - INFO - persist_events-28 - Resolving state for !zhjTDwPBXQsxYLswii:libera.chat with groups [1294160, 1168774, 1139982]
2021-08-19 18:03:30,863 - synapse.9533_debug - 432 - DEBUG - process-replication-data-618 - to-device messages stream id 197876, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:32,440 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-45 - Streaming: caches -> 2959634
2021-08-19 18:03:32,441 - synapse.access.http.9894 - 389 - INFO - POST-40 - 127.0.0.1 - 9894 - {None} Processed request: 2.461sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/XsWjGgPkcD HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:32,445 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-46 - Streaming: events -> 7084279
2021-08-19 18:03:33,716 - synapse.access.http.9102 - 389 - INFO - GET-41 - ::1 - 9102 - {None} Processed request: 0.024sec/-0.000sec (0.024sec, 0.000sec) (0.000sec/0.000sec/0) 267356B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]
2021-08-19 18:03:36,605 - synapse.9533_debug - 432 - DEBUG - process-replication-data-635 - to-device messages stream id 197877, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:37,121 - synapse.9533_debug - 432 - DEBUG - process-replication-data-636 - to-device messages stream id 197878, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:37,199 - synapse.9533_debug - 432 - DEBUG - process-replication-data-639 - to-device messages stream id 197879, awaking streams for ['@deepbluev7:neko.dev']
2021-08-19 18:03:38,321 - synapse.replication.http.federation - 128 - INFO - POST-42 - Got 1 events from federation
2021-08-19 18:03:38,512 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-47 - Streaming: caches -> 2959635
2021-08-19 18:03:38,513 - synapse.access.http.9894 - 389 - INFO - POST-42 - 127.0.0.1 - 9894 - {None} Processed request: 0.192sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/kyxTUWrlUJ HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:38,517 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-48 - Streaming: events -> 7084280
2021-08-19 18:03:40,031 - synapse.replication.http.federation - 128 - INFO - POST-43 - Got 1 events from federation
2021-08-19 18:03:40,047 - synapse.state - 584 - INFO - persist_events-30 - Resolving state for !zhjTDwPBXQsxYLswii:libera.chat with groups [1294161, 1168774, 1139982]
2021-08-19 18:03:42,488 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-50 - Streaming: caches -> 2959638
2021-08-19 18:03:42,489 - synapse.access.http.9894 - 389 - INFO - POST-43 - 127.0.0.1 - 9894 - {None} Processed request: 2.458sec/-0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/zGThnfCLHV HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:42,492 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-51 - Streaming: events -> 7084281
2021-08-19 18:03:42,932 - synapse.replication.http.federation - 128 - INFO - POST-44 - Got 1 events from federation
2021-08-19 18:03:42,935 - synapse.metrics - 598 - INFO - sentinel - Collecting gc 1
2021-08-19 18:03:42,952 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-52 - Streaming: caches -> 2959639
2021-08-19 18:03:42,953 - synapse.access.http.9894 - 389 - INFO - POST-44 - 127.0.0.1 - 9894 - {None} Processed request: 0.021sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 25B 200 "POST /_synapse/replication/fed_send_events/pFZHVrOkGp HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:42,958 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-53 - Streaming: events -> 7084282
2021-08-19 18:03:48,715 - synapse.access.http.9102 - 389 - INFO - GET-45 - ::1 - 9102 - {None} Processed request: 0.023sec/-0.000sec (0.024sec, 0.000sec) (0.000sec/0.000sec/0) 268263B 200 "GET /_synapse/metrics HTTP/1.1" "Prometheus/2.26.1" [0 dbevts]

@DMRobertson
Copy link
Contributor

DMRobertson commented Aug 20, 2021

@deepbluev7 many thanks for those logs. I think you're saying that PCSZKSTRBC responded to the key request, but that TDXVQTYIQM didn't seem to get that response? Assuming that to be the case, I can't see anything obviously wrong on Synapse's end (though my eyeballs are still new).

In particular, logging claims we sent down a to_device message in our response to GET-787:

@40000000611e9d1e0cce6ace 2021-08-19 18:03:37,214 - synapse.9533_debug - 253 - DEBUG - GET-787 - to_device sent down in sync {'events': [{'content': {'algorithm': 'm.olm.v1.curve25519-aes-sha2', 'ciphertext': {'Ut/tPN9Ftrq8Nhb6e7WxNFEoiQZV/xOx3eojujPunxU': {'body': 'Awogma4E4ODWRrjhkuiDYLvaT5eYm7JLuCsjJkuvpf09hi4QhgIi0AaR61jlYt5aKIbCvK6JY+fogKb3LTRnnegB0r6drqjAWgU5aKez5tEpyJgzlcrzED5mM5vQQPWfQSlceBoH9kQCgtgG0kdbL4E3FEMN7y71TFXT+zyQ8TA1XeBmoFgt7bA5o2Typ/ccu7XIJapwVqdvEBx2ooRNwHb0BuTw+TcKCIM/YtAIMqe3hF0D8rXQE5jCWXdbv2Br06/mtqmYxNUmRauFYpLW4XaC7BKE8oURm8fM92YWNlbwhDFtjaBAkWNNb2U1FEyVnKiBBiED/UgUy+dI21L7GNlXl8O2fahyMdSMD9p5BNPbTJyugggjFWVwVPbEKQQx5iZwkC+H5JIfH3kc4sUnw94BbftAeUhMVlvMfOCgCbfbSQm8huJX/u902F8tuz/E5mPNju6KrPi5pMyvEVNkH8bYdy/JtFFQ6cFhS9ByIjX/3H8VBu/UcI6/cWbfQd+rPsXrTEMeEXD0G0DRSfpEwNn/IRPu7u07BsbGiMRnmLQp3/+xd3TvKegvC6sMMGioXzlcwaogGvqBF1ove8PlvlneXW5Ew3kHvDxvK8uY8vaqKjk+tdB2oqn6XKQIADgtrkQdm31twyLQYqOisbqmRYRvcGB2eUgfxFGJzJXc4i7D/8aEFfij/7oLdr5cyQvGafIHOECBKnMqYRrH8fIQeXZEIkltO3Y5nSSg5UhuZ4BV+EkVvrQaDNsa+f7INIZ+EogEroeP3rtFS3jWi9HWccSrtiYkBTPTmfgW5jiyVzbLUqpc5S31c7rwJPJY0zqcjXe2gQK6Dm71aMQBh+4rmCQa3dh0Y1LIqc0gxdrX7KRgiVQq9MpeIPJvu5184AJ0+hypkpgjTxdud4AYLfoOOSCedSvsHkGNkkSv4oLAcoFngzsGfGstCKvza1D33hHAlk3P8FzCJxESe+aCDbZCGiF5Gk1P2AmMIL8FXqlGe7tXyaXo2z7qfPmCbYYHSpxVAcbKBZeI7vY3qg8ejC6Bb22DApsWcgWYaOB+3TWvHkjnfpiOE0WypJzBcnvfRdvj/4bRWXaBX7zL0lncgorb10Tdfil6lNWhK6wa6PV/2FUFBIRBtdfKtmbN8TOsUSGvRwFFZ7hEGh3JSvDC1h+cFF3AmEEpQP9djPtXY+0H5DJ3', 'type': 1}}, 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw'}, 'type': 'm.room.encrypted', 'sender': '@deepbluev7:neko.dev'}]}

@40000000611e9d1e0cd39dcd 2021-08-19 18:03:37,215 - synapse.access.http.8091 - 389 - INFO - GET-787 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.009sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.002sec/3) 1685B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197878_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]

I'd like to understand where the 127.0.0.1 and aiohttp user agent comes from (reverse proxy?) given that this is supposed to be element-web making the request.

Are there any corresponding client logs that can corroborate this version of events? E.g.

  • can we confirm that the to_device message above was sent by your Nheko client PCSZKSTRBC?
  • is there any evidence of Element-web TDXVQTYIQM making the GET /sync request above?
  • Are there any other logs pertaining to GET-787 that might have been grepped out?

I think this is the response from PCSZKSTRBC intended directly for TDXVQTYIQM. The stream_id bumps to 197879.

2021-08-19 18:03:37,195 - synapse.9533_debug - 577 - DEBUG - PUT-1195 - Stored to-device messages with stream_id 197879 for [('@deepbluev7:neko.dev', 'TDXVQTYIQM')]
2021-08-19 18:03:37,196 - synapse.9533_debug - 432 - DEBUG - PUT-1195 - to-device messages stream id 197879, awaking streams for dict_keys(['@deepbluev7:neko.dev'])
2021-08-19 18:03:37,197 - synapse.access.http.8008 - 389 - INFO - PUT-1195 - 88.217.180.141 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.004sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.001sec/3) 2B 200 "PUT /_matrix/client/r0/sendToDevice/m.room.encrypted/2965REpGLME5TIoVeN4fzXVPauREeXso HTTP/1.0" "mtxclient v0.5.1" [0 dbevts]
2021-08-19 18:03:37,198 - synapse.access.http.9893 - 389 - INFO - POST-1196 - 127.0.0.1 - 9893 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 2B 200 "POST /_synapse/replication/presence_set_state/%40deepbluev7%3Aneko.dev HTTP/1.1" "Synapse/1.41.0rc1" [0 dbevts]
2021-08-19 18:03:37,198 - synapse.9533_debug - 392 - DEBUG - replication_notifier-433 - get_all_new_device_messages: after sorting, got ([(197879, ('@deepbluev7:neko.dev',))], 197879, False)
2021-08-19 18:03:37,198 - synapse.replication.tcp.resource - 187 - INFO - replication_notifier-433 - Streaming: to_device -> 197879

Later on it looks like GET-787 handles a sync for TDXVQTYIQM. Logging claims that to_device sent down in sync.

@40000000611e9d1e0c5257a7 2021-08-19 18:03:37,206 - synapse.9533_debug - 203 - DEBUG - GET-787 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197878
@40000000611e9d1e0c6ecd00 2021-08-19 18:03:37,208 - synapse.9533_debug - 233 - DEBUG - GET-787 - deleted 0 messages for device
@40000000611e9d1e0c727cbd 2021-08-19 18:03:37,208 - synapse.9533_debug - 242 - DEBUG - GET-787 - cache updated for (user, device) to 197878
@40000000611e9d1e0cb93f5e 2021-08-19 18:03:37,213 - synapse.9533_debug - 138 - DEBUG - GET-787 - get_new_messages_for_device user @deepbluev7:neko.dev device TDXVQTYIQM last_stream_id 197878 current_stream_id 197879 has_changed True
@40000000611e9d1e0cc561c1 2021-08-19 18:03:37,214 - synapse.9533_debug - 172 - DEBUG - GET-787 - get_all_new_device_messages: after sorting, last_stream_id 197878, current_stream_id 197879 result ([{'content': {'algorithm': 'm.olm.v1.curve25519-aes-sha2', 'ciphertext': {'Ut/tPN9Ftrq8Nhb6e7WxNFEoiQZV/xOx3eojujPunxU': {'body': 'Awogma4E4ODWRrjhkuiDYLvaT5eYm7JLuCsjJkuvpf09hi4QhgIi0AaR61jlYt5aKIbCvK6JY+fogKb3LTRnnegB0r6drqjAWgU5aKez5tEpyJgzlcrzED5mM5vQQPWfQSlceBoH9kQCgtgG0kdbL4E3FEMN7y71TFXT+zyQ8TA1XeBmoFgt7bA5o2Typ/ccu7XIJapwVqdvEBx2ooRNwHb0BuTw+TcKCIM/YtAIMqe3hF0D8rXQE5jCWXdbv2Br06/mtqmYxNUmRauFYpLW4XaC7BKE8oURm8fM92YWNlbwhDFtjaBAkWNNb2U1FEyVnKiBBiED/UgUy+dI21L7GNlXl8O2fahyMdSMD9p5BNPbTJyugggjFWVwVPbEKQQx5iZwkC+H5JIfH3kc4sUnw94BbftAeUhMVlvMfOCgCbfbSQm8huJX/u902F8tuz/E5mPNju6KrPi5pMyvEVNkH8bYdy/JtFFQ6cFhS9ByIjX/3H8VBu/UcI6/cWbfQd+rPsXrTEMeEXD0G0DRSfpEwNn/IRPu7u07BsbGiMRnmLQp3/+xd3TvKegvC6sMMGioXzlcwaogGvqBF1ove8PlvlneXW5Ew3kHvDxvK8uY8vaqKjk+tdB2oqn6XKQIADgtrkQdm31twyLQYqOisbqmRYRvcGB2eUgfxFGJzJXc4i7D/8aEFfij/7oLdr5cyQvGafIHOECBKnMqYRrH8fIQeXZEIkltO3Y5nSSg5UhuZ4BV+EkVvrQaDNsa+f7INIZ+EogEroeP3rtFS3jWi9HWccSrtiYkBTPTmfgW5jiyVzbLUqpc5S31c7rwJPJY0zqcjXe2gQK6Dm71aMQBh+4rmCQa3dh0Y1LIqc0gxdrX7KRgiVQq9MpeIPJvu5184AJ0+hypkpgjTxdud4AYLfoOOSCedSvsHkGNkkSv4oLAcoFngzsGfGstCKvza1D33hHAlk3P8FzCJxESe+aCDbZCGiF5Gk1P2AmMIL8FXqlGe7tXyaXo2z7qfPmCbYYHSpxVAcbKBZeI7vY3qg8ejC6Bb22DApsWcgWYaOB+3TWvHkjnfpiOE0WypJzBcnvfRdvj/4bRWXaBX7zL0lncgorb10Tdfil6lNWhK6wa6PV/2FUFBIRBtdfKtmbN8TOsUSGvRwFFZ7hEGh3JSvDC1h+cFF3AmEEpQP9djPtXY+0H5DJ3', 'type': 1}}, 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw'}, 'type': 'm.room.encrypted', 'sender': '@deepbluev7:neko.dev', 'message_id': 'zlpTrqrpKbDIccmB'}], 197879)
@40000000611e9d1e0ccc7e27 2021-08-19 18:03:37,214 - synapse.9533_debug - 189 - DEBUG - GET-787 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230489, typing_key=70, receipt_key=10923237, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1e0cce6ace 2021-08-19 18:03:37,214 - synapse.9533_debug - 253 - DEBUG - GET-787 - to_device sent down in sync {'events': [{'content': {'algorithm': 'm.olm.v1.curve25519-aes-sha2', 'ciphertext': {'Ut/tPN9Ftrq8Nhb6e7WxNFEoiQZV/xOx3eojujPunxU': {'body': 'Awogma4E4ODWRrjhkuiDYLvaT5eYm7JLuCsjJkuvpf09hi4QhgIi0AaR61jlYt5aKIbCvK6JY+fogKb3LTRnnegB0r6drqjAWgU5aKez5tEpyJgzlcrzED5mM5vQQPWfQSlceBoH9kQCgtgG0kdbL4E3FEMN7y71TFXT+zyQ8TA1XeBmoFgt7bA5o2Typ/ccu7XIJapwVqdvEBx2ooRNwHb0BuTw+TcKCIM/YtAIMqe3hF0D8rXQE5jCWXdbv2Br06/mtqmYxNUmRauFYpLW4XaC7BKE8oURm8fM92YWNlbwhDFtjaBAkWNNb2U1FEyVnKiBBiED/UgUy+dI21L7GNlXl8O2fahyMdSMD9p5BNPbTJyugggjFWVwVPbEKQQx5iZwkC+H5JIfH3kc4sUnw94BbftAeUhMVlvMfOCgCbfbSQm8huJX/u902F8tuz/E5mPNju6KrPi5pMyvEVNkH8bYdy/JtFFQ6cFhS9ByIjX/3H8VBu/UcI6/cWbfQd+rPsXrTEMeEXD0G0DRSfpEwNn/IRPu7u07BsbGiMRnmLQp3/+xd3TvKegvC6sMMGioXzlcwaogGvqBF1ove8PlvlneXW5Ew3kHvDxvK8uY8vaqKjk+tdB2oqn6XKQIADgtrkQdm31twyLQYqOisbqmRYRvcGB2eUgfxFGJzJXc4i7D/8aEFfij/7oLdr5cyQvGafIHOECBKnMqYRrH8fIQeXZEIkltO3Y5nSSg5UhuZ4BV+EkVvrQaDNsa+f7INIZ+EogEroeP3rtFS3jWi9HWccSrtiYkBTPTmfgW5jiyVzbLUqpc5S31c7rwJPJY0zqcjXe2gQK6Dm71aMQBh+4rmCQa3dh0Y1LIqc0gxdrX7KRgiVQq9MpeIPJvu5184AJ0+hypkpgjTxdud4AYLfoOOSCedSvsHkGNkkSv4oLAcoFngzsGfGstCKvza1D33hHAlk3P8FzCJxESe+aCDbZCGiF5Gk1P2AmMIL8FXqlGe7tXyaXo2z7qfPmCbYYHSpxVAcbKBZeI7vY3qg8ejC6Bb22DApsWcgWYaOB+3TWvHkjnfpiOE0WypJzBcnvfRdvj/4bRWXaBX7zL0lncgorb10Tdfil6lNWhK6wa6PV/2FUFBIRBtdfKtmbN8TOsUSGvRwFFZ7hEGh3JSvDC1h+cFF3AmEEpQP9djPtXY+0H5DJ3', 'type': 1}}, 'sender_key': 'fets40QfuO1tUCHx0stfEMMCyRDhE/adxmALH4sxAyw'}, 'type': 'm.room.encrypted', 'sender': '@deepbluev7:neko.dev'}]}
@40000000611e9d1e0cd39dcd 2021-08-19 18:03:37,215 - synapse.access.http.8091 - 389 - INFO - GET-787 - 127.0.0.1 - 8091 - {@deepbluev7:neko.dev} Processed request: 0.009sec/-0.000sec (0.003sec, 0.000sec) (0.000sec/0.002sec/3) 1685B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197878_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]

This sync request is from 127.0.0.1 "Python/3.8 aiohttp/3.7.4" which surprised me. I was expecting to see a user agent indicative of Element web from the original key request, namely

2021-08-19 18:03:36,602 - synapse.access.http.8008 - 389 - INFO - PUT-1187 - 88.217.180.141 - 8008 - {@deepbluev7:neko.dev} Processed request: 0.009sec/-0.000sec (0.002sec, 0.000sec) (0.000sec/0.006sec/3) 2B 200 "PUT /_matrix/client/r0/sendToDevice/m.room_key_request/m1629396014600.10 HTTP/1.0" "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" [0 dbevts]

But perhaps the aiohttp user agent comes from the reverse proxy?

Anyway, when do we delete the to_device message? Seems to be GET-790, which is presumably the next /sync from TDXVQTYIQM to use the stream token from GET-787.

@40000000611e9d1e0d115a79 2021-08-19 18:03:37,219 - synapse.9533_debug - 203 - DEBUG - GET-790 - delete_messages_for_device: user @deepbluev7:neko.dev device TDXVQTYIQM; cache says last_deleted_stream_id=197878
@40000000611e9d1e0d1d53d8 2021-08-19 18:03:37,219 - synapse.9533_debug - 233 - DEBUG - GET-790 - deleted 1 messages for device
@40000000611e9d1e0d1e7556 2021-08-19 18:03:37,220 - synapse.9533_debug - 242 - DEBUG - GET-790 - cache updated for (user, device) to 197879
@40000000611e9d1f10fcb2ae 2021-08-19 18:03:38,284 - synapse.9533_debug - 189 - DEBUG - GET-790 - Sync body generated, next batch: StreamToken(room_key=RoomStreamToken(topological=None, stream=7084279, instance_map={}), presence_key=134230491, typing_key=70, receipt_key=10923238, account_data_key=512011, push_rules_key=336, to_device_key=197879, device_list_key=134317919, groups_key=31)
@40000000611e9d1f110789e5 2021-08-19 18:03:38,285 - synapse.access.http.8091 - 389 - INFO - GET-790 - ::1 - 8091 - {@deepbluev7:neko.dev} Processed request: 1.067sec/-0.000sec (0.007sec, 0.001sec) (0.008sec/0.005sec/4) 726B 200 "GET /_matrix/client/r0/sync?timeout=30000&since=s7084279_134230489_70_10923237_512011_336_197879_134317919_31&filter=10&set_presence=offline HTTP/1.0" "Python/3.8 aiohttp/3.7.4" [0 dbevts]

@deepbluev7
Copy link
Contributor

So I don't think the GET-787 is Element. I have the following UA in my logs: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0. I'm pretty sure that is Element (since I use some privacy settings, that make it NT). Also request from Element should always have a filter set, i.e. filter=7. The above request doesn't have that. So could it be that the response gets delivered to the wrong device? I think the above is actually the telegram bridge. It is a bit weird, that that bridge is syncing with my useraccount though, I'll investigate that.

@deepbluev7
Copy link
Contributor

Okay, confirmed. Stopping the telegram bridge makes to_device messaging work reliably.

@deepbluev7
Copy link
Contributor

Okay, this is embarrassing, but I figured out why the to_device messages go missing and this might be a misconfiguration on my side or synapse relying on behaviour it can't assume to be true. Basically the story is as follows:

The telegram bridge supports double puppeting. For that it needs a matrix access token. This token I took from the Element login I was testing with (about 1.5 years ago and completely forgot, so it still uses MDAx and I just renamed it at some point). Because of that there are 2 /sync streams for this device, one from Element, one from Telegram. And so the to_device message gets delivered to my Telegram bridge and Element never receives it. Now I'm not sure what should happen, since to_device messages ideally wouldn't get lost with multiple sync streams, but that sounds very hard to implement correctly... So I guess the Telegram bridge docs should be update to recommend to never take the token from a login in use and this may not actually be a bug. I'm sorry for wasting everyone's time, but I really couldn't figure that out.

/me digs a hole to vanish into....

@callahad
Copy link
Contributor

Closing this issue as the root cause of the most recent report has been identified and resolved. Thank you so much, everyone.

@richvdh
Copy link
Member

richvdh commented Aug 23, 2021

Just to set it down for the record: we've investigated another apparent instance of a lost to_device message, but it looks in that case that the PUT /sendToDevice request never made it through to the server (and element-web doesn't retry: element-hq/element-web#18639).

@ara4n
Copy link
Member

ara4n commented Jan 7, 2022

This turns out to be at the root cause of the main issue that's stopping us from launching native matrix group calling, which uses to-device messages for VoIP calling as per MSC3401 - and so if to-device messages are being dropped, call setup fails and you end up in a splitbrained video conference.

The reproducibility is very inconsistent, and it seems that slowing down the server by adding in debugging or jaeger seems to make it harder to reproduce. I caught it in the act however (before dialling up the log level), and have two HARs (sender and receiver) showing 6 to-devices being sent in a row from the sender, but only the last 3 being received in /sync.

This is between two local users on robertlong.dev, which is a completely vanilla non-workerised synapse (using sqlite, as it happens).

I've tried to reproduce it with just the relevant loglines dialled up, but after 2 hours i haven't managed to. I'll leave the logging on and have another shot at reproducing it tomorrow. Prior to dialling up the logging i saw it about 3 times this evening.

The bug is definitely still there; am reopening. Given it's blocking the VoIP launch, I really want to get to the bottom of it.

@ara4n ara4n reopened this Jan 7, 2022
@ara4n
Copy link
Member

ara4n commented Jan 9, 2022

so I went on a crusade on this one, and wrote a crappy torture-tester to exercise todevice with MSC3401 style traffic patterns... and i couldn't reproduce it (although client<->server connection failures when stresstesting threw up a lot of confusion). I tried remotely against robertlong.dev, and locally (hammering away at 500 req/s or so); i tried mixing in presence changes and sending state & timeline events; i tried jittering and dejittering; i tried firing off reqs in parallel and in series... but I never conclusively found a toDevice event dropped by the server. (I think i found one at one point, but I can't reproduce and it seems more likely to be a thinko).

In the end, I went back to the HARs I captured that illustrated the missing events... and realised that the missing 3 events were sent before the receiving client was launched - and given the launch was a browser page refresh, they must have been received instead by the previous incarnation of the page. So the actual problem with matrix-video-chat and MSC3401 is that it needs to detect and recover from that failure mode (given to-device msgs have no persistence, unlike in-room m.call.* signalling).

So, i'm going to cautiously say (again) that this looks to be working okay. The torture testjig is available as very quick and dirty node at https://github.com/ara4n/todevice-collider for the next person (if any) who finds themselves wanting to test their to-device messaging.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S-Critical Blocks development, potential data loss, more than 25% of users possibly affected, no workarounds. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

10 participants