서버 재설치 후 500 오류가 매우 자주 발생함

안녕하세요,

호스팅 사이트에서 발생한 화재로 인해 초기 서버와 스냅샷을 모두 잃어버린 뒤(원격 백업은 정말 감사합니다!) 백업 파일만으로 Discourse 서버를 다시 구축해야 했습니다. 초기 서버는 Ubuntu 19.04를 사용하고 있었고, Discourse 최신 버전이 아니었습니다(최신 버전보다 몇 달 정도 뒤처져 있었는데 정확한 버전은 기억나지 않습니다). 현재는 Ubuntu 18.04에 최신 버전의 Discourse를 설치하고, 마지막 백업 파일을 사용하여 UI를 통해 데이터베이스를 복원했습니다.

현재 사이트에서 500 에러가 빈번하게 발생하고 있으며, production 로그에서 두 가지 유형의 오류 메시지를 확인하고 있습니다. 다음 단계로 무엇을 할 수 있을지 아이디어를 주실 수 있을까요? 감사합니다!

Started GET “/t/en-2019-des-frontaliers-imposes-a-la-source-en-france/8675” for xx.xx.xx.xx at 2021-03-12 07:57:02 +0000
Processing by TopicsController#show as HTML
Parameters: {“slug”=>“en-2019-des-frontaliers-imposes-a-la-source-en-france”, “topic_id”=>“8675”}
Completed 500 Internal Server Error in 145ms (ActiveRecord: 0.0ms | Allocations: 30586)
NoMethodError (undefined method slow_mode_seconds' for #<Topic:0x00007f9f56b4c1f0>) (eval):2:in slow_mode_seconds’
(eval):33:in _fast_attributes' app/controllers/topics_controller.rb:1109:in block (2 levels) in perform_show_response’
app/controllers/topics_controller.rb:1104:in perform_show_response' app/controllers/topics_controller.rb:162:in show’
app/controllers/application_controller.rb:358:in block in with_resolved_locale' app/controllers/application_controller.rb:358:in with_resolved_locale’
lib/middleware/omniauth_bypass_middleware.rb:68:in call' lib/content_security_policy/middleware.rb:12:in call’
lib/middleware/anonymous_cache.rb:353:in call' config/initializers/100-quiet_logger.rb:23:in call’
config/initializers/100-silence_logger.rb:31:in call' lib/middleware/enforce_hostname.rb:23:in call’
lib/middleware/request_tracker.rb:177:in `call’

Started GET “/” for xx.xx.xx.xx at 2021-03-12 07:55:24 +0000
Processing by CategoriesController#index as HTML
Completed 500 Internal Server Error in 313ms (ActiveRecord: 0.0ms | Allocations: 69745)
NoMethodError (undefined method default_list_filter' for #<Category:0x00007f9f520dc778> Did you mean? default_view) (eval):29:in _fast_attributes’
lib/freedom_patches/ams_include_without_root.rb:57:in include!' app/controllers/categories_controller.rb:42:in block (2 levels) in index’
app/controllers/categories_controller.rb:40:in index' app/controllers/application_controller.rb:358:in block in with_resolved_locale’
app/controllers/application_controller.rb:358:in with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:68:in call’
lib/content_security_policy/middleware.rb:12:in call' lib/middleware/anonymous_cache.rb:353:in call’
config/initializers/100-quiet_logger.rb:23:in call' config/initializers/100-silence_logger.rb:31:in call’
lib/middleware/enforce_hostname.rb:23:in call' lib/middleware/request_tracker.rb:177:in call’

Discourse 자체는 어떻게 설치하셨나요? Discourse 공식 표준 설치 절차를 따르셨나요?

사이트 링크를 공유해 주실 수 있나요?

@Falco님, 정말 감사합니다! 조언 덕분에 해결책을 찾을 수 있었습니다.
실제로 설치 절차를 제대로 따르지 않았는데, 정확히 말하면 초기 Discourse 설정(discourse-setup 명령어)을 거치지 않았습니다.
기존 설치에서 가져온 설정 파일을 사용하여 단순히 “launcher rebuild” 명령어만 실행하고 있었습니다.

discourse-setup을 사용하니 설정 파일을 처음부터 다시 생성할 수 있었고, 이후 커스텀 경로와 플러그인을 추가하기 위해 파일을 수정한 뒤 rebuild를 진행했더니 이전과 똑같이 정상 작동했습니다.
다시 한번 도움 주셔서 감사합니다!