-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[sqlite] can't launch after upgrade due to failing database migration #14333
Comments
How did you try to remove the table? Please can you give the output of SELECT * FROM applied_schema_deltas; ? |
I just deleted the table in "homeserver.db". Here is output:
|
Is this migration issue? Anything I can do to get out of this state, like manually create/remove tables. |
You should NOT manually make edits to the Synapse database at all. Doing so without knowing what you're doing is highly unsafe and we cannot support anyone who has done so without our guidance.
|
Same problem here, while upgrading. It seems as if the upgrade script assume that in tha DB there are 2 tables In my case I had in my db both tables with _new name, with data, and did not have the tables without the _new prefix. I did the following:
|
What might have happened is that Synapse got killed or timed out while running @fuji246 To get the database back into a good state, we need to first figure out what its current state is. Can you post the output of the following commands?
|
#14100 describes a related problem with long running migrations. |
oops, I already deleted the database and reset everything. |
In that case I'll close the issue. I've filed #14401 to track the general case of schema deltas timing out. |
Description
can't launch after upgrade, looks like db migration issue:
table receipts_linearized_new already exists
. I've tried to remove that table but still having the same error.Steps to reproduce
pip install --upgrade matrix-synapse
Homeserver
matrix.lomorage.com
Synapse Version
$ curl http://localhost:8008/_synapse/admin/v1/server_version {"server_version":"1.37.1","python_version":"3.7.3"}
Installation Method
pip (from PyPI)
Platform
arm64
Relevant log output
The text was updated successfully, but these errors were encountered: