-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
User directory missing local users and contains remote users with federation disabled #16271
Comments
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.
Can you sanity check this succeeded by searching the logs for
Are you sure about this? What config have you set up that enforces this? What do
return?
That does seem odd and probably needs further investigation. |
That table should definitely get truncated:
One thing you could do is to turn on DEBUG logging for SQL (see here) and rerun the |
Ok, thanks i have the logs ... |
Yes, please email me via |
Unfortunately those logs didn't have all the info I was hoping for (c.f. #16281). My guess is that the Matrix.org users are showing up in your directory due to
I don't fully understand why your own users aren't showing up in the directory. Is this something you can observe as an end-user searching for users in the client? To confirm/investigate this, some more questions: -Do you have any application services configured? If so, what users are the responsible for? (Application service users do not show up in the user directory, which may explain why you're not seeing your local users).
|
It could be worth purging any rooms that were from matrix.org, maybe? |
Thank you for the logs. We saw that most of the users are marked as support users.
I don't think we strongly advertise anywhere what changing the
I suggest running UPDATE users
SET user_type = NULL
WHERE user_type = 'support' then trying to regenerate the user directory. That should make your local users appear. Additionally, there are three rooms according to the query on |
Hello, thanks a lot for troubleshooting. Thanks again, have a nice day! /closed |
Thanks for confirming; glad to help. |
Description
Hi, our synapse homeserver is private and did not federate with matrix.org.
I wonder about that clients can't find local users from our homeserver.
So i took a look in database
select * from user_directory_search;
.Surprisingly in this table there are a few users from matrix.org but no user from our own homeserver.
I don't know why this is the case, but i think it's strange. ?
The Homeserver configuration for user_directory is:
Steps to reproduce
I have no clue how to reproduce this.
Homeserver
private homeserver
Synapse Version
Synapse 1.91.2
Installation Method
Docker (matrixdotorg/synapse)
Database
Postgres SQL , not migrated from SQLite , not restored any backup.
Workers
Single process
Platform
docker-compose stack with following containers:
Configuration
No response
Relevant log output
did not find any relevant in logs
Anything else that would be useful to know?
Is there any way to rebuild the user_directory ?
I tried to run
UPDATE user_directory_stream_pos SET stream_id = NULL;
Followed by a restart of synapse.
This didn't work for me.
So i Tried also:
curl --header "Authorization: Bearer TOKEN" -X POST 'http://10.1.1.20:8008/_synapse/admin/v1/background_updates/start_job' -d '{"job_name": "regenerate_directory"}'
But this also didn't work, user_directory remains the same.
I hope someone can clarify or help, i don't know if its a bug.
The text was updated successfully, but these errors were encountered: