Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

User Directory not regenerating #5036

Closed
drseussofporn opened this issue Apr 9, 2019 · 6 comments
Closed

User Directory not regenerating #5036

drseussofporn opened this issue Apr 9, 2019 · 6 comments
Labels
A-Docs things relating to the documentation z-p2 (Deprecated Label)

Comments

@drseussofporn
Copy link

Originally, our homeserver was federated and able to connect to the matrix network. I decided to remove federation per another Github issue by just whitelisting the local HS for federation. Following this, the search_all_users was set to true and I performed the psql command UPDATE user_directory_stream_pos SET stream_id = NULL; to regenerate the user directory as I wanted the HS to only search local users and forget about all other users it had encountered during federation. However, after a restart of Synapse the user directory still contains entries for users outside of the local installation. How do I clear these entries and force a regeneration of the user directory?

@neilisfragile
Copy link
Contributor

For support please ask in #synapse:matrix.org

@aaronraimist
Copy link
Contributor

aaronraimist commented Apr 10, 2019

For the record they already asked about 5 times in #matrix:matrix.org and #synapse:matrix.org and @ara4n told them to file an issue. It seems likely that the new user directory in 0.99.3 changed how this works but didn't update the documentation.

@neilisfragile
Copy link
Contributor

Well that's not ideal, right I see, this is from the user_dir docs - fair enough I'll run with it

@neilisfragile neilisfragile reopened this Apr 10, 2019
@neilisfragile neilisfragile added A-Docs things relating to the documentation z-p2 (Deprecated Label) labels Apr 10, 2019
@hawkowl
Copy link
Contributor

hawkowl commented Apr 20, 2019

@drseussofporn You will need to manually rerun the migration, via https://github.com/matrix-org/synapse/blob/master/synapse/storage/schema/delta/53/user_dir_populate.sql , and restart Synapse.

@drseussofporn
Copy link
Author

@hawkowl Thank you. That was exactly what I needed.

aaronraimist added a commit to aaronraimist/synapse that referenced this issue May 29, 2019
Signed-off-by: Aaron Raimist <aaron@raim.ist>
hawkowl added a commit that referenced this issue May 29, 2019
Fix docs on resetting the user directory (#5036)
@richvdh
Copy link
Member

richvdh commented May 29, 2019

fixed by #5282, seemingly

@richvdh richvdh closed this as completed May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Docs things relating to the documentation z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

5 participants