chekzz
(Momchil G.)
4 Marzo 2025, 11:25am
1
Ciao a tutti
Oggi, il nostro team ha iniziato a riscontrare il seguente errore durante l’apertura della pagina ‘Revisione’, il che ci impedisce di revisionare qualsiasi post e commento in arrivo. Abbiamo provato a svuotare la cache, nonché a disconnetterci e riconnetterci, in incognito e su un dispositivo/browser diverso, ma nulla ha funzionato.
Qualcuno ha riscontrato un problema simile di recente che potrebbe aiutarci con una soluzione? Qualsiasi aiuto sarà molto apprezzato
RGJ
(Richard - Communiteq)
4 Marzo 2025, 12:27pm
2
Cosa vedi in /logs? Dovrebbe esserci una voce corrispondente.
chekzz
(Momchil G.)
4 Marzo 2025, 1:10pm
3
Ehi, questo è il più recente:
Message (52 copies reported)
NoMethodError (undefined method `post' for an instance of ReviewableQueuedPost)
app/serializers/reviewable_score_serializer.rb:81:in `watched_word_reason'
app/serializers/reviewable_score_serializer.rb:47:in `reason'
app/serializers/reviewable_score_serializer.rb:59:in `include_reason?'
lib/freedom_patches/ams_include_without_root.rb:54:in `include!'
app/controllers/reviewables_controller.rb:67:in `block in index'
app/controllers/reviewables_controller.rb:62:in `map!'
app/controllers/reviewables_controller.rb:62:in `index'
app/controllers/reviewables_controller.rb:334:in `block (3 levels) in with_deleted_content'
app/controllers/reviewables_controller.rb:334:in `block (2 levels) in with_deleted_content'
app/controllers/reviewables_controller.rb:334:in `block in with_deleted_content'
app/controllers/reviewables_controller.rb:334:in `with_deleted_content'
app/controllers/application_controller.rb:427:in `block in with_resolved_locale'
app/controllers/application_controller.rb:427:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:409:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:26:in `call'
lib/middleware/default_headers.rb:10: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/processing_request.rb:12:in `call'
lib/middleware/request_tracker.rb:385:in `call'
Backtrace
activemodel (7.2.2.1) lib/active_model/attribute_methods.rb:512:in `method_missing'
activerecord (7.2.2.1) lib/active_record/attribute_methods.rb:491:in `method_missing'
app/serializers/reviewable_score_serializer.rb:81:in `watched_word_reason'
app/serializers/reviewable_score_serializer.rb:47:in `reason'
app/serializers/reviewable_score_serializer.rb:59:in `include_reason?'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:375:in `include?'
(eval at active_model_serializers-0.8.4/lib/active_model/serializer.rb:467):6:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:448:in `block in merge_association'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:445:in `each'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:445:in `merge_association'
lib/freedom_patches/ams_include_without_root.rb:54:in `include!'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:368:in `block in include_associations!'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:367:in `each_key'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:367:in `include_associations!'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:362:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:347:in `as_json'
app/controllers/reviewables_controller.rb:67:in `block in index'
app/controllers/reviewables_controller.rb:62:in `map!'
app/controllers/reviewables_controller.rb:62:in `index'
actionpack (7.2.2.1) lib/action_controller/metal/basic_implicit_render.rb:8:in `send_action'
actionpack (7.2.2.1) lib/abstract_controller/base.rb:226:in `process_action'
actionpack (7.2.2.1) lib/action_controller/metal/rendering.rb:193:in `process_action'
actionpack (7.2.2.1) lib/abstract_controller/callbacks.rb:261:in `block in process_action'
activesupport (7.2.2.1) lib/active_support/callbacks.rb:121:in `block in run_callbacks'
app/controllers/reviewables_controller.rb:334:in `block (3 levels) in with_deleted_content'
activerecord (7.2.2.1) lib/active_record/relation.rb:1355:in `_scoping'
activerecord (7.2.2.1) lib/active_record/relation.rb:541:in `scoping'
activerecord (7.2.2.1) lib/active_record/scoping/default.rb:51:in `unscoped'
app/controllers/reviewables_controller.rb:334:in `block (2 levels) in with_deleted_content'
activerecord (7.2.2.1) lib/active_record/relation.rb:1355:in `_scoping'
activerecord (7.2.2.1) lib/active_record/relation.rb:541:in `scoping'
activerecord (7.2.2.1) lib/active_record/scoping/default.rb:51:in `unscoped'
app/controllers/reviewables_controller.rb:334:in `block in with_deleted_content'
activerecord (7.2.2.1) lib/active_record/relation.rb:1355:in `_scoping'
activerecord (7.2.2.1) lib/active_record/relation.rb:541:in `scoping'
activerecord (7.2.2.1) lib/active_record/scoping/default.rb:51:in `unscoped'
app/controllers/reviewables_controller.rb:334:in `with_deleted_content'
activesupport (7.2.2.1) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
app/controllers/application_controller.rb:427:in `block in with_resolved_locale'
i18n (1.14.7) lib/i18n.rb:353:in `with_locale'
app/controllers/application_controller.rb:427:in `with_resolved_locale'
activesupport (7.2.2.1) lib/active_support/callbacks.rb:130:in `block in run_callbacks'
activesupport (7.2.2.1) lib/active_support/callbacks.rb:141:in `run_callbacks'
actionpack (7.2.2.1) lib/abstract_controller/callbacks.rb:260:in `process_action'
actionpack (7.2.2.1) lib/action_controller/metal/rescue.rb:27:in `process_action'
actionpack (7.2.2.1) lib/action_controller/metal/instrumentation.rb:77:in `block in process_action'
activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `block in instrument'
activesupport (7.2.2.1) lib/active_support/notifications/instrumenter.rb:58:in `instrument'
activesupport (7.2.2.1) lib/active_support/notifications.rb:210:in `instrument'
actionpack (7.2.2.1) lib/action_controller/metal/instrumentation.rb:76:in `process_action'
actionpack (7.2.2.1) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (7.2.2.1) lib/active_record/railties/controller_runtime.rb:39:in `process_action'
actionpack (7.2.2.1) lib/abstract_controller/base.rb:163:in `process'
actionview (7.2.2.1) lib/action_view/rendering.rb:40:in `process'
rack-mini-profiler (3.3.1) lib/mini_profiler/profiling_methods.rb:89:in `block in profile_method'
actionpack (7.2.2.1) lib/action_controller/metal.rb:252:in `dispatch'
actionpack (7.2.2.1) lib/action_controller/metal.rb:335:in `dispatch'
actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:67:in `dispatch'
actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:50:in `serve'
actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:53:in `block in serve'
actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:133:in `block in find_routes'
actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `each'
actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:126:in `find_routes'
actionpack (7.2.2.1) lib/action_dispatch/journey/router.rb:34:in `serve'
actionpack (7.2.2.1) lib/action_dispatch/routing/route_set.rb:896:in `call'
lib/middleware/omniauth_bypass_middleware.rb:35:in `call'
rack (2.2.11) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.11) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.11) lib/rack/head.rb:12:in `call'
actionpack (7.2.2.1) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:409:in `call'
lib/middleware/csp_script_nonce_injector.rb:12:in `call'
config/initializers/008-rack-cors.rb:26:in `call'
rack (2.2.11) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.11) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/cookies.rb:704:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:31:in `block in call'
activesupport (7.2.2.1) lib/active_support/callbacks.rb:101:in `run_callbacks'
actionpack (7.2.2.1) lib/action_dispatch/middleware/callbacks.rb:30:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:31:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/show_exceptions.rb:32:in `call'
logster (2.20.1) lib/logster/middleware/reporter.rb:40:in `call'
lib/middleware/default_headers.rb:10:in `call'
lograge (0.14.0) lib/lograge/rails_ext/rack/logger.rb:18:in `call_app'
railties (7.2.2.1) lib/rails/rack/logger.rb:29:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/request_id.rb:33:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
rack (2.2.11) lib/rack/method_override.rb:24:in `call'
rack (2.2.11) lib/rack/sendfile.rb:110:in `call'
plugins/discourse-prometheus/lib/middleware/metrics.rb:14:in `call'
rack-mini-profiler (3.3.1) lib/mini_profiler.rb:191:in `call'
lib/middleware/processing_request.rb:12:in `call'
message_bus (4.3.9) lib/message_bus/rack/middleware.rb:60:in `call'
lib/middleware/request_tracker.rb:385:in `call'
actionpack (7.2.2.1) lib/action_dispatch/middleware/remote_ip.rb:96:in `call'
rails_failover (2.2.0) lib/rails_failover/active_record/middleware.rb:67:in `block in call'
activerecord (7.2.2.1) lib/active_record/connection_handling.rb:376:in `with_role_and_shard'
activerecord (7.2.2.1) lib/active_record/connection_handling.rb:147:in `connected_to'
rails_failover (2.2.0) lib/rails_failover/active_record/middleware.rb:64:in `call'
rails_multisite (6.1.0) lib/rails_multisite/middleware.rb:26:in `call'
railties (7.2.2.1) lib/rails/engine.rb
RGJ
(Richard - Communiteq)
4 Marzo 2025, 1:20pm
4
Ci sono plugin? A quale commit corrisponde il tuo Discourse?
chekzz
(Momchil G.)
4 Marzo 2025, 1:49pm
5
Stiamo eseguendo 16 plugin attualmente, nessuno dei quali è nuovo o è stato modificato di recente. La scheda Revisione ha smesso di funzionare casualmente dopo aver funzionato bene al mattino.
Non sono sicuro se questo sia quello che stai cercando: Discourse 3.5.0.beta2-dev - version 9abeff460ca18d22ec9c5124a4c995af56a1de14
1 Mi Piace
RGJ
(Richard - Communiteq)
4 Marzo 2025, 2:53pm
6
Quindi la tua istanza è stata aggiornata 8 ore fa (cosa che forse avresti potuto menzionare).
Più interessante è che questo commit è
FEATURE: Display the Watched Words that caused a post to be flagged.
e guarda il tuo backtrace
NoMethodError (undefined method `post' for an instance of ReviewableQueuedPost)
app/serializers/reviewable_score_serializer.rb:81:in `watched_word_reason'
Dato il fatto che il tuo errore si sta verificando in una riga che è stata aggiunta proprio da questo commit, sto spostando questo in Bug
@pento
4 Mi Piace
dax
(Daniela)
4 Marzo 2025, 5:04pm
8
Grazie per la segnalazione @chekzz . Ho confermato il bug e lo risolveremo il prima possibile.
Non correlato a questo bug, c’è un banner sul tuo sito che segnala un’incompatibilità con il tuo tema personalizzato. Ti consigliamo di apportare le modifiche necessarie seguendo questo argomento: Upcoming topic-list changes - how to prepare themes and plugins
3 Mi Piace
pento
(Gary)
5 Marzo 2025, 3:50am
9
Grazie per la segnalazione del bug, @chekzz , e per la tua pazienza mentre risolvevamo questo problema.
Ho appena distribuito una correzione al tuo sito, sembra che ora funzioni tutto. Fateci sapere se riscontrate altri problemi!
2 Mi Piace
chekzz
(Momchil G.)
5 Marzo 2025, 6:33am
10
Grazie a tutti, @pento @dax @pento , per essere stati così disponibili e aver risolto tutto così rapidamente.
Ho controllato le cose e tutto funziona correttamente dal mio lato. Vedrò come vanno le cose per gli altri membri del nostro team e aggiornerò il mio commento se ci sono altre cose. Buon resto di settimana!
1 Mi Piace
pento
(Gary)
Chiuso
7 Marzo 2025, 9:00pm
11
Questo argomento è stato chiuso automaticamente dopo 2 giorni. Non sono più consentite nuove risposte.