アップグレードを試みましたが、何か間違えたようです

アップグレードツールをGUIから試したところサイトがダウンしてしまったため、CLI経由でアップグレードを試みましたが、フォーラムに何かしてしまったようです。CLI経由でも同じエラーが出ています。

コンテナから提供されたログを見ると、次のようになっています。

コマンドラインから

cd /var/discourse
./launcher rebuild app

を実行しましたか?

それでも解決しない場合は、./discourse-doctor を試しましたか?

はい、アプリの再構築を試しました。現在、adplugin を削除して再構築しており、それが何らかの変化をもたらすかどうかを確認し、セーフモードが機能するかどうかを確認しようとしています。 doctor も試しましたが、何が起こっているのかを明確に示す兆候はなく、多くの情報が提供されるだけでした。完全に再構築されたら、数分後に提供します。

セーフモードが機能せず、提供された discourse-doctor は次のとおりです。

DISCOURSE DOCTOR Sun Nov 20 08:02:54 CET 2022
OS: Linux discourse 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=forum.arcaneodyssey.dev
SMTP_ADDRESS=smtp.mailgun.org
DEVELOPER_EMAILS=REDACTED
SMTP_PASSWORD=REDACTED
SMTP_PORT=587
SMTP_USER_NAME=headless@mg.arcaneodyssey.dev
LETSENCRYPT_ACCOUNT_EMAIL=REDACTED

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 20.10.17, build 100c701

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE                 COMMAND        CREATED         STATUS         PORTS                                                                      NAMES
3de708735f7f   local_discourse/app   \"/sbin/boot\"   2 minutes ago   Up 2 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   app


Discourse container app is running


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-chat-integration.git
          - git clone https://github.com/discourse/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-checklist
          - git clone https://github.com/gdpelican/retort.git
          - git clone https://github.com/discourse/discourse-patreon.git
          - git clone https://github.com/merefield/discourse-topic-previews.git -b "theme_sidecar"
          - git clone https://github.com/discourse/discourse-calendar.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-ratings.git
          - git clone https://github.com/paviliondev/discourse-follow.git
          - git clone https://github.com/discourse/discourse-reactions.git
#          - sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
#          - git clone https://github.com/rimian/discourse-subscriptions.git

WARNING:
非公式のプラグインがあるようです。
問題が発生している場合は、それらを無効にして再構築を試してください。

公式リストについては、https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb を参照してください。

========================================
forum.arcaneodyssey.dev の Discourse バージョン: Discourse 2.9.0.beta12
localhost の Discourse バージョン: Discourse 2.9.0.beta12


==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 16038

              total        used        free      shared  buff/cache   available
Mem:          15662        1363        3960         562       10337       13440
Swap:          2047          30        2017

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        19G   13G  5.1G  72% /

---------- Container Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
overlay          19G   13G  5.1G  72% /
/dev/sdb         49G   35G   12G  75% /shared
/dev/sdb         49G   35G   12G  75% /var/log

==================== DISK INFORMATION ====================
Disk /dev/sda: 19.1 GiB, 20480786432 bytes, 40001536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DA375F37-9B26-488D-A076-9130E80D2481

Device      Start      End  Sectors Size Type
/dev/sda1  129024 40001502 39872479  19G Linux filesystem
/dev/sda14   2048     4095     2048   1M BIOS boot
/dev/sda15   4096   129023   124928  61M EFI System

Partition table entries are not in disk order.


Disk /dev/sdb: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdc: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Mail test skipped.

==================== DONE! ====================
The output of this program may be available at http://forum.arcaneodyssey.dev/N2EwNTllMmE1NTU2OGU5.txt
You should inspect that file carefully before sharing the URL.

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file

上記2つのプラグインを削除してみてください。どちらかが問題を引き起こしている可能性があります。
retortをreactionsに、topic previewsをhttps://github.com/paviliondev/discourse-tc-topic-list-previewshttps://github.com/paviliondev/discourse-topic-previews-sidecarに移動できます。

「いいね!」 2

これを試してみますが、どちらにしてもセーフモードは機能するはずですか?プラグインを使用していないので?

コンテナでエラーが発生している場合、セーフモードは機能しません。

了解しました。提案された変更を加えてコンテナを再構築しています。完了したらアップデートを投稿します。

最近、プレビュープラグインが古いバージョンであるという同様の報告がいくつかあり、新しいリポジトリに更新すると問題が解決するとのことです。

「いいね!」 2

これで修正されたと思います!ありがとうございます。Discourse の新しいバージョンと互換性がなくなったプラグインを、もっと頻繁に確認すべきでした。

大変助かりました!

「いいね!」 1

トピックプレビューはテーマコンポーネントに移行され、当初は実験的なものでした。その実験が終了し、テーマコンポーネント版が成熟すると、補完的なプラグインブランチはマスターブランチにマージされ、新しい目的をより明確にするためにプラグインの名前が変更されました。ブランチの移動により、古いブランチはメンテナンスされなくなりました。GitHubによって名前の変更は自動的にマッピングされるため、ブランチオプションを削除するだけで済みます。これはしばらく前に起こりました。最新のリンクについては、以下を参照してください。Topic List Previews (TLP)

「いいね!」 2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.