Error 500 al reconstruir hoy

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.

Hola @kokoloman001,

¿Has intentado hacer una reconstrucción desde la línea de comandos, así como entrar al sitio en modo seguro?

¿Tienes algún otro plugin instalado?

He reconstruido más de 3-5 veces pero obtengo el mismo resultado.
Ahora tengo una instalación limpia. Funciona cuando no instalo mi copia de seguridad.
El problema probablemente proviene de mi archivo de copia de seguridad. Pero es el archivo con fecha 30/06/2024 y funcionaba bien antes de que lo reconstruyera.

Plugins instalados en mi sitio

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

Creo que podría ser este. ¿Cuál estás usando? (Incluir la URL completa de tus plugins facilita saber qué tienes y cuáles son oficiales). Edición: Oh, pero hay uno oficial de esos, así que probablemente estés usando ese.

¿O no tienes ese instalado en tu sitio de prueba?

Intentaría hacer una copia de seguridad de tu base de datos actual así:

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

Estoy intentando instalarlo en un servidor de prueba. Funciona cuando no hay archivos de copia de seguridad instalados. Cuando restauré la copia de seguridad, devolvió un error 500.

¿Puedes acceder al modo seguro?
¿Puedes acceder a /logs? ¿Qué dicen?

2 Me gusta