今天重建时出现500错误

I installed a new plugin (calendar) and rebuilt when finished. I found this message.

Oops
The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.
Detailed information about the error was logged, and an automatic notification generated. We’ll take a look at it.
No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site’s feedback category.

This Error logs

Message
ActionView::Template::Error ({:cause=>#<MiniRacer::RuntimeError: Error: The plural case one is not valid in this locale at line 4 col 15:>})
lib/js_locale_helper.rb:153:in `output_MF'
app/controllers/extra_locales_controller.rb:53:in `bundle_js'
app/controllers/extra_locales_controller.rb:29:in `bundle_js_hash'
app/controllers/extra_locales_controller.rb:38:in `url'
app/views/layouts/application.html.erb:40
lib/topic_list_responder.rb:15:in `block (2 levels) in respond_with_list'
lib/topic_list_responder.rb:8:in `respond_with_list'
app/controllers/list_controller.rb:342:in `block (2 levels) in <class:ListController>'
app/controllers/list_controller.rb:312:in `public_send'
app/controllers/list_controller.rb:312:in `top'
app/controllers/application_controller.rb:424:in `block in with_resolved_locale'
app/controllers/application_controller.rb:424:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:393:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:35:in `call_app'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:22:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:360:in `call'
Backtrace
messageformat-wrapper (1.0.0) lib/messageformat.rb:26:in `rescue in compile'
messageformat-wrapper (1.0.0) lib/messageformat.rb:23:in `compile'
messageformat-wrapper (1.0.0) lib/messageformat.rb:8:in `compile'
lib/js_locale_helper.rb:153:in `output_MF'
app/controllers/extra_locales_controller.rb:53:in `bundle_js'
app/controllers/extra_locales_controller.rb:29:in `bundle_js_hash'
app/controllers/extra_locales_controller.rb:38:in `url'
app/views/layouts/application.html.erb:40
actionview (7.1.3.4) lib/action_view/base.rb:264:in `public_send'
actionview (7.1.3.4) lib/action_view/base.rb:264:in `_run'
actionview (7.1.3.4) lib/action_view/template.rb:261:in `block in render'
activesupport (7.1.3.4) lib/active_support/notifications.rb:208:in `instrument'
actionview (7.1.3.4) lib/action_view/template.rb:549:in `instrument_render_template'
actionview (7.1.3.4) lib/action_view/template.rb:249:in `render'
rack-mini-profiler (3.3.1) lib/mini_profiler/profiling_methods.rb:115:in `block in profile_method' 
actionview (7.1.3.4) lib/action_view/renderer/template_renderer.rb:77:in `block in render_with_layout'
activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.1.3.4) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `instrument'
actionview (7.1.3.4) lib/action_view/renderer/template_renderer.rb:75:in `render_with_layout'
actionview (7.1.3.4) lib/action_view/renderer/template_renderer.rb:59:in `render_template'
actionview (7.1.3.4) lib/action_view/renderer/template_renderer.rb:11:in `render'
actionview (7.1.3.4) lib/action_view/renderer/renderer.rb:63:in `render_template_to_object'
actionview (7.1.3.4) lib/action_view/renderer/renderer.rb:31:in `render_to_object'
actionview (7.1.3.4) lib/action_view/rendering.rb:135:in `block in _render_template'
actionview (7.1.3.4) lib/action_view/base.rb:291:in `in_rendering_context'
actionview (7.1.3.4) lib/action_view/rendering.rb:134:in `_render_template'
actionpack (7.1.3.4) lib/action_controller/metal/streaming.rb:256:in `_render_template'
actionview (7.1.3.4) lib/action_view/rendering.rb:121:in `render_to_body'
actionpack (7.1.3.4) lib/action_controller/metal/rendering.rb:158:in `render_to_body'
actionpack (7.1.3.4) lib/action_controller/metal/renderers.rb:141:in `render_to_body'
actionpack (7.1.3.4) lib/abstract_controller/rendering.rb:27:in `render'
actionpack (7.1.3.4) lib/action_controller/metal/rendering.rb:139:in `render'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:29:in `block (2 levels) in render'
/usr/local/lib/ruby/3.3.0/benchmark.rb:313:in `realtime'
activesupport (7.1.3.4) lib/active_support/core_ext/benchmark.rb:14:in `ms'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:29:in `block in render'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:98:in `cleanup_view_runtime'
activerecord (7.1.3.4) lib/active_record/railties/controller_runtime.rb:39:in `cleanup_view_runtime'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:28:in `render'
lib/topic_list_responder.rb:15:in `block (2 levels) in respond_with_list'
actionpack (7.1.3.4) lib/action_controller/metal/mime_responds.rb:214:in `respond_to'
lib/topic_list_responder.rb:8:in `respond_with_list'
app/controllers/list_controller.rb:342:in `block (2 levels) in <class:ListController>'
app/controllers/list_controller.rb:312:in `public_send'
app/controllers/list_controller.rb:312:in `top'
actionpack (7.1.3.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
actionpack (7.1.3.4) lib/abstract_controller/base.rb:224:in `process_action'
actionpack (7.1.3.4) lib/action_controller/metal/rendering.rb:165:in `process_action'
actionpack (7.1.3.4) lib/abstract_controller/callbacks.rb:259:in `block in process_action'
activesupport (7.1.3.4) lib/active_support/callbacks.rb:121:in `block in run_callbacks'
app/controllers/application_controller.rb:424:in `block in with_resolved_locale'
i18n (1.14.5) lib/i18n.rb:351:in `with_locale'
app/controllers/application_controller.rb:424:in `with_resolved_locale'
activesupport (7.1.3.4) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
activesupport (7.1.3.4) lib/active_support/callbacks.rb:141:in `run_callbacks'
actionpack (7.1.3.4) lib/abstract_controller/callbacks.rb:258:in `process_action'
actionpack (7.1.3.4) lib/action_controller/metal/rescue.rb:25:in `process_action'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:74:in `block in process_action'
activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.1.3.4) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:73:in `process_action'
actionpack (7.1.3.4) lib/action_controller/metal/params_wrapper.rb:261:in `process_action'
activerecord (7.1.3.4) lib/active_record/railties/controller_runtime.rb:32:in `process_action'
actionpack (7.1.3.4) lib/abstract_controller/base.rb:160:in `process'
actionview (7.1.3.4) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (3.3.1) lib/mini_profiler/profiling_methods.rb:115:in `block in profile_method' 
actionpack (7.1.3.4) lib/action_controller/metal.rb:227:in `dispatch'
actionpack (7.1.3.4) lib/action_controller/metal.rb:309:in `dispatch'
actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.1.3.4) lib/action_dispatch/routing/mapper.rb:21:in `block in <class:Constraints>'
actionpack (7.1.3.4) lib/action_dispatch/routing/mapper.rb:51:in `serve'
actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:51:in `block in serve'
actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:131:in `block in find_routes'
actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:124:in `each'
actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:124:in `find_routes'
actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:882:in `call'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
rack (2.2.9) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.9) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.9) lib/rack/head.rb:12:in `call'
actionpack (7.1.3.4) lib/action_dispatch/http/permissions_policy.rb:36:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:393:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:14:in `call'
rack (2.2.9) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.9) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/cookies.rb:689:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (7.1.3.4) lib/active_support/callbacks.rb:101:in `run_callbacks'
actionpack (7.1.3.4) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
logster (2.20.0) lib/logster/middleware/reporter.rb:40:in `call'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:35:in `call_app'
lib/freedom_patches/rails_rack_logger_from_rails_7_2.rb:22:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/request_id.rb:28:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
rack (2.2.9) lib/rack/method_override.rb:24:in `call'
actionpack (7.1.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call'
rack (2.2.9) lib/rack/sendfile.rb:110:in `call'
rack-mini-profiler (3.3.1) lib/mini_profiler.rb:334:in `call'
message_bus (4.3.8) lib/message_bus/rack/middleware.rb:60:in `call'
lib/middl

