你好。我已将论坛从 v2.3.0.beta5 手动 升级 到最新版本,但现在访问网站时会出现 “400 Bad Request” 错误。
如果我重新构建应用,容器一旦停止,服务器就会返回"502 Bad Gateway"错误。但在完成重新构建并启动容器后,400 错误又会再次出现。
我有一段时间没有负责该论坛,因此升级工作延迟了很久。该论坛仅安装了官方插件。我已禁用了一些插件并重新构建了应用,但问题仍未解决。您是否对问题原因及修复方法有任何建议?提前感谢。
编辑:我收到的一些警告信息:
I, [2021-01-06T16:46:07.011565 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-01-06T16:46:10.379601 #1] INFO -- :
I, [2021-01-06T16:46:10.380578 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `
bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bun
dle config set --local without 'test development'`, and stop using this flag
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0