무엇을 잘못했는지 확실하지 않지만, CLI를 통해 업그레이드를 시도하다가 포럼에 뭔가 문제를 일으킨 것 같습니다. 처음에는 GUI에서 제공되는 업그레이드 도구를 통해 업그레이드를 시도했지만 사이트가 다운되어, CLI를 통해 진행했고 같은 오류가 발생합니다.
명령줄에서 다음을 실행해 보셨나요?
cd /var/discourse
./launcher rebuild app
그것이 도움이 되지 않는다면 ./discourse-doctor를 시도해 보셨나요?
네, 앱을 다시 빌드해 보았어요. 지금은 adplugin을 제거하고 다시 빌드 중인데, 이게 문제를 해결할지 확인해 보고 safe-mode가 작동하는지 테스트해 볼 생각입니다. doctor도 실행해 보았지만, 많은 정보를 제공하기는 해도 정확히 어떤 문제가 일어나고 있는지 명확한 단서를 주지 않더라고요. 완전히 다시 빌드되는 대로 몇 분 안에 그 정보를 공유해 드릴게요.
safe-mode이 작동하지 않으며, 제공된 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/angusmcleod/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-previews와 https://github.com/paviliondev/discourse-topic-previews-sidecar로 전환할 수 있습니다.
일단 시도해 보겠습니다. 하지만 어쨌든 안전 모드(safe-mode)는 여전히 작동할까요? 플러그인을 사용하지 않으니까요?
컨테이너가 오류를 발생시키고 있다면 안전 모드는 작동하지 않습니다.
알겠습니다. 제안된 변경 사항으로 컨테이너를 다시 빌드 중이며, 완료되면 업데이트를 올리겠습니다.
최근에 프리뷰 플러그인이 오래된 버전이라는 유사한 보고가 몇 건 있었습니다. 해당 플러그인을 새 저장소로 업데이트하면 문제가 해결됩니다:
이 방법으로 고쳐졌어요! 감사합니다. 더 이상 Discourse의 최신 버전과 호환되지 않는 플러그인들을 더 자주 확인해야 할 것 같습니다.
도와주셔서 정말 감사합니다!
토픽 미리보기(Topic Previews)를 테마 컴포넌트로 전환하는 기능은 처음에는 실험적인 것이었습니다. 해당 실험이 종료되고 테마 컴포넌트 버전이 성숙해지면서, 관련 플러그인 브랜치가 마스터 브랜치에 병합되었고 플러그인 이름도 새로운 목적을 더 명확히 알 수 있도록 변경되었습니다. 브랜치 이동으로 인해 기존 브랜치는 더 이상 유지 관리되지 않습니다. GitHub에서 이름 변경이 자동으로 매핑되므로, 브랜치 옵션을 제거하기만 하면 됩니다. 이 일은 이미 quite some time 전에 이루어졌습니다. 최신 링크는 다음을 참고하세요: Topic List Previews (TLP) (아, 링크를 이미 올려주셨네요. 감사합니다 @itsbhanusharma)

