尝试升级,我认为我弄坏了什么东西

我不确定我做了什么,但我最终通过命令行尝试升级,并对论坛做了一些操作。我首先尝试通过 GUI 中提供的升级工具进行升级,但网站宕机了,所以我通过命令行进行操作,但遇到了同样的错误。

查看容器提供的日志,我看到以下内容:

你是否从命令行执行了

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:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at forum.arcaneodyssey.dev: Discourse 2.9.0.beta12
Discourse version at localhost: 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

尝试移除上面两个插件,我认为其中一个可能是导致问题的插件。
你可以将 retort 替换为 reactions,将 topic previews 替换为 https://github.com/paviliondev/discourse-tc-topic-list-previewshttps://github.com/paviliondev/discourse-topic-previews-sidecar

2 个赞

我将继续尝试,但无论如何安全模式是否仍然有效?因为它不使用插件?

如果您的容器出现错误,安全模式将无法工作。

明白了,现在用建议的更改重新构建容器,完成后会发布更新

最近有几份类似的报告称 previews 插件是旧版本,将其更新到新存储库可以解决问题:

2 个赞

我相信这解决了问题!谢谢,我应该更经常地检查不再与 Discourse 新版本兼容的插件。

我非常感谢您的帮助!

1 个赞

Topic Previews 主题组件最初是实验性的。当实验结束,主题组件版本成熟后,配套的插件分支被合并到主分支,插件也更名为以使其新功能更明显。分支迁移意味着旧分支不再维护。您需要做的就是删除分支选项,因为 GitHub 会自动映射名称更改。这发生在一段时间以前。请参阅:Topic List Previews (TLP) 获取最新链接。(哦,我看到您已经发布了,谢谢 @itsbhanusharma

2 个赞

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