-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
synapse_port_db fails when ui_auth_sessions
table is non-empty
#7654
Comments
It should be easy to fix the error writing to @gjsmo Does it work without the |
ui_auth_sessions
table is non-empty
Can't say I know much about |
It worked fine without the
It does incur some downtime but not too much - for me it was about 20 minutes (out of which maybe 10 was spent on this particular bug). I think the officially instructions suggest to actually do it in a way that creates maybe 1 minute of downtime, by running the script once while Synapse remains up, then again with Synapse down to update whatever changes occurred during the initial migration (but this takes much less time). In general I see it's recommended to do this earlier than later so the SQlite DB is going to be fairly small too. Do you mean that the login sessions would be invalidated or just the ongoing actions? That seems like a big-ish difference but I'm not sure what that table represents. |
I think ignoring the table is probably fine, the other option is to ensure that the port script copies tables over in the correct order to make the foreign constraints happy.
Weird. I can't see how it'd change things, though maybe there is a race or something that means it happens randomly or only on the first run or something
Just ongoing actions, i.e. if the user was in the middle of authenticating to delete a device (as that requires typing in your password again, for example) they'd have to retry. Login sessions wouldn't get deleted. |
@richvdh I believe you said you believe the fix for this is straightforward, I think there's two options here:
Did you have one of those options in mind or something else? |
I had option 1 in mind. |
I think that we need add |
Description
Running
synapse_port_db
with the--curses
option causes an error. This does not occur if the option is removed.Steps to reproduce
synapse_port_db
script with--curses
option.This should port the SQlite database into PostgreSQL. However, it fails with the error below (mildly redacted).
Version information
The text was updated successfully, but these errors were encountered: