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:
user_directory:
enabled: true
search_all_users: true
prefer_local_users: true
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:
- synapse
- psql_synapse
- redis_synapse
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.