-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
we should run the 'are_all_users_on_domain' database sanity check before running schema migrations #6870
Comments
I was finally able to identify the issue. |
I'm afraid I don't quite understand your explanation. If the problem is that |
(title updated for clarification: we use 'database migration' to mean moving from sqlite to postgres) |
@richvdh I will clarify better But there's another problem and you should be able to reproduce with the following steps:
The problem is that at point 4 the database update for synapse/synapse/storage/data_stores/main/schema/delta/57/local_current_membership.py Line 72 in 9bae740
Once you fix the server name and restart properly the server the migration is already run and local_current_membership will stay empty breaking the search
My fix was to manually delete the table, remove the migration from the db and restart the server with the proper server name |
ah I see. Thanks |
Some of the database deltas rely on `config.server_name` being set correctly, so we should check that it is before running the deltas. Fixes #6870.
done in #6982 |
Some of the database deltas rely on `config.server_name` being set correctly, so we should check that it is before running the deltas. Fixes #6870.
Some of the database deltas rely on `config.server_name` being set correctly, so we should check that it is before running the deltas. Fixes #6870.
Some of the database deltas rely on `config.server_name` being set correctly, so we should check that it is before running the deltas. Fixes matrix-org#6870.
Description
When I run a search on my hosted matrix service from any client I see no results.
I can see the correct count but not the actual results
Steps to reproduce
Version information
If not matrix.org:
{"server_version": "1.9.1", "python_version": "3.7.3"}
Debian apt repo package
Debian 10
I found the query that's run on sqlite for search and I saw it doesn't work properly:
https://github.com/matrix-org/synapse/blob/v1.9.1/synapse/storage/data_stores/main/search.py#L424
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg71741.html
I then realised that the bultin sqlite3 function is overidden by https://github.com/matrix-org/synapse/blob/v1.9.1/synapse/storage/engines/sqlite.py#L76
my guess is that somehow the function overide is not applied and so the bultin failing rank function is used
The text was updated successfully, but these errors were encountered: