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

500 errors when leaving or kicking in a room #16191

Closed
45triX opened this issue Aug 26, 2023 · 24 comments
Closed

500 errors when leaving or kicking in a room #16191

45triX opened this issue Aug 26, 2023 · 24 comments
Labels
A-Database DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db A-Leave Leaving a room S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@45triX
Copy link

45triX commented Aug 26, 2023

Description

Constant failures when doing things like trying to leave rooms, removing users from rooms, notifications not going away after viewing messages, and federated rooms not loading consistently I get the following error:

Failed to remove user
MatrixError: [500] Internal server error (https://matrix.tazy.xyz/_matrix/client/r0/rooms/!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz/kick)

and if you go to the link this is the raw data

{"errcode":"M_UNRECOGNIZED","error":"Unrecognized request"}

Also federated rooms like the synapse admin room doesn't federate properly like ill open element and it'll load and I click on that room and the last message was from a week ago

Steps to reproduce

Removing users from rooms
Trying to leave rooms

Homeserver

https://matrix.tazy.xyz

Synapse Version

{"server_version":"1.90.0","python_version":"3.11.4"}

Installation Method

Docker (matrixdotorg/synapse)

Database

postgresql:latest

Workers

Single process

Platform

I have synapse running in a docker host with multiple other containers mostly activity pub instances, lemmy, peertube, mastodon but also wireguard and jellyfin, I have 6Gb RAM dedicated and 4cpus. I'm also running a discord bridge (thats kind of working some of the time) and a signal bridge I also attempted slinding sync but i dont think its working it infinitely syncs when I try to sign in on element x android. I'm accessing synapse through Nginx Proxy Manager with the following custom config in the advanced tab:

location ~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync) {
    proxy_pass http://synapse:8009;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $host;
}

location ~ ^(\/_matrix|\/_synapse\/client) {
    proxy_pass http://synapse:8008;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header Host $host;
}

location /.well-known/matrix/client {
    add_header Access-Control-Allow-Origin *;
    default_type application/json;
    return 200 '{"m.homeserver": {"base_url": "https://matrix.tazy.xyz"}, "m.identity_server":{"base_url":"https://vector.im"}, "org.matrix.msc3575.proxy": {"url": "https://slidingsync.tazy.xyz"}}';
}

there is no custom config for the custom locations tab within nginx proxy manager just the advanced tab

Configuration

I haven't really done much with the config file other than the bridges previously mentioned.

Relevant log output

