ベータ版のアップグレードに失敗しました: 3.1.0.beta8+248

私は比較的最近Discourseの管理者になりましたが、経験豊富なパッケージ/システム管理者/開発者です。これはベータ版であることは理解しており、単に問題を報告しているだけで、後続のビルドで修正されると予想しています。問題は、これが実際に利用可能であることです。

Discourse自体を2回アップグレードしようとしましたが、同じ場所で同じエラーが発生しました。Docker Managerは直前に正常にアップグレードされました。ここで注目すべき奇妙な点は、Docker Managerは最新の状態(画像参照)として表示されており、フォーラムをアップグレードしているのに、ログの下部(以下参照)に次のように表示されていることです。
Docker Manager: FAILED TO UPGRADE
お役に立てれば幸いです。

関連ログ:

[4/5] 依存関係のリンク中…
warning 「@glint/environment-ember-loose@1.1.0」には、ピア依存関係「@glimmer/component@^1.1.2」がありません。
warning 「@glint/environment-ember-template-imports@1.1.0」には、ピア依存関係「ember-template-imports@^3.0.0」がありません。
warning 「@mixer/parallel-prettier@2.0.3」には、ピア依存関係「prettier@^2.0.0」がありません。
[5/5] 新しいパッケージのビルド中…
$ yarn --cwd app/assets/javascripts $(node -e 'const argv = JSON.parse(process.env.npm_config_argv).original; const passthrough = [`--frozen-lockfile`, `-s`].filter(arg => argv.includes(arg)); console.log(passthrough.join(` `));')
yarn install v1.22.19
[1/4] パッケージの解決中…
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
[2/4] パッケージの取得中…
[3/4] 依存関係のリンク中…
warning "workspace-aggregator-dfb76705-117c-466a-beb5-2bb956000210 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dfb76705-117c-466a-beb5-2bb956000210 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dfb76705-117c-466a-beb5-2bb956000210 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-dfb76705-117c-466a-beb5-2bb956000210 > discourse-plugins > ember-this-fallback@0.3.1" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-dfb76705-117c-466a-beb5-2bb956000210 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
[4/4] 新しいパッケージのビルド中…
error /var/www/discourse/app/assets/javascripts/node_modules/discourse: Command failed.
Exit code: 1
Command: yarn --silent --cwd .. patch-package
Arguments:
Directory: /var/www/discourse/app/assets/javascripts/node_modules/discourse
Output:
patch-package 8.0.0
Applying patches...
@ember/jquery@2.0.0 ✔
@ember/legacy-built-in-components@0.4.2 ✔
babel-plugin-debug-macros@0.3.4 ✔
ember-source@3.28.12 ✔
ember-this-fallback@0.3.1 (1 initial) ✔

⛔ ERROR

Failed to apply patch file ember-this-fallback+0.3.1+002+themes.patch.

If this patch file is no longer useful, delete it and run

  patch-package

To partially apply the patch (if possible) and output a log of errors to fix, run

  patch-package --partial

After which you should make any required changes inside node_modules/ember-this-fallback, and finally run

  patch-package ember-this-fallback

to update the patch file.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
「いいね!」 2

フォローアップ:管理ページをリロードしただけで、環境が正常にアップグレードされたことが表示されました…何かが間違っています。 :slight_smile:
繰り返しになりますが、これはベータ版+開発版であることは理解しています。このプロセスに協力しようとしています。

Tonyさん、レポートありがとうございます。状況を正常に戻すには、CLIで再構築するのが最善です。標準的なインストールでは、以下のようになります。

cd /var/discourse
./launcher rebuild app
「いいね!」 2

夜間、Discourse が応答しなくなりました。読み込みアニメーションは表示されましたが、コンテンツは表示されませんでした。最近のパッケージの Ubuntu のフルアップデートを実行し、その後 CLI の再構築を実行しました。アプリは正常に動作しているようで、現在の問題は解決したようです。

ありがとうございます!

「いいね!」 1

これで問題が解決したとのこと、良かったです。当初の問題については、根本原因はまだ特定できていませんが、workaround を実装し、patch-package が時折失敗してもアップデートプロセスが完全に停止しないようにしました。

「いいね!」 2