您好,
我正在测试 Discourse 从 3.0.3 版本升级到 3.0.4 版本。升级后 Discourse 运行正常,但在登录系统后,大多数页面/请求都会出现 500 错误。
在日志文件中我看到了两个不同的错误:
Job exception: PG::SyntaxError: ERROR: zero-length delimited identifier at or near "" "" LINE 1: ...1003061, "success" = TRUE WHERE "scheduler_stats"." " IS NULL
rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params' rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params' activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache' activesupport-
和
NoMethodError (undefined method `keys' for nil:NilClass) (eval):76:in `_fast_attributes' app/controllers/application_controller.rb:650:in `preload_current_user_data' app/controllers/application_contro
plugins/chat/lib/chat/channel_fetcher.rb:164:in `preload_custom_fields_for'
plugins/chat/lib/chat/channel_fetcher.rb:159:in `secured_public_channels'
plugins/chat/lib/chat/channel_fetcher.rb:9:in `structured'
plugins/chat/plugin.rb:239:in `block (2 levels) in activate!'
(eval):76:in `_fast_attributes'
当我将系统降级回 3.0.3 版本时,一切都能正常工作。
我们没有使用很多插件,但我尝试过禁用所有插件进行一次升级。结果相同。
提前感谢您的帮助。