Why does the user list remain empty?

AI-generated summary

Users are experiencing an issue where the user list remains empty on a fresh Discourse installation, even after creating multiple users. elliem reports the problem occurs regardless of login status and with users of various trust levels. cpradio and zogstrip explain that the directory page is updated by a background job, which may not have run yet, and that the page is heavily cached. sam confirms this is working as designed, with a delay. duranmla seeks a way to force the job in a development environment, and pfaffman identifies the relevant jobs as Jobs::DirectoryRefreshDaily and Jobs::DirectoryRefreshOlder. The discussion is categorized as a feature request, acknowledging the delay but noting the complexity of reducing it.

I have a fresh Discourse installed on DigitalOcean (followed ssh instructions)

After creating 5 users, and visiting /users page it always “No results were found.”
What could be wrong? This happens for both logged in and logged out users. Also settings box is ticked to show users list.

1개의 좋아요

What TL are the new users? I believe it filters out TL 0 users. Plus that page is very heavily cached and requires a job to run in Sidekiq (IIRC)

1개의 좋아요

They are a mix of users. Some are even admins.

Like @cpradio said this page is updated in a background job. I would ensure sidekiq is properly running and wait for 24 hours for the job to run.

1개의 좋아요

regategorizing as Contribute > Feature, it is working as designed, there is a delay there. If you want it any faster there is a huge and complex cost involved.

1개의 좋아요

Is it there a way to force that background job to run on a local setup? I have the same issue in my development environment I have added few users to different levels also make those users create some topics but my users list its empty.

Of course, tomorrow may get solved, but other fellows may need this in order to develop something and it will be annoying try to wait for such long time.

Cheers!

1개의 좋아요

Solution is here: https://meta.discourse.org/t/user-list-can-not-be-displayed/63100/5?u=duranmla

어떤 작업인지 힌트를 주실 수 있으신가요? 이렇게 하면 강제 실행할 수 있을 것 같습니다. /sidekiq/scheduler와 app/jobs를 살펴봤지만 여전히 찾지 못했습니다.

그리고 테스트 환경에서 이것이 정상적으로 작동하는지 확인한 후, 비즈니스 고객이 실행을 원한다면 지원팀에 이메일로 요청할 수 있을까요?

수정: 찾았습니다: Jobs::DirectoryRefreshDaily

하지만 /u는 여전히 활성 사용자를 모두 나열하지 않습니다.

수정: Jobs::DirectoryRefreshOlder도 참고하세요.

7개의 좋아요