I tried rebuild 3-4 more times but got the same thing.
I’ve tried deleting the calendar plugin and rebuilding it but still get the same thing.

您好 @kokoloman001

您尝试过命令行重建以及以安全模式进入网站吗?

您安装了其他插件吗?

我重建了 3-5 次以上,但结果都一样。
现在我有一个全新安装。当我没有安装我的备份时,它是有效的。
问题可能出在我的备份文件上。但这是 2024 年 6 月 30 日的文件,在我重建之前它运行正常。

我网站上安装的插件

docker_manager
discouse-post-voting
discouse-reactions
discouse-signatures
discouse-staff-alias
discouse-private-replies
discouse-encrypt
discouse-vk-auth
discouse-topic-voting
discouse-follow.git
discouse-formatting-toolbar.git
discouse-bbcode.git
discouse-adplugin
discouse-google-one-tap
discouse-solved
discouse-rss-polling
discouse-private-topics
discouse-code-review
discouse-patreon
discouse-github
discouse-templates
discouse-ai
discouse-calendar

我认为可能是这个。您正在使用哪一个?(包含插件的完整 URL 可以更容易地判断您拥有哪些插件以及哪些是官方的)。编辑:哦,但是有一个官方的,所以您可能正在使用那个。

或者您的测试站点上没有安装它?

我会尝试像这样备份您当前的数据库:

cd /var/discourse
./launcher enter app
discourse backup
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-post-voting.git
          - git clone https://github.com/discourse/discourse-reactions.git
          - git clone https://github.com/discourse/discourse-signatures.git
          - git clone https://github.com/discourse/discourse-staff-alias.git
          - git clone https://github.com/communiteq/discourse-private-replies.git
          - git clone https://github.com/discourse/discourse-encrypt.git
          - git clone https://github.com/discourse/discourse-vk-auth.git
          - git clone https://github.com/discourse/discourse-topic-voting.git
          - git clone https://github.com/discourse/discourse-follow.git
          - git clone https://github.com/MonDiscourse/discourse-formatting-toolbar.git
          - git clone https://github.com/discourse/discourse-bbcode.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/discourse/discourse-google-one-tap.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-rss-polling.git
          - git clone https://github.com/communiteq/discourse-private-topics.git
          - git clone https://github.com/discourse/discourse-code-review.git
          - git clone https://github.com/discourse/discourse-patreon.git
          - git clone https://github.com/discourse/discourse-github.git
          - git clone https://github.com/discourse/discourse-templates.git
          - git clone https://github.com/discourse/discourse-ai.git
          - git clone https://github.com/discourse/discourse-calendar.git

我正在尝试在一台测试服务器上安装它。当没有安装备份文件时,它可以正常工作。当我恢复备份时,它返回了 500 错误。

您能够进入安全模式吗?
您能够访问 /logs 吗?它们显示了什么?

2 个赞