2023-08-26 22:39:25,320 - synapse.access.http.8008 - 465 - INFO - PUT-145812 - 162.158.174.153 - 8008 - {gnulinux.club} Processed request: 1.242sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692614275113 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-26 22:39:26,098 - synapse.util.caches.response_cache - 266 - INFO - GET-145815 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651813_17764_2_1505734_11581_222_8653_2237374_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-26 22:39:26,098 - synapse.access.http.8008 - 465 - INFO - GET-145815 - 162.158.74.52 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651813_17764_2_1505734_11581_222_8653_2237374_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-26 22:39:26,703 - synapse.http.server - 134 - ERROR - POST-145817 - Failed handle request via 'RoomMembershipRestServlet': <XForwardedForRequest at 0x7f8f2c376850 method='POST' uri='/_matrix/client/r0/rooms/!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz/kick' clientproto='HTTP/1.1' site='8008'>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/synapse/http/server.py", line 320, in _async_render_wrapper
    callback_return = await self._async_render(request)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/http/server.py", line 532, in _async_render
    callback_return = await raw_callback_return
                      ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/rest/client/room.py", line 1072, in on_POST
    return await self._do(request, requester, room_id, membership_action, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/rest/client/room.py", line 1045, in _do
    await self.room_member_handler.update_membership(
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/room_member.py", line 627, in update_membership
    result = await self.update_membership_locked(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/room_member.py", line 1088, in update_membership_locked
    return await self._local_membership_update(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/room_member.py", line 436, in _local_membership_update
    ) = await self.event_creation_handler.create_event(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 711, in create_event
    event, unpersisted_context = await self.create_new_client_event(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/util/metrics.py", line 113, in measured_func
    r = await func(self, *args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1264, in create_new_client_event
    builder.type == EventTypes.Create or prev_event_ids
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Attempting to create a non-m.room.create event with no prev_events
2023-08-26 22:39:26,704 - synapse.access.http.8008 - 465 - INFO - POST-145817 - 172.69.79.219 - 8008 - {@tazy:matrix.tazy.xyz} Processed request: 0.009sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.005sec/4) 55B 500 "POST /_matrix/client/r0/rooms/!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz/kick HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" [0 dbevts]
2023-08-26 22:39:27,614 - synapse.federation.transport.server.federation - 105 - INFO - PUT-145818 - Received txn 1692289308920 from startuptools.org. (PDUs: 0, EDUs: 1)
2023-08-26 22:39:27,620 - synapse.access.http.8008 - 465 - INFO - PUT-145818 - 172.71.102.173 - 8008 - {startuptools.org} Processed request: 0.009sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1692289308920 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-26 22:39:28,097 - synapse.util.caches.response_cache - 266 - INFO - GET-145819 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651813_17764_2_1505734_11581_222_8653_2237374_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-26 22:39:28,098 - synapse.access.http.8008 - 465 - INFO - GET-145819 - 162.158.74.52 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651813_17764_2_1505734_11581_222_8653_2237374_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-26 22:39:29,157 - synapse.federation.transport.server.federation - 105 - INFO - PUT-145820 - Received txn 1692305566051 from matrix.elgatopanzon.io. (PDUs: 0, EDUs: 1)
2023-08-26 22:39:29,161 - synapse.access.http.8008 - 465 - INFO - PUT-145820 - 162.158.87.46 - 8008 - {matrix.elgatopanzon.io} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692305566051 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-26 22:39:29,339 - synapse.access.http.8008 - 465 - INFO - GET-145763 - 162.158.74.93 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=1&timeout=30000&since=s651813_17764_2_1505734_11581_222_8653_2237374_0_1 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" [0 dbevts]
2023-08-26 22:39:30,102 - synapse.util.caches.response_cache - 266 - INFO - GET-145823 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651813_17764_2_1505734_11581_222_8653_2237374_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-26 22:39:30,103 - synapse.access.http.8008 - 465 - INFO - GET-145823 - 162.158.74.52 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651813_17764_2_1505734_11581_222_8653_2237374_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-26 22:39:30,753 - synapse.federation.transport.server.federation - 105 - INFO - PUT-145824 - Received txn 1692878711860 from cqmn.sh. (PDUs: 0, EDUs: 1)
2023-08-26 22:39:30,760 - synapse.access.http.8008 - 465 - INFO - PUT-145824 - 198.41.231.19 - 8008 - {cqmn.sh} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692878711860 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-26 22:39:30,835 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-8985 - Requesting keys [_FetchKeyRequest(server_name='matrix.saltyoldgeek.com', minimum_valid_until_ts=1693089570834, key_ids=['ed25519:a_Ubco'])] from notary server matrix.org
2023-08-26 22:39:31,062 - synapse.federation.transport.server.federation - 105 - INFO - PUT-145826 - Received txn 1692791195543 from aidoru.agency. (PDUs: 0, EDUs: 1)
2023-08-26 22:39:31,066 - synapse.access.http.8008 - 465 - INFO - PUT-145826 - 172.71.126.57 - 8008 - {aidoru.agency} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692791195543 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]

Anything else that would be useful to know?

I recently migrated from SQLite3 to postgres so I'm not sure if I fucked up with that and if I have how would I fix it?

@DMRobertson DMRobertson changed the title Random 500 errors 500 errors when leaving or kicking in a room Aug 29, 2023
@DMRobertson
Copy link
Contributor

AssertionError: Attempting to create a non-m.room.create event with no prev_events

Sounds like
#8094

Relevant source:

if prev_event_ids is not None:
assert (
len(prev_event_ids) <= 10
), "Attempting to create an event with %i prev_events" % (
len(prev_event_ids),
)
else:
prev_event_ids = await self.store.get_prev_events_for_room(builder.room_id)
# Do a quick sanity check here, rather than waiting until we've created the
# event and then try to auth it (which fails with a somewhat confusing "No
# create event in auth events")
if allow_no_prev_events:
# We allow events with no `prev_events` but it better have some `auth_events`
assert (
builder.type == EventTypes.Create
# Allow an event to have empty list of prev_event_ids
# only if it has auth_event_ids.
or auth_event_ids
), "Attempting to create a non-m.room.create event with no prev_events or auth_event_ids"
else:
# we now ought to have some prev_events (unless it's a create event).
assert (
builder.type == EventTypes.Create or prev_event_ids
), "Attempting to create a non-m.room.create event with no prev_events"

This suggests that your event_forward_extremities table is inconsistent for this room. Have you tried to purge the room at all? Did the migration to postgres succeed or were there errors?

What does the following SQL give you?

            SELECT e.event_id FROM event_forward_extremities AS f
            INNER JOIN events AS e USING (event_id)
            WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
            ORDER BY e.depth DESC
            LIMIT 10;

@DMRobertson DMRobertson added S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. A-Database DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db A-Leave Leaving a room labels Aug 29, 2023
@DMRobertson
Copy link
Contributor

notifications not going away after viewing messages

This is likely element-hq/element-web#24392

and federated rooms not loading consistently

I'm afraid there's nothing in your logs that demonstrates this; can you see any errors or warnings corresponding to federated rooms? E.g. grep logs for !\S+:matrix.org

@DMRobertson DMRobertson added the X-Needs-Info This issue is blocked awaiting information from the reporter label Aug 29, 2023
@45triX
Copy link
Author

45triX commented Aug 29, 2023

couldnt find any events with that grep the output was

45triX@matrix:~$ docker logs synapse | grep !\S+:matrix.org
-bash: !\S+: event not found

the last minute of logs after I've went into matrix.org rooms and scrolled up (which still haven't gotten any new messages through since thursday the 17th)

 2023-08-29 16:56:00,098 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371865 - Received txn 1689214352090 from matrix.asso-fare.fr. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:00,104 - synapse.access.http.8008 - 465 - INFO - PUT-371865 - 172.71.250.149 - 8008 - {matrix.asso-fare.fr} Processed request: 0.009sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.004sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1689214352090 HTTP/1.1" "Synapse/1.73.0" [0 dbevts]
2023-08-29 16:56:00,562 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18133 - Requesting keys [_FetchKeyRequest(server_name='nitro.chat', minimum_valid_until_ts=1693328160560, key_ids=['ed25519:a_FXKA'])] from notary server matrix.org
2023-08-29 16:56:01,077 - synapse.access.http.8008 - 465 - INFO - GET-371688 - 172.69.79.221 - 8008 - {@signal:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 216B 200 "GET /_matrix/client/v3/sync?timeout=30000&since=s651898_17764_6_1505869_11652_222_8685_2237485_0_1&filter=1&set_presence=online HTTP/1.1" "mautrix-signal/0.4.3 mautrix-python/0.19.14 aiohttp/3.8.3 Python/3.10.11" [0 dbevts]
2023-08-29 16:56:01,303 - synapse.util.caches.response_cache - 266 - INFO - GET-371868 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:01,304 - synapse.access.http.8008 - 465 - INFO - GET-371868 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.001sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:01,759 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371869 - Received txn 1693253372744 from obermui.de. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:01,763 - synapse.access.http.8008 - 465 - INFO - PUT-371869 - 162.158.111.28 - 8008 - {obermui.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693253372744 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:02,917 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371871 - Received txn 1692446290684 from smashcroft.com. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:02,921 - synapse.access.http.8008 - 465 - INFO - PUT-371871 - 172.71.242.128 - 8008 - {smashcroft.com} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692446290684 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:03,304 - synapse.util.caches.response_cache - 266 - INFO - GET-371872 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:03,305 - synapse.access.http.8008 - 465 - INFO - GET-371872 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:04,334 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371874 - Received txn 1693279698609 from bau-ha.us. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:04,341 - synapse.access.http.8008 - 465 - INFO - PUT-371874 - 172.69.150.128 - 8008 - {bau-ha.us} Processed request: 0.008sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693279698609 HTTP/1.1" "Synapse/1.86.0" [0 dbevts]
2023-08-29 16:56:05,302 - synapse.util.caches.response_cache - 266 - INFO - GET-371877 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:05,302 - synapse.access.http.8008 - 465 - INFO - GET-371877 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:06,243 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371878 - Received txn 1693326748653 from gemeinsam.jetzt. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:06,250 - synapse.access.http.8008 - 465 - INFO - PUT-371878 - 172.68.50.111 - 8008 - {gemeinsam.jetzt} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693326748653 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:07,298 - synapse.util.caches.response_cache - 266 - INFO - GET-371879 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:07,299 - synapse.access.http.8008 - 465 - INFO - GET-371879 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:07,464 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18133 - {POST-O-174925} [matrix.org] Completed request: 200 OK in 6.90 secs, got 440 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 16:56:07,472 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371866 - Received txn 1693272017279 from nitro.chat. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:07,473 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18133 - Requesting keys [_FetchKeyRequest(server_name='rusrv.net', minimum_valid_until_ts=1693328162093, key_ids=['ed25519:a_fbgy']), _FetchKeyRequest(server_name='woefdram.nl', minimum_valid_until_ts=1693328163381, key_ids=['ed25519:a_XKLA']), _FetchKeyRequest(server_name='spadeskuret.dk', minimum_valid_until_ts=1693328164902, key_ids=['ed25519:a_UFKA'])] from notary server matrix.org
2023-08-29 16:56:07,477 - synapse.access.http.8008 - 465 - INFO - PUT-371866 - 162.158.87.119 - 8008 - {nitro.chat} Processed request: 6.917sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693272017279 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:08,198 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371880 - Received txn 1692491186068 from the-apothecary.club. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:08,205 - synapse.access.http.8008 - 465 - INFO - PUT-371880 - 162.158.87.89 - 8008 - {the-apothecary.club} Processed request: 0.008sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692491186068 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:08,723 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371881 - Received txn 1692367360668 from matrix.fawkes.io. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:08,728 - synapse.access.http.8008 - 465 - INFO - PUT-371881 - 162.158.155.99 - 8008 - {matrix.fawkes.io} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692367360668 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 16:56:09,308 - synapse.util.caches.response_cache - 266 - INFO - GET-371882 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:09,308 - synapse.access.http.8008 - 465 - INFO - GET-371882 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:11,104 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371883 - Received txn 1693173853196 from kity.wtf. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:11,108 - synapse.access.http.8008 - 465 - INFO - PUT-371883 - 172.69.214.91 - 8008 - {kity.wtf} Processed request: 0.006sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693173853196 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:11,304 - synapse.util.caches.response_cache - 266 - INFO - GET-371884 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505842_11647_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:11,304 - synapse.access.http.8008 - 465 - INFO - GET-371884 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:12,990 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18133 - {POST-O-174926} [matrix.org] Completed request: 200 OK in 5.52 secs, got 1391 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 16:56:13,006 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371870 - Received txn 1691606855199 from rusrv.net. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,007 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18133 - Requesting keys [_FetchKeyRequest(server_name='nevarro.space', minimum_valid_until_ts=1693328172620, key_ids=['ed25519:a_seZs'])] from notary server matrix.org
2023-08-29 16:56:13,008 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371875 - Received txn 1691674463768 from spadeskuret.dk. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,011 - synapse.access.http.8008 - 465 - INFO - PUT-371870 - 172.69.0.151 - 8008 - {rusrv.net} Processed request: 10.917sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691606855199 HTTP/1.1" "Synapse/1.87.0" [0 dbevts]
2023-08-29 16:56:13,013 - synapse.access.http.8008 - 465 - INFO - GET-371873 - 172.71.94.248 - 8008 - {woefdram.nl} Processed request: 9.632sec/0.001sec (0.001sec, 0.000sec) (0.000sec/0.005sec/1) 6695B 200 "GET /_matrix/federation/v1/user/devices/%40tazy%3Amatrix.tazy.xyz HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:13,014 - synapse.access.http.8008 - 465 - INFO - PUT-371875 - 172.70.243.40 - 8008 - {spadeskuret.dk} Processed request: 8.111sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.005sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1691674463768 HTTP/1.1" "Synapse/1.63.1" [0 dbevts]
2023-08-29 16:56:13,305 - synapse.access.http.8008 - 465 - INFO - GET-371886 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505842_11647_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:13,315 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18133 - {POST-O-174927} [matrix.org] Completed request: 200 OK in 0.31 secs, got 446 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 16:56:13,320 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371885 - Received txn 1693240680239 from nevarro.space. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,323 - synapse.access.http.8008 - 465 - INFO - PUT-371885 - 172.70.43.78 - 8008 - {nevarro.space} Processed request: 0.703sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693240680239 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:13,740 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371887 - Received txn 1691605992247 from snaakpraat.nl. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,743 - synapse.access.http.8008 - 465 - INFO - PUT-371887 - 172.70.46.123 - 8008 - {snaakpraat.nl} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691605992247 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 16:56:13,890 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371888 - Received txn 1692931782809 from nya.one. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,929 - synapse.access.http.8008 - 465 - INFO - PUT-371888 - 108.162.242.63 - 8008 - {nya.one} Processed request: 0.040sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.037sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692931782809 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:13,945 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371889 - Received txn 1693234277456 from tchncs.de. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:13,949 - synapse.access.http.8008 - 465 - INFO - PUT-371889 - 162.158.239.22 - 8008 - {tchncs.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693234277456 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:14,221 - synapse.metrics._gc - 120 - INFO - sentinel - Collecting gc 1
2023-08-29 16:56:15,299 - synapse.access.http.8008 - 465 - INFO - GET-371890 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:15,888 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371891 - Received txn 1693018331611 from purplg.com. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:15,899 - synapse.access.http.8008 - 465 - INFO - PUT-371891 - 172.69.65.121 - 8008 - {purplg.com} Processed request: 0.011sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.009sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693018331611 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 16:56:16,870 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371892 - Received txn 1691606985883 from lossy.network. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:16,877 - synapse.access.http.8008 - 465 - INFO - PUT-371892 - 172.71.246.32 - 8008 - {lossy.network} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691606985883 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 16:56:17,303 - synapse.util.caches.response_cache - 266 - INFO - GET-371893 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:17,303 - synapse.access.http.8008 - 465 - INFO - GET-371893 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:17,546 - synapse.federation.transport.server.federation - 105 - INFO - PUT-371894 - Received txn 1692230069023 from someonex.net. (PDUs: 0, EDUs: 1)
2023-08-29 16:56:17,550 - synapse.access.http.8008 - 465 - INFO - PUT-371894 - 172.71.102.187 - 8008 - {someonex.net} Processed request: 0.006sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692230069023 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 16:56:19,311 - synapse.util.caches.response_cache - 266 - INFO - GET-371895 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:19,311 - synapse.access.http.8008 - 465 - INFO - GET-371895 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:21,237 - synapse.http.site - 377 - INFO - GET-371494 - Connection from client lost before response was sent
2023-08-29 16:56:21,299 - synapse.util.caches.response_cache - 266 - INFO - GET-371897 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 16:56:21,299 - synapse.access.http.8008 - 465 - INFO - GET-371897 - 162.158.74.67 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 16:56:21,354 - synapse.access.http.8008 - 465 - INFO - GET-371823 - 172.71.182.194 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=1&timeout=30000&since=s651898_17764_6_1505884_11652_222_8685_2237485_0_1 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" [0 dbevts]

@45triX
Copy link
Author

45triX commented Aug 29, 2023

AssertionError: Attempting to create a non-m.room.create event with no prev_events

Sounds like #8094

Relevant source:

if prev_event_ids is not None:
assert (
len(prev_event_ids) <= 10
), "Attempting to create an event with %i prev_events" % (
len(prev_event_ids),
)
else:
prev_event_ids = await self.store.get_prev_events_for_room(builder.room_id)
# Do a quick sanity check here, rather than waiting until we've created the
# event and then try to auth it (which fails with a somewhat confusing "No
# create event in auth events")
if allow_no_prev_events:
# We allow events with no `prev_events` but it better have some `auth_events`
assert (
builder.type == EventTypes.Create
# Allow an event to have empty list of prev_event_ids
# only if it has auth_event_ids.
or auth_event_ids
), "Attempting to create a non-m.room.create event with no prev_events or auth_event_ids"
else:
# we now ought to have some prev_events (unless it's a create event).
assert (
builder.type == EventTypes.Create or prev_event_ids
), "Attempting to create a non-m.room.create event with no prev_events"

This suggests that your event_forward_extremities table is inconsistent for this room. Have you tried to purge the room at all? Did the migration to postgres succeed or were there errors?

What does the following SQL give you?

            SELECT e.event_id FROM event_forward_extremities AS f
            INNER JOIN events AS e USING (event_id)
            WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
            ORDER BY e.depth DESC
            LIMIT 10;

the output of the SQL query is

SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;

ERROR:  relation "event_forward_extremities" does not exist
LINE 1: SELECT e.event_id FROM event_forward_extremities AS f

I didn't think I got any errors when porting from sqlite3 but maybe I missed something idk is there a way to like factory reset it or something?

@DMRobertson
Copy link
Contributor

couldnt find any events with that grep the output was

Try grep -E '!\S+:matrix.org' instead.

ERROR: relation "event_forward_extremities" does not exist

If this was the case, I doubt Synapse would start; double check what tables you can see by running \dt in postgres.

@45triX
Copy link
Author

45triX commented Aug 29, 2023

couldnt find any events with that grep the output was

Try grep -E '!\S+:matrix.org' instead.

this is the output

45triX@matrix:~$ docker logs -n 100 synapse | grep -E '!\S+:matrix.org'
2023-08-29 17:35:57,962 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376556 - Received txn 1692676300902 from matrix.markofall.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:35:57,969 - synapse.access.http.8008 - 465 - INFO - PUT-376556 - 172.71.222.213 - 8008 - {matrix.markofall.com} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692676300902 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:35:58,606 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376557 - Received txn 1692056555630 from relativelyprivate.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:35:58,609 - synapse.access.http.8008 - 465 - INFO - PUT-376557 - 162.158.166.174 - 8008 - {relativelyprivate.com} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692056555630 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:35:58,842 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18317 - Requesting keys [_FetchKeyRequest(server_name='qrnchmatrix.net', minimum_valid_until_ts=1693330558840, key_ids=['ed25519:a_pCKw'])] from notary server matrix.org
2023-08-29 17:35:59,317 - synapse.util.caches.response_cache - 266 - INFO - GET-376559 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:35:59,318 - synapse.access.http.8008 - 465 - INFO - GET-376559 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:35:59,324 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376560 - Received txn 1693232733393 from kormi.hu. (PDUs: 0, EDUs: 1)
2023-08-29 17:35:59,330 - synapse.access.http.8008 - 465 - INFO - PUT-376560 - 172.69.0.151 - 8008 - {kormi.hu} Processed request: 0.007sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693232733393 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:35:59,824 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376562 - Received txn 1691088150607 from derechosdigitales.org. (PDUs: 0, EDUs: 1)
2023-08-29 17:35:59,856 - synapse.access.http.8008 - 465 - INFO - PUT-376562 - 172.71.122.53 - 8008 - {derechosdigitales.org} Processed request: 0.033sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.031sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691088150607 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:36:01,310 - synapse.util.caches.response_cache - 266 - INFO - GET-376564 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:01,311 - synapse.access.http.8008 - 465 - INFO - GET-376564 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:02,673 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18317 - {POST-O-176551} [matrix.org] Completed request: 200 OK in 3.83 secs, got 450 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 17:36:02,678 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18317 - Requesting keys [_FetchKeyRequest(server_name='taurpia.com', minimum_valid_until_ts=1693330559594, key_ids=['ed25519:a_quAU']), _FetchKeyRequest(server_name='selea.se', minimum_valid_until_ts=1693330561900, key_ids=['ed25519:a_KvaC'])] from notary server matrix.org
2023-08-29 17:36:02,679 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376558 - Received txn 1692884647387 from qrnchmatrix.net. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:02,682 - synapse.access.http.8008 - 465 - INFO - PUT-376558 - 162.158.222.225 - 8008 - {qrnchmatrix.net} Processed request: 3.842sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.003sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1692884647387 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:03,051 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376566 - Received txn 1680768198750 from jadedpasta.net. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:03,055 - synapse.access.http.8008 - 465 - INFO - PUT-376566 - 162.158.174.25 - 8008 - {jadedpasta.net} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1680768198750 HTTP/1.1" "Synapse/1.68.0" [0 dbevts]
2023-08-29 17:36:03,221 - synapse.metrics._gc - 120 - INFO - sentinel - Collecting gc 1
2023-08-29 17:36:03,317 - synapse.util.caches.response_cache - 266 - INFO - GET-376567 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:03,317 - synapse.access.http.8008 - 465 - INFO - GET-376567 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:03,710 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376568 - Received txn 1692811186192 from matrix.org. (PDUs: 0, EDUs: 2)
2023-08-29 17:36:03,712 - synapse.handlers.typing - 372 - INFO - PUT-376568 - Ignoring typing update for room '!AZozoWghOYSIAfaZjJ:matrix.org' from server matrix.org as we're not in the room
2023-08-29 17:36:03,712 - synapse.handlers.receipts - 77 - INFO - PUT-376568 - Ignoring receipt for room '!AZozoWghOYSIAfaZjJ:matrix.org' from server matrix.org as we're not in the room
2023-08-29 17:36:03,712 - synapse.handlers.receipts - 77 - INFO - PUT-376568 - Ignoring receipt for room '!GtIfdsfQtQIgbQSxwJ:archlinux.org' from server matrix.org as we're not in the room
2023-08-29 17:36:03,725 - synapse.access.http.8008 - 465 - INFO - PUT-376568 - 172.70.90.131 - 8008 - {matrix.org} Processed request: 0.015sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.013sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692811186192 HTTP/1.1" "Synapse/1.90.0 (b=matrix-org-hotfixes,535e5832a3,dirty)" [0 dbevts]
2023-08-29 17:36:03,766 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376569 - Received txn 1692961544115 from tumelum.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:03,769 - synapse.access.http.8008 - 465 - INFO - PUT-376569 - 172.70.251.210 - 8008 - {tumelum.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692961544115 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:04,069 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376570 - Received txn 1692694533919 from das-labor.org. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:04,073 - synapse.access.http.8008 - 465 - INFO - PUT-376570 - 162.158.95.183 - 8008 - {das-labor.org} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692694533919 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:05,314 - synapse.util.caches.response_cache - 266 - INFO - GET-376571 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:05,315 - synapse.access.http.8008 - 465 - INFO - GET-376571 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:06,772 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18317 - {POST-O-176552} [matrix.org] Completed request: 200 OK in 4.09 secs, got 861 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 17:36:06,782 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376561 - Received txn 1692566247948 from taurpia.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:06,783 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18317 - Requesting keys [_FetchKeyRequest(server_name='rouk.org', minimum_valid_until_ts=1693330566617, key_ids=['ed25519:CeSt66'])] from notary server matrix.org
2023-08-29 17:36:06,784 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376565 - Received txn 1691074692440 from selea.se. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:06,786 - synapse.handlers.receipts - 77 - INFO - PUT-376565 - Ignoring receipt for room '!VMUpuubSCTxMbZkuZa:cybre.space' from server selea.se as we're not in the room
2023-08-29 17:36:06,787 - synapse.access.http.8008 - 465 - INFO - PUT-376561 - 172.69.208.152 - 8008 - {taurpia.com} Processed request: 7.193sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692566247948 HTTP/1.1" "Synapse/1.64.0" [0 dbevts]
2023-08-29 17:36:06,788 - synapse.access.http.8008 - 465 - INFO - PUT-376565 - 162.158.222.132 - 8008 - {selea.se} Processed request: 4.888sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.003sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1691074692440 HTTP/1.1" "Synapse/1.86.0" [0 dbevts]
2023-08-29 17:36:07,308 - synapse.util.caches.response_cache - 266 - INFO - GET-376573 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:07,309 - synapse.access.http.8008 - 465 - INFO - GET-376573 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:07,481 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376574 - Received txn 1690847606681 from vinix.im. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:07,488 - synapse.access.http.8008 - 465 - INFO - PUT-376574 - 172.70.134.58 - 8008 - {vinix.im} Processed request: 0.007sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1690847606681 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:36:07,874 - synapse.access.http.8008 - 465 - INFO - GET-376524 - 172.69.79.220 - 8008 - {@signal:matrix.tazy.xyz} Processed request: 30.001sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 216B 200 "GET /_matrix/client/v3/sync?timeout=30000&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&filter=1&set_presence=online HTTP/1.1" "mautrix-signal/0.4.3 mautrix-python/0.19.14 aiohttp/3.8.3 Python/3.10.11" [0 dbevts]
2023-08-29 17:36:08,049 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376577 - Received txn 1692205879401 from matrix.toboidev.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:08,052 - synapse.access.http.8008 - 465 - INFO - PUT-376577 - 172.70.246.145 - 8008 - {matrix.toboidev.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692205879401 HTTP/1.1" "Synapse/1.85.2" [0 dbevts]
2023-08-29 17:36:08,550 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376578 - Received txn 1684505293878 from woodensword.swordofhumakti.uk. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:08,556 - synapse.access.http.8008 - 465 - INFO - PUT-376578 - 172.70.90.188 - 8008 - {woodensword.swordofhumakti.uk} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1684505293878 HTTP/1.1" "Synapse/1.81.0" [0 dbevts]
2023-08-29 17:36:09,310 - synapse.util.caches.response_cache - 266 - INFO - GET-376579 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:09,310 - synapse.access.http.8008 - 465 - INFO - GET-376579 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:09,315 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376580 - Received txn 1692840113213 from roleplaygateway.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:09,328 - synapse.access.http.8008 - 465 - INFO - PUT-376580 - 162.158.239.35 - 8008 - {roleplaygateway.com} Processed request: 0.013sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.011sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692840113213 HTTP/1.1" "Synapse/1.51.0" [0 dbevts]
2023-08-29 17:36:10,354 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18317 - {POST-O-176553} [matrix.org] Completed request: 200 OK in 3.57 secs, got 436 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 17:36:10,359 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376572 - Received txn 1690932235421 from rouk.org. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:10,359 - synapse.crypto.keyring - 687 - INFO - PerspectivesKeyFetcher-18317 - Requesting keys [_FetchKeyRequest(server_name='sealight.xyz', minimum_valid_until_ts=1693330567589, key_ids=['ed25519:a_FnYH']), _FetchKeyRequest(server_name='selea.se', minimum_valid_until_ts=1693330569379, key_ids=['ed25519:a_KvaC']), _FetchKeyRequest(server_name='ofgu.de', minimum_valid_until_ts=1693330570330, key_ids=['ed25519:a_eLFj'])] from notary server matrix.org
2023-08-29 17:36:10,362 - synapse.access.http.8008 - 465 - INFO - PUT-376572 - 108.162.241.207 - 8008 - {rouk.org} Processed request: 3.745sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1690932235421 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:36:11,252 - synapse.http.federation.matrix_federation_agent - 365 - INFO - federation_transaction_transmission_loop-3873 - Failed to connect to matrix.schnaible.cc:8448: User timeout caused connection failure.
2023-08-29 17:36:11,253 - synapse.http.matrixfederationclient - 758 - INFO - federation_transaction_transmission_loop-3873 - {PUT-O-176342} [matrix.schnaible.cc] Request failed: PUT matrix-federation://matrix.schnaible.cc/_matrix/federation/v1/send/1693095357492: TimeoutError('')
2023-08-29 17:36:11,309 - synapse.util.caches.response_cache - 266 - INFO - GET-376583 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:11,310 - synapse.access.http.8008 - 465 - INFO - GET-376583 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:11,818 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376584 - Received txn 1691337384843 from matrix.trustserv.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:11,825 - synapse.access.http.8008 - 465 - INFO - PUT-376584 - 162.158.86.13 - 8008 - {matrix.trustserv.de} Processed request: 0.007sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691337384843 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:36:11,865 - synapse.access.http.8008 - 465 - INFO - GET-376531 - 172.71.122.49 - 8008 - {@tazy:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" [0 dbevts]
2023-08-29 17:36:12,695 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376587 - Received txn 1691168099707 from matrix.informatik.uni-bonn.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:12,702 - synapse.access.http.8008 - 465 - INFO - PUT-376587 - 162.158.110.199 - 8008 - {matrix.informatik.uni-bonn.de} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691168099707 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:36:12,866 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376588 - Received txn 1692626758798 from adamnet.works. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:12,871 - synapse.access.http.8008 - 465 - INFO - PUT-376588 - 108.162.241.207 - 8008 - {adamnet.works} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692626758798 HTTP/1.1" "Synapse/1.87.0" [0 dbevts]
2023-08-29 17:36:12,934 - synapse.access.http.8008 - 465 - INFO - GET-376534 - 172.71.182.208 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 30.001sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=1&timeout=30000&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" [0 dbevts]
2023-08-29 17:36:13,309 - synapse.util.caches.response_cache - 266 - INFO - GET-376591 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:13,309 - synapse.access.http.8008 - 465 - INFO - GET-376591 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:13,956 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376592 - Received txn 1693091693810 from hicag.org. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:13,963 - synapse.access.http.8008 - 465 - INFO - PUT-376592 - 172.70.43.15 - 8008 - {hicag.org} Processed request: 0.008sec/0.000sec (0.000sec, 0.001sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693091693810 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:14,403 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18317 - {POST-O-176554} [matrix.org] Completed request: 200 OK in 4.04 secs, got 1280 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 17:36:14,411 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376575 - Received txn 1691900199966 from sealight.xyz. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:14,411 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376581 - Received txn 1691074692562 from selea.se. (PDUs: 1, EDUs: 0)
2023-08-29 17:36:14,412 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376582 - Received txn 1692560827082 from ofgu.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:14,415 - synapse.access.http.8008 - 465 - INFO - PUT-376575 - 172.69.62.51 - 8008 - {sealight.xyz} Processed request: 6.826sec/0.000sec (0.000sec, 0.000sec) (0.001sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691900199966 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:36:14,416 - synapse.access.http.8008 - 465 - INFO - PUT-376582 - 172.68.50.40 - 8008 - {ofgu.de} Processed request: 4.086sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692560827082 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:14,423 - synapse.federation.federation_server - 1238 - INFO - _process_incoming_pdus_in_room_inner-2557 - handling received PDU in room !VMUpuubSCTxMbZkuZa:cybre.space: <FrozenEvent event_id=$169333056918ozZTw:selea.se, type=m.reaction, state_key=None, outlier=False>
2023-08-29 17:36:14,424 - synapse.access.http.8008 - 465 - INFO - PUT-376581 - 162.158.222.132 - 8008 - {selea.se} Processed request: 5.045sec/0.000sec (0.002sec, 0.001sec) (0.001sec/0.008sec/6) 43B 200 "PUT /_matrix/federation/v1/send/1691074692562 HTTP/1.1" "Synapse/1.86.0" [0 dbevts]
2023-08-29 17:36:14,427 - synapse.handlers.federation_event - 254 - INFO - _process_incoming_pdus_in_room_inner-2557-$169333056918ozZTw:selea.se - Ignoring PDU from selea.se as we're not in the room
2023-08-29 17:36:14,912 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376593 - Received txn 1692817903849 from matrix.beagle.solutions. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:14,919 - synapse.access.http.8008 - 465 - INFO - PUT-376593 - 162.158.102.201 - 8008 - {matrix.beagle.solutions} Processed request: 0.007sec/0.000sec (0.000sec, 0.001sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692817903849 HTTP/1.1" "Synapse/1.80.0" [0 dbevts]
2023-08-29 17:36:15,245 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376594 - Received txn 1691970422637 from awful.club. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:15,249 - synapse.access.http.8008 - 465 - INFO - PUT-376594 - 172.69.134.189 - 8008 - {awful.club} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691970422637 HTTP/1.1" "Synapse/1.87.0" [0 dbevts]
2023-08-29 17:36:15,311 - synapse.util.caches.response_cache - 266 - INFO - GET-376596 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:15,312 - synapse.access.http.8008 - 465 - INFO - GET-376596 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:15,428 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376597 - Received txn 1690222157160 from reyuzenfold.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:15,431 - synapse.access.http.8008 - 465 - INFO - PUT-376597 - 172.71.30.55 - 8008 - {reyuzenfold.com} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1690222157160 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:36:15,678 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376598 - Received txn 1693033039455 from delifer.ca. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:15,681 - synapse.access.http.8008 - 465 - INFO - PUT-376598 - 172.70.243.40 - 8008 - {delifer.ca} Processed request: 0.004sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693033039455 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:36:17,312 - synapse.util.caches.response_cache - 266 - INFO - GET-376599 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505903_11655_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:36:17,313 - synapse.access.http.8008 - 465 - INFO - GET-376599 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505903_11655_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:36:17,426 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376600 - Received txn 1692699507274 from babel1.eu. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:17,429 - synapse.access.http.8008 - 465 - INFO - PUT-376600 - 162.158.94.28 - 8008 - {babel1.eu} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692699507274 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:36:17,623 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376601 - Received txn 1693273529325 from praxis.red. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:17,630 - synapse.access.http.8008 - 465 - INFO - PUT-376601 - 172.70.179.67 - 8008 - {praxis.red} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693273529325 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:36:18,235 - synapse.federation.transport.server.federation - 105 - INFO - PUT-376602 - Received txn 1693230113193 from matrix.b3n.tech. (PDUs: 0, EDUs: 1)
2023-08-29 17:36:18,241 - synapse.access.http.8008 - 465 - INFO - PUT-376602 - 198.41.242.101 - 8008 - {matrix.b3n.tech} Processed request: 0.007sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693230113193 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]

ERROR: relation "event_forward_extremities" does not exist

If this was the case, I doubt Synapse would start; double check what tables you can see by running \dt in postgres.

sorry haven't really had to go into any of my db containers so this is kind of new to me, I've docker exec -it synapse-db /bin/bash and logged into psql and I'm at the db prompt is that where I execute the \dt? if it is then this is the output

USER=# \dt
Did not find any relations.

@45triX
Copy link
Author

45triX commented Aug 29, 2023

I tried to send a message to the synapse admin room and it failed this is the logs:

tazy@hades:~$ docker logs -n 50 synapse
2023-08-29 17:46:49,346 - synapse.util.caches.response_cache - 266 - INFO - GET-377950 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:46:49,347 - synapse.access.http.8008 - 465 - INFO - GET-377950 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.004sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:46:49,829 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377951 - Received txn 1692433745309 from matrix.vodoraslo.club. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:49,832 - synapse.access.http.8008 - 465 - INFO - PUT-377951 - 172.70.246.31 - 8008 - {matrix.vodoraslo.club} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692433745309 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:46:51,298 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377952 - Received txn 1691807371078 from bitcoinlizard.net. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:51,305 - synapse.access.http.8008 - 465 - INFO - PUT-377952 - 172.69.70.218 - 8008 - {bitcoinlizard.net} Processed request: 0.007sec/0.000sec (0.000sec, 0.001sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691807371078 HTTP/1.1" "Synapse/1.85.2" [0 dbevts]
2023-08-29 17:46:51,308 - synapse.util.caches.response_cache - 266 - INFO - GET-377953 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:46:51,309 - synapse.access.http.8008 - 465 - INFO - GET-377953 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:46:51,885 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-18355 - {POST-O-176951} [matrix.org] Completed request: 200 OK in 2.76 secs, got 446 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-29 17:46:51,890 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377949 - Received txn 1692184438946 from rs485.network. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:51,893 - synapse.access.http.8008 - 465 - INFO - PUT-377949 - 162.158.238.56 - 8008 - {rs485.network} Processed request: 2.775sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692184438946 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:46:52,370 - synapse.access.http.8008 - 465 - INFO - GET-377895 - ::ffff:172.19.0.14 - 8008 - {@discord:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 216B 200 "GET /_matrix/client/v3/sync?filter=1&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&timeout=30000&user_id=%40discord%3Amatrix.tazy.xyz HTTP/1.1" "mautrix-discord/0.6.1+dev.185f9a89 mautrix-go/v0.16.0+dev.ac5c2c22 go/1.21.0" [0 dbevts]
2023-08-29 17:46:52,431 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377955 - Received txn 1693052782023 from matrix.elpengu.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:52,433 - synapse.handlers.typing - 372 - INFO - PUT-377955 - Ignoring typing update for room '!GtIfdsfQtQIgbQSxwJ:archlinux.org' from server matrix.elpengu.com as we're not in the room
2023-08-29 17:46:52,438 - synapse.access.http.8008 - 465 - INFO - PUT-377955 - 172.71.131.154 - 8008 - {matrix.elpengu.com} Processed request: 0.007sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693052782023 HTTP/1.1" "Synapse/1.74.0" [0 dbevts]
2023-08-29 17:46:52,723 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377956 - Received txn 1691337407587 from matrix.trustserv.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:52,726 - synapse.access.http.8008 - 465 - INFO - PUT-377956 - 162.158.86.13 - 8008 - {matrix.trustserv.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691337407587 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:46:53,120 - synapse.federation.transport.server.federation - 105 - INFO - PUT-377957 - Received txn 1691022662308 from matrix.kirbfeels.cc. (PDUs: 0, EDUs: 1)
2023-08-29 17:46:53,126 - synapse.access.http.8008 - 465 - INFO - PUT-377957 - 172.70.54.26 - 8008 - {matrix.kirbfeels.cc} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691022662308 HTTP/1.1" "Synapse/1.83.0" [0 dbevts]
2023-08-29 17:46:53,309 - synapse.util.caches.response_cache - 266 - INFO - GET-377958 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:46:53,310 - synapse.access.http.8008 - 465 - INFO - GET-377958 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:46:54,760 - synapse.http.server - 134 - ERROR - PUT-377960 - Failed handle request via 'RoomSendEventRestServlet': <XForwardedForRequest at 0x7fbae2e17650 method='PUT' uri='/_matrix/client/r0/rooms/!ehXvUhWNASUkSLvAGP%3Amatrix.org/send/m.room.message/m1693331095927.0' clientproto='HTTP/1.1' site='8008'>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 1697, in _inlineCallbacks
    result = context.run(gen.send, result)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/rest/client/room.py", line 366, in _do
    ) = await self.event_creation_handler.create_and_send_nonmember_event(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1039, in create_and_send_nonmember_event
    return await self._create_and_send_nonmember_event_locked(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1084, in _create_and_send_nonmember_event_locked
    event, unpersisted_context = await self.create_event(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 711, in create_event
    event, unpersisted_context = await self.create_new_client_event(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/util/metrics.py", line 113, in measured_func
    r = await func(self, *args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1264, in create_new_client_event
    builder.type == EventTypes.Create or prev_event_ids
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Attempting to create a non-m.room.create event with no prev_events
2023-08-29 17:46:54,761 - synapse.access.http.8008 - 465 - INFO - PUT-377960 - 172.71.122.48 - 8008 - {@tazy:matrix.tazy.xyz} Processed request: 0.008sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.005sec/6) 55B 500 "PUT /_matrix/client/r0/rooms/!ehXvUhWNASUkSLvAGP%3Amatrix.org/send/m.room.message/m1693331095927.0 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" [0 dbevts]
2023-08-29 17:46:54,922 - synapse.metrics._gc - 120 - INFO - sentinel - Collecting gc 1
2023-08-29 17:46:55,312 - synapse.util.caches.response_cache - 266 - INFO - GET-377961 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:46:55,312 - synapse.access.http.8008 - 465 - INFO - GET-377961 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:46:55,611 - synapse.access.http.8008 - 465 - INFO - GET-377905 - 172.71.122.49 - 8008 - {@tazy:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=7&timeout=30000&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" [0 dbevts]
tazy@hades:~$ docker logs -n 50 synapse
2023-08-29 17:48:35,027 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378157 - Received txn 1692798385736 from mi6e4ka.dev. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:35,030 - synapse.access.http.8008 - 465 - INFO - PUT-378157 - 162.158.94.130 - 8008 - {mi6e4ka.dev} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692798385736 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:35,313 - synapse.util.caches.response_cache - 266 - INFO - GET-378158 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:35,313 - synapse.access.http.8008 - 465 - INFO - GET-378158 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:35,630 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378159 - Received txn 1692816193406 from rutherther.eu. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:35,634 - synapse.access.http.8008 - 465 - INFO - PUT-378159 - 172.69.150.89 - 8008 - {rutherther.eu} Processed request: 0.006sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692816193406 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:36,390 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378160 - Received txn 1689214364451 from matrix.asso-fare.fr. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:36,394 - synapse.access.http.8008 - 465 - INFO - PUT-378160 - 172.70.251.70 - 8008 - {matrix.asso-fare.fr} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1689214364451 HTTP/1.1" "Synapse/1.73.0" [0 dbevts]
2023-08-29 17:48:37,133 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378161 - Received txn 1693293023714 from schwifty.net. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:37,137 - synapse.access.http.8008 - 465 - INFO - PUT-378161 - 172.70.42.106 - 8008 - {schwifty.net} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693293023714 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:37,317 - synapse.util.caches.response_cache - 266 - INFO - GET-378162 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:37,317 - synapse.access.http.8008 - 465 - INFO - GET-378162 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:37,459 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378163 - Received txn 1690882576628 from converser.eu. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:37,460 - synapse.handlers.typing - 372 - INFO - PUT-378163 - Ignoring typing update for room '!GtIfdsfQtQIgbQSxwJ:archlinux.org' from server converser.eu as we're not in the room
2023-08-29 17:48:37,463 - synapse.access.http.8008 - 465 - INFO - PUT-378163 - 172.71.123.88 - 8008 - {converser.eu} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1690882576628 HTTP/1.1" "Synapse/1.78.0" [0 dbevts]
2023-08-29 17:48:37,825 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378164 - Received txn 1684049601017 from osgeo.org. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:37,863 - synapse.access.http.8008 - 465 - INFO - PUT-378164 - 172.70.130.148 - 8008 - {osgeo.org} Processed request: 0.040sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.037sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1684049601017 HTTP/1.1" "Synapse/1.72.0" [0 dbevts]
2023-08-29 17:48:38,093 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378165 - Received txn 1690882576945 from converser.eu. (PDUs: 1, EDUs: 0)
2023-08-29 17:48:38,103 - synapse.federation.federation_server - 1238 - INFO - _process_incoming_pdus_in_room_inner-2584 - handling received PDU in room !GtIfdsfQtQIgbQSxwJ:archlinux.org: <FrozenEventV3 event_id=$34ORgyBKC0ggrWhGcQJV3AG7k4bP5UvvXm0mgkiQsec, type=m.room.message, state_key=None, outlier=False>
2023-08-29 17:48:38,104 - synapse.access.http.8008 - 465 - INFO - PUT-378165 - 172.71.123.88 - 8008 - {converser.eu} Processed request: 0.012sec/0.000sec (0.003sec, 0.000sec) (0.001sec/0.007sec/5) 60B 200 "PUT /_matrix/federation/v1/send/1690882576945 HTTP/1.1" "Synapse/1.78.0" [0 dbevts]
2023-08-29 17:48:38,107 - synapse.handlers.federation_event - 254 - INFO - _process_incoming_pdus_in_room_inner-2584-$34ORgyBKC0ggrWhGcQJV3AG7k4bP5UvvXm0mgkiQsec - Ignoring PDU from converser.eu as we're not in the room
2023-08-29 17:48:39,310 - synapse.util.caches.response_cache - 266 - INFO - GET-378166 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:39,311 - synapse.access.http.8008 - 465 - INFO - GET-378166 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:40,044 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378167 - Received txn 1686415082367 from c1.uba.be. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:40,048 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378168 - Received txn 1691952426695 from lunik.one. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:40,048 - synapse.access.http.8008 - 465 - INFO - PUT-378167 - 162.158.87.50 - 8008 - {c1.uba.be} Processed request: 0.007sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.003sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1686415082367 HTTP/1.1" "Synapse/1.84.1" [0 dbevts]
2023-08-29 17:48:40,051 - synapse.access.http.8008 - 465 - INFO - PUT-378168 - 162.158.87.17 - 8008 - {lunik.one} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1691952426695 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-29 17:48:40,186 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378169 - Received txn 1692109053813 from kescher.at. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:40,191 - synapse.access.http.8008 - 465 - INFO - PUT-378169 - 172.70.250.240 - 8008 - {kescher.at} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692109053813 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:48:40,735 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378171 - Received txn 1692884065174 from loncar.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:40,771 - synapse.access.http.8008 - 465 - INFO - PUT-378171 - 172.71.134.100 - 8008 - {loncar.de} Processed request: 0.037sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.034sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692884065174 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:40,805 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378172 - Received txn 1693145657699 from matrix.skewed.de. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:40,809 - synapse.access.http.8008 - 465 - INFO - PUT-378172 - 162.158.95.124 - 8008 - {matrix.skewed.de} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693145657699 HTTP/1.1" "Synapse/1.88.0" [0 dbevts]
2023-08-29 17:48:41,215 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378173 - Received txn 1692491489673 from the-apothecary.club. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:41,218 - synapse.access.http.8008 - 465 - INFO - PUT-378173 - 172.70.246.31 - 8008 - {the-apothecary.club} Processed request: 0.004sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.002sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692491489673 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:41,309 - synapse.util.caches.response_cache - 266 - INFO - GET-378174 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:41,310 - synapse.access.http.8008 - 465 - INFO - GET-378174 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:41,680 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378175 - Received txn 1692123573357 from matrix.brandt-art.synology.me. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:41,687 - synapse.access.http.8008 - 465 - INFO - PUT-378175 - 172.68.110.171 - 8008 - {matrix.brandt-art.synology.me} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692123573357 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:42,281 - synapse.access.http.8008 - 465 - INFO - GET-378108 - 172.69.79.220 - 8008 - {@signal:matrix.tazy.xyz} Processed request: 30.001sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 216B 200 "GET /_matrix/client/v3/sync?timeout=30000&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&filter=1&set_presence=online HTTP/1.1" "mautrix-signal/0.4.3 mautrix-python/0.19.14 aiohttp/3.8.3 Python/3.10.11" [0 dbevts]
2023-08-29 17:48:43,315 - synapse.util.caches.response_cache - 266 - INFO - GET-378177 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:43,315 - synapse.access.http.8008 - 465 - INFO - GET-378177 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:44,582 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378178 - Received txn 1690843681840 from ihrosah.com. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:44,589 - synapse.access.http.8008 - 465 - INFO - PUT-378178 - 172.71.154.96 - 8008 - {ihrosah.com} Processed request: 0.008sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1690843681840 HTTP/1.1" "Synapse/1.85.2" [0 dbevts]
2023-08-29 17:48:45,053 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378179 - Received txn 1693327741326 from matrix.gotdns.ch. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:45,060 - synapse.access.http.8008 - 465 - INFO - PUT-378179 - 162.158.130.9 - 8008 - {matrix.gotdns.ch} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.005sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693327741326 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-29 17:48:45,311 - synapse.util.caches.response_cache - 266 - INFO - GET-378180 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651898_17764_6_1505904_11656_222_8685_2237485_0_1', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-29 17:48:45,312 - synapse.access.http.8008 - 465 - INFO - GET-378180 - 172.70.91.87 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.002sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.000sec/0) 254B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651898_17764_6_1505904_11656_222_8685_2237485_0_1&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-29 17:48:45,859 - synapse.federation.transport.server.federation - 105 - INFO - PUT-378181 - Received txn 1692280216691 from nani.wtf. (PDUs: 0, EDUs: 1)
2023-08-29 17:48:45,866 - synapse.access.http.8008 - 465 - INFO - PUT-378181 - 162.158.222.221 - 8008 - {nani.wtf} Processed request: 0.008sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.006sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692280216691 HTTP/1.1" "Synapse/1.87.0" [0 dbevts]

@DMRobertson
Copy link
Contributor

USER=# \dt
Did not find any relations.

You haven't managed to get into the database correctly. I think you'll have to read up on how to do this with the postgres container that you're running. E.g. it might be that you need to set a search path, or login as the right role. I think the best place to get advice is a) the documentation for your postgres docker image, and b) the Synapse Admins room. (Since it seems that your homeserver is inoperable at the moment, you can sign up for an account on the Matrix.org homeserver in order to reach the support room.)

@45triX
Copy link
Author

45triX commented Aug 29, 2023

USER=# \dt
Did not find any relations.

You haven't managed to get into the database correctly. I think you'll have to read up on how to do this with the postgres container that you're running. E.g. it might be that you need to set a search path, or login as the right role. I think the best place to get advice is a) the documentation for your postgres docker image, and b) the Synapse Admins room. (Since it seems that your homeserver is inoperable at the moment, you can sign up for an account on the Matrix.org homeserver in order to reach the support room.)

managed to figure it out (just had to switch db sry big noob) here is the output of \dt

synapse=# \dt
                             List of relations
 Schema |                      Name                      | Type  |  Owner
--------+------------------------------------------------+-------+---------
 public | access_tokens                                  | table | Defiant
 public | account_data                                   | table | Defiant
 public | account_validity                               | table | Defiant
 public | application_services_state                     | table | Defiant
 public | application_services_txns                      | table | Defiant
 public | applied_module_schemas                         | table | Defiant
 public | applied_schema_deltas                          | table | Defiant
 public | appservice_room_list                           | table | Defiant
 public | appservice_stream_position                     | table | Defiant
 public | background_updates                             | table | Defiant
 public | batch_events                                   | table | Defiant
 public | blocked_rooms                                  | table | Defiant
 public | cache_invalidation_stream_by_instance          | table | Defiant
 public | current_state_delta_stream                     | table | Defiant
 public | current_state_events                           | table | Defiant
 public | dehydrated_devices                             | table | Defiant
 public | deleted_pushers                                | table | Defiant
 public | destination_rooms                              | table | Defiant
 public | destinations                                   | table | Defiant
 public | device_auth_providers                          | table | Defiant
 public | device_federation_inbox                        | table | Defiant
 public | device_federation_outbox                       | table | Defiant
 public | device_inbox                                   | table | Defiant
 public | device_lists_changes_converted_stream_position | table | Defiant
 public | device_lists_changes_in_room                   | table | Defiant
 public | device_lists_outbound_last_success             | table | Defiant
 public | device_lists_outbound_pokes                    | table | Defiant
 public | device_lists_remote_cache                      | table | Defiant
 public | device_lists_remote_extremeties                | table | Defiant
 public | device_lists_remote_pending                    | table | Defiant
 public | device_lists_remote_resync                     | table | Defiant
 public | device_lists_stream                            | table | Defiant
 public | devices                                        | table | Defiant
 public | e2e_cross_signing_keys                         | table | Defiant
 public | e2e_cross_signing_signatures                   | table | Defiant
 public | e2e_device_keys_json                           | table | Defiant
 public | e2e_fallback_keys_json                         | table | Defiant
 public | e2e_one_time_keys_json                         | table | Defiant
 public | e2e_room_keys                                  | table | Defiant
 public | e2e_room_keys_versions                         | table | Defiant
 public | erased_users                                   | table | Defiant
 public | event_auth                                     | table | Defiant
 public | event_auth_chain_links                         | table | Defiant
 public | event_auth_chain_to_calculate                  | table | Defiant
 public | event_auth_chains                              | table | Defiant
 public | event_backward_extremities                     | table | Defiant
 public | event_edges                                    | table | Defiant
 public | event_expiry                                   | table | Defiant
 public | event_failed_pull_attempts                     | table | Defiant
 public | event_forward_extremities                      | table | Defiant
 public | event_json                                     | table | Defiant
 public | event_labels                                   | table | Defiant
 public | event_push_actions                             | table | Defiant
 public | event_push_actions_staging                     | table | Defiant
 public | event_push_summary                             | table | Defiant
 public | event_push_summary_last_receipt_stream_id      | table | Defiant
 public | event_push_summary_stream_ordering             | table | Defiant
 public | event_relations                                | table | Defiant
 public | event_reports                                  | table | Defiant
 public | event_search                                   | table | Defiant
 public | event_to_state_groups                          | table | Defiant
 public | event_txn_id                                   | table | Defiant
 public | event_txn_id_device_id                         | table | Defiant
 public | events                                         | table | Defiant
 public | ex_outlier_stream                              | table | Defiant
 public | federation_inbound_events_staging              | table | Defiant
 public | federation_stream_position                     | table | Defiant
 public | ignored_users                                  | table | Defiant
 public | insertion_event_edges                          | table | Defiant
 public | insertion_event_extremities                    | table | Defiant
 public | insertion_events                               | table | Defiant
 public | instance_map                                   | table | Defiant
 public | local_current_membership                       | table | Defiant
 public | local_media_repository                         | table | Defiant
 public | local_media_repository_thumbnails              | table | Defiant
 public | local_media_repository_url_cache               | table | Defiant
 public | login_tokens                                   | table | Defiant
 public | monthly_active_users                           | table | Defiant
 public | open_id_tokens                                 | table | Defiant
 public | partial_state_events                           | table | Defiant
 public | partial_state_rooms                            | table | Defiant
 public | partial_state_rooms_servers                    | table | Defiant
 public | per_user_experimental_features                 | table | Defiant
 public | port_from_sqlite3                              | table | Defiant
 public | presence_stream                                | table | Defiant
 public | profiles                                       | table | Defiant
 public | push_rules                                     | table | Defiant
 public | push_rules_enable                              | table | Defiant
 public | push_rules_stream                              | table | Defiant
 public | pusher_throttle                                | table | Defiant
 public | pushers                                        | table | Defiant
 public | ratelimit_override                             | table | Defiant
 public | receipts_graph                                 | table | Defiant
 public | receipts_linearized                            | table | Defiant
 public | received_transactions                          | table | Defiant
 public | redactions                                     | table | Defiant
 public | refresh_tokens                                 | table | Defiant
 public | registration_tokens                            | table | Defiant
 public | rejections                                     | table | Defiant
 public | remote_media_cache                             | table | Defiant
 public | remote_media_cache_thumbnails                  | table | Defiant
 public | room_account_data                              | table | Defiant
 public | room_alias_servers                             | table | Defiant
 public | room_aliases                                   | table | Defiant
 public | room_depth                                     | table | Defiant
 public | room_forgetter_stream_pos                      | table | Defiant
 public | room_memberships                               | table | Defiant
 public | room_retention                                 | table | Defiant
 public | room_stats_current                             | table | Defiant
 public | room_stats_earliest_token                      | table | Defiant
 public | room_stats_state                               | table | Defiant
 public | room_tags                                      | table | Defiant
 public | room_tags_revisions                            | table | Defiant
 public | rooms                                          | table | Defiant
 public | schema_compat_version                          | table | Defiant
 public | schema_version                                 | table | Defiant
 public | server_keys_json                               | table | Defiant
 public | server_signature_keys                          | table | Defiant
 public | sessions                                       | table | Defiant
 public | state_events                                   | table | Defiant
 public | state_group_edges                              | table | Defiant
 public | state_groups                                   | table | Defiant
 public | state_groups_state                             | table | Defiant
 public | stats_incremental_position                     | table | Defiant
 public | stream_ordering_to_exterm                      | table | Defiant
 public | stream_positions                               | table | Defiant
 public | threads                                        | table | Defiant
 public | threepid_guest_access_tokens                   | table | Defiant
 public | threepid_validation_session                    | table | Defiant
 public | threepid_validation_token                      | table | Defiant
 public | ui_auth_sessions                               | table | Defiant
 public | ui_auth_sessions_credentials                   | table | Defiant
 public | ui_auth_sessions_ips                           | table | Defiant
 public | un_partial_stated_event_stream                 | table | Defiant
 public | un_partial_stated_room_stream                  | table | Defiant
 public | user_daily_visits                              | table | Defiant
 public | user_directory                                 | table | Defiant
 public | user_directory_search                          | table | Defiant
 public | user_directory_stale_remote_users              | table | Defiant
 public | user_directory_stream_pos                      | table | Defiant
 public | user_external_ids                              | table | Defiant
 public | user_filters                                   | table | Defiant
 public | user_ips                                       | table | Defiant
 public | user_signature_stream                          | table | Defiant
 public | user_stats_current                             | table | Defiant
 public | user_threepid_id_server                        | table | Defiant
 public | user_threepids                                 | table | Defiant
 public | users                                          | table | Defiant
 public | users_in_public_rooms                          | table | Defiant
 public | users_pending_deactivation                     | table | Defiant
 public | users_to_send_full_presence_to                 | table | Defiant
 public | users_who_share_private_rooms                  | table | Defiant
 public | worker_locks                                   | table | Defiant
 public | worker_read_write_locks                        | table | Defiant
 public | worker_read_write_locks_mode                   | table | Defiant
(155 rows)

and the output of the original SQL query is now

synapse=# SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;
 event_id
----------
(0 rows)

@DMRobertson
Copy link
Contributor

That suggests that Synapse doesn't know about the latest set of events in that room. Again, this shouldn't normally happen. My best guess is that the porting from sqlite to postgres went wrong. Do you have any logs from the port_db script? Do you have a backup of the sqlite DB that you can rerun the query on?

@45triX
Copy link
Author

45triX commented Aug 30, 2023

That suggests that Synapse doesn't know about the latest set of events in that room. Again, this shouldn't normally happen. My best guess is that the porting from sqlite to postgres went wrong. Do you have any logs from the port_db script? Do you have a backup of the sqlite DB that you can rerun the query on?

Are the logs from the port_db script saved anywhere or would I have had to save it after it ran cos if that the case then I dont have any logs, however I do still have the homeserver.db and the homeserver.db.snapshot files

@DMRobertson
Copy link
Contributor

Are the logs from the port_db script saved anywhere?

Unfortunately not. In that case, can you load up the most recent backup of the database (sqlite3 homeserver.db) and rerun the SQL query from #16191 (comment)?

@45triX
Copy link
Author

45triX commented Aug 30, 2023

Are the logs from the port_db script saved anywhere?

Unfortunately not. In that case, can you load up the most recent backup of the database (sqlite3 homeserver.db) and rerun the SQL query from #16191 (comment)?

Sry I'm probably doing something obviously wrong this is the output (I've done sqlite3 homeserver.db) here is the output:

sqlite> .databases
main: /home/tazy/docker/synapse/data/homeserver.db r/w
sqlite> SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;
sqlite> 

@45triX
Copy link
Author

45triX commented Aug 30, 2023

Are the logs from the port_db script saved anywhere?

Unfortunately not. In that case, can you load up the most recent backup of the database (sqlite3 homeserver.db) and rerun the SQL query from #16191 (comment)?

Sry I'm probably doing something obviously wrong this is the output (I've done sqlite3 homeserver.db) here is the output:

sqlite> .databases
main: /home/tazy/docker/synapse/data/homeserver.db r/w
sqlite> SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;
sqlite> 

is there a way for me to start again with a blank database?

@DMRobertson
Copy link
Contributor

Ahh, I've just noticed a mistake of mine. The room ID in the query has %3A, but this should be a colon :. Can you try again with a colon, i.e.

SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;

on postgres please?

@45triX
Copy link
Author

45triX commented Aug 30, 2023

Ahh, I've just noticed a mistake of mine. The room ID in the query has %3A, but this should be a colon :. Can you try again with a colon, i.e.

SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;

on postgres please?

still give the same output:

synapse=# SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;
 event_id
----------
(0 rows)

however doing the same query on the sqlite3 homeserver.db I get the following output:

sqlite> SELECT e.event_id FROM event_forward_extremities AS f
INNER JOIN events AS e USING (event_id)
WHERE f.room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz'
ORDER BY e.depth DESC
LIMIT 10;
$CZlUvji66gU-hC3pxYZD3IT4iDSZztcgntU7YHo9e5A

Thanks for helping me with this

@DMRobertson
Copy link
Contributor

That's surprising. It suggests that your sqlite DB knew about the room in question, but your postgres DB doesn't.

Have you tried to purge this room using the admin API after porting to postgres?

Can you additionally run

SELECT count(*) FROM current_state_events
WHERE room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz' AND type = 'm.room.member' AND state_key LIKE '%:matrix.tazy.xyz';

against postgres and sqlite please?

@45triX
Copy link
Author

45triX commented Aug 31, 2023

That's surprising. It suggests that your sqlite DB knew about the room in question, but your postgres DB doesn't.

Have you tried to purge this room using the admin API after porting to postgres?

No im unsure how to do that ill give it a go but out rn managed to get the sql qurries run tho

I ran the following curl command for the admin api
curl --header "Authorization: Bearer (My Admin User Access Token)" DELETE http://<local-ip>:8008/_synapse/admin/v1/rooms/!GtIfdsfQtQIgbQSxwJ%3Aarchlinux.org/purge
the output was
-bash: !GtIfdsfQtQIgbQSxwJ: event not found
I've obviously done something wrong

Can you additionally run

SELECT count(*) FROM current_state_events
WHERE room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz' AND type = 'm.room.member' AND state_key LIKE '%:matrix.tazy.xyz';

against postgres and sqlite please?
output for postgres is:

synapse=# SELECT count(*) FROM current_state_events
WHERE room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz' AND type = 'm.room.member' AND state_key LIKE '%:matrix.tazy.xyz';
 count
-------
     0
(1 row)

output for sqlite3

sqlite> SELECT count(*) FROM current_state_events
   ...> WHERE room_id = '!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz' AND type = 'm.room.member' AND state_key LIKE '%:matrix.tazy.xyz';
2
sqlite>

ill edit when i get back to pc

@DMRobertson
Copy link
Contributor

It sounds like the porting process errored or didn't finish somehow then.

You can try purging the room (https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#version-2-new-version) which will delete everything your server knows about this room. Be sure you want to do this: if there are no other homeservers in that room, that room's history will be gone forever.

@45triX
Copy link
Author

45triX commented Aug 31, 2023

It sounds like the porting process errored or didn't finish somehow then.

You can try purging the room (https://matrix-org.github.io/synapse/latest/admin_api/rooms.html#version-2-new-version) which will delete everything your server knows about this room. Be sure you want to do this: if there are no other homeservers in that room, that room's history will be gone forever.

Thanks tbh I haven't really used matrix that much I did join a few rooms but haven't really sent that many messages to them I was hoping to migrate from discord but none of my friends want to so its just kind of sat there for a while too. I went back and edited the last comment I'll repeat

I ran the following curl command for the admin api
curl --header "Authorization: Bearer (My Admin User Access Token)" DELETE http://<local-ip>:8008/_synapse/admin/v2/rooms/!GtIfdsfQtQIgbQSxwJ%3Aarchlinux.org/purge
the output was
-bash: !GtIfdsfQtQIgbQSxwJ: event not found
I've obviously done something wrong

@DMRobertson
Copy link
Contributor

wrap the URL in quotes. ! is a special character for bash, see e.g. https://tldp.org/LDP/abs/html/special-chars.html

@45triX
Copy link
Author

45triX commented Aug 31, 2023

wrap the URL in quotes. ! is a special character for bash, see e.g. https://tldp.org/LDP/abs/html/special-chars.html

curl --header "Authorization: Bearer (Admin User Access Token)" DELETE "http://127.0.0.1:8008/_synapse/admin/v2/rooms/!GtIfdsfQtQIgbQSxwJ:archlinux.org/purge"
Sry being big noob still not working giving the same output I've tried using the host ip, 127.0.0.1 I've also tried adding -X before DELETE not sure what its supposed to do but it still give the same output

edit: I don't think the purge goes at the end of the url but in the header so I've modified to
curl --header "Authorization: Bearer ", "purge: true" DELETE "http://127.0.0.1:8008/_synapse/admin/v2/rooms/!GtIfdsfQtQIgbQSxwJ:archlinux.org/"
still gives the same output
-bash: !GtIfdsfQtQIgbQSxwJ: event not found

I made a python script using Matrix Tutorial #5 on youtube

import requests

host = "<Internal-IP>:8008"
access_token = "Admin User Access Token"

headers = {
    "Authorization": "Bearer "+access_token,
    "purge": "true"
}

r = requests.delete("http://"+host+"/_synapse/admin/v2/rooms/!GtIfdsfQtQIgbQSxwJ:archlinux.org/", headers=headers)

the output of this is

{'errcode': 'M_UNRECOGNIZED', 'error': 'Unrecognized request'}

BTW I'm using the internal room ID for the archlinux room

@45triX
Copy link
Author

45triX commented Aug 31, 2023

import requests

host = "127.0.0.1:8008"
access_token = ""

headers = {
    "Authorization": "Bearer "+access_token,
}

body = {
    "purge": True
}

r = requests.delete("http://"+host+"/_synapse/admin/v2/rooms/!GtIfdsfQtQIgbQSxwJ:archlinux.org", headers=headers, json=body)
print(r.json())

This python script seems to have worked got this response
{'delete_id': 'jwmeGqcesqnxwNUP'}
I'm gonna do the same for all federated rooms and rejoin some of them hopefully that's everything fixed
Edit: I didn't get kicked from any of the rooms that I purged and I'm still getting the 500 error when trying to leave the room through element. I done a delete status api request and the following was the response

{'results': [{'delete_id': 'jwmeGqcesqnxwNUP', 'status': 'complete', 'shutdown_room': {'kicked_users': [], 'failed_to_kick_users': [], 'local_aliases': [], 'new_room_id': None}}]}

@45triX
Copy link
Author

45triX commented Aug 31, 2023

I can't send any messages to any local rooms This is logs from an attempt to send a message to a local room with my main admin account

2023-08-31 22:00:08,380 - synapse.http.server - 134 - ERROR - PUT-758750 - Failed handle request via 'RoomSendEventRestServlet': <XForwardedForRequest at 0x7fbaecfa1e90 method='PUT' uri='/_matrix/client/r0/rooms/!MLJcyDXUdtQVaGOeqq%3Amatrix.tazy.xyz/send/m.room.encrypted/m1693519148755.7' clientproto='HTTP/1.1' site='8008'>
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 1697, in _inlineCallbacks
    result = context.run(gen.send, result)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/rest/client/room.py", line 366, in _do
    ) = await self.event_creation_handler.create_and_send_nonmember_event(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1039, in create_and_send_nonmember_event
    return await self._create_and_send_nonmember_event_locked(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1084, in _create_and_send_nonmember_event_locked
    event, unpersisted_context = await self.create_event(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 711, in create_event
    event, unpersisted_context = await self.create_new_client_event(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/util/metrics.py", line 113, in measured_func
    r = await func(self, *args, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/synapse/handlers/message.py", line 1264, in create_new_client_event
    builder.type == EventTypes.Create or prev_event_ids
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Attempting to create a non-m.room.create event with no prev_events
2023-08-31 22:00:08,381 - synapse.access.http.8008 - 465 - INFO - PUT-758750 - 172.69.79.220 - 8008 - {@tazy:matrix.tazy.xyz} Processed request: 0.010sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.006sec/6) 55B 500 "PUT /_matrix/client/r0/rooms/!MLJcyDXUdtQVaGOeqq%3Amatrix.tazy.xyz/send/m.room.encrypted/m1693519148755.7 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0" [0 dbevts]
2023-08-31 22:00:09,296 - synapse.util.caches.response_cache - 266 - INFO - GET-758751 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651941_17764_12_1505967_11723_222_8966_2237543_0_2', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-31 22:00:09,297 - synapse.access.http.8008 - 465 - INFO - GET-758751 - 141.101.77.24 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 255B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651941_17764_12_1505967_11723_222_8966_2237543_0_2&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-31 22:00:10,781 - synapse.http.matrixfederationclient - 348 - INFO - PerspectivesKeyFetcher-33983 - {POST-O-295660} [matrix.org] Completed request: 200 OK in 5.15 secs, got 440 bytes - POST matrix-federation://matrix.org/_matrix/key/v2/query
2023-08-31 22:00:10,788 - synapse.federation.transport.server.federation - 105 - INFO - PUT-758737 - Received txn 1692030995619 from reddott.de. (PDUs: 0, EDUs: 1)
2023-08-31 22:00:10,793 - synapse.access.http.8008 - 465 - INFO - PUT-758737 - 172.70.250.20 - 8008 - {reddott.de} Processed request: 6.561sec/0.000sec (0.001sec, 0.000sec) (0.001sec/0.003sec/3) 11B 200 "PUT /_matrix/federation/v1/send/1692030995619 HTTP/1.1" "Synapse/1.89.0" [0 dbevts]
2023-08-31 22:00:11,299 - synapse.util.caches.response_cache - 266 - INFO - GET-758752 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651941_17764_12_1505967_11723_222_8966_2237543_0_2', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]
2023-08-31 22:00:11,299 - synapse.access.http.8008 - 465 - INFO - GET-758752 - 141.101.77.24 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 0.003sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/0) 255B 200 "GET /_matrix/client/r0/sync?filter=%7B%22room%22%3A%7B%22rooms%22%3A%5B%22%21sRHNtYGJcSmVtNOtMu%3Amatrix.tazy.xyz%22%5D%2C%22timeline%22%3A%7B%22types%22%3A%5B%22m.room.message%22%5D%2C%22not_senders%22%3A%5B%22%40sememcraft%3Amatrix.tazy.xyz%22%5D%7D%7D%7D&since=s651941_17764_12_1505967_11723_222_8966_2237543_0_2&access_token=<redacted> HTTP/1.1" "Java/17.0.8" [0 dbevts]
2023-08-31 22:00:11,683 - synapse.federation.transport.server.federation - 105 - INFO - PUT-758753 - Received txn 1692605420283 from matrix.taz.de. (PDUs: 0, EDUs: 1)
2023-08-31 22:00:11,687 - synapse.access.http.8008 - 465 - INFO - PUT-758753 - 162.158.203.136 - 8008 - {matrix.taz.de} Processed request: 0.005sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692605420283 HTTP/1.1" "Synapse/1.87.0" [0 dbevts]
2023-08-31 22:00:11,854 - synapse.access.http.8008 - 465 - INFO - GET-758699 - 172.71.102.186 - 8008 - {@sememcraft:matrix.tazy.xyz} Processed request: 30.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 255B 200 "GET /_matrix/client/r0/sync?filter=1&timeout=30000&since=s651941_17764_12_1505967_11723_222_8966_2237543_0_2 HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" [0 dbevts]
2023-08-31 22:00:12,323 - synapse.federation.transport.server.federation - 105 - INFO - PUT-758756 - Received txn 1693420561586 from tchncs.de. (PDUs: 0, EDUs: 1)
2023-08-31 22:00:12,328 - synapse.access.http.8008 - 465 - INFO - PUT-758756 - 162.158.238.21 - 8008 - {tchncs.de} Processed request: 0.006sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1693420561586 HTTP/1.1" "Synapse/1.91.0" [0 dbevts]
2023-08-31 22:00:12,476 - synapse.federation.transport.server.federation - 105 - INFO - PUT-758757 - Received txn 1692882182658 from cqmn.sh. (PDUs: 0, EDUs: 1)
2023-08-31 22:00:12,480 - synapse.access.http.8008 - 465 - INFO - PUT-758757 - 198.41.231.19 - 8008 - {cqmn.sh} Processed request: 0.005sec/0.000sec (0.001sec, 0.000sec) (0.000sec/0.003sec/2) 11B 200 "PUT /_matrix/federation/v1/send/1692882182658 HTTP/1.1" "Synapse/1.90.0" [0 dbevts]
2023-08-31 22:00:13,296 - synapse.util.caches.response_cache - 266 - INFO - GET-758758 - [sync]: using completed cached result for [(@sememcraft:matrix.tazy.xyz, 0, 's651941_17764_12_1505967_11723_222_8966_2237543_0_2', '{"room":{"rooms":["!sRHNtYGJcSmVtNOtMu:matrix.tazy.xyz"],"timeline":{"types":["m.room.message"],"not_senders":["@sememcraft:matrix.tazy.xyz"]}}}', False, 'GCCDYUWTJA', None)]

when I tried to purge the sememcraft room (dm between my main tazy account and sememcraft account) I get the following error

{'errcode': 'M_NOT_JSON', 'error': 'Content not JSON.'}

@45triX 45triX closed this as completed Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Database DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db A-Leave Leaving a room S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants