-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
synapse_port_db fails on room_depth
table
#3214
Comments
ugh, what a mess - thank you for the excellent bug report. This is all fallout from https://matrix.org/blog/2018/05/01/security-update-synapse-0-28-1/. The workaround is to (having first taken a backup) to |
Not quite; note that the value it tries to insert is already 2⁶³-1 and not larger. The problem is that the schema uses the Similarly, I cannot join #matrix on my HS because Synapse fails to set the
One |
@heftig I have exactly the same problem. |
I can confirm I had a similar problem on a DB that was created on postgresql and altering the table as described it above fixed it. |
I can confirm we had the same issue when running The solution/workaround as described above was required to make it work: |
Given that 1.5.0 recommends migration to postgres in all production instances, is manual editing of postgres column definitions the recommended way to do this? |
This should be fixed by #10289. |
Description
On a
synapse
homeserver which has previously joined#matrix-hq
there is an entry in theroom_depth
table w/ a depth ofINT_MAX
. When runningsynapse_port_db
this fails to import into a postgresql database since SQLite'sinteger
type is 8 bytes wide if necessary, whereas PostgreSQL'sinteger
type is fixed at 4 bytes wide.Steps to reproduce
#matrix-hq
and sync itObserve the output of
synapse_port_db
has failed:The error is caused by the following entry in
room_depth
:Which cannot be imported into the following table w/ an INT_MAX of
(2^31) - 1
:Version information
The text was updated successfully, but these errors were encountered: