안녕하세요. 업그레이드 작업을 통해 포럼을 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