# 업그레이드를 시도했는데 뭔가 잘못한 것 같습니다

**URL:** https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173
**Category:** Self-hosting
**Created:** [11월 20, 2022, 6:48오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173 "2022-11-20T06:48:22Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 6:48오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/1 "2022-11-20T06:48:23Z")

</div>

무엇을 잘못했는지 확실하지 않지만, CLI를 통해 업그레이드를 시도하다가 포럼에 뭔가 문제를 일으킨 것 같습니다. 처음에는 GUI에서 제공되는 업그레이드 도구를 통해 업그레이드를 시도했지만 사이트가 다운되어, CLI를 통해 진행했고 같은 오류가 발생합니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/6/9/769e4e62c5b1dffd9d6edc257b5e62296f73021f.png)

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 6:50오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/2 "2022-11-20T06:50:31Z")

</div>

컨테이너에서 제공한 로그를 확인해 보니 다음과 같은 내용을 확인할 수 있습니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/f/a/7faf73ed2bbdd8ca1dd59d5d949a702516e11db7.png)

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [11월 20, 2022, 6:54오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/3 "2022-11-20T06:54:50Z")

</div>

명령줄에서 다음을 실행해 보셨나요?

```plaintext
cd /var/discourse
./launcher rebuild app

```

그것이 도움이 되지 않는다면 `./discourse-doctor`를 시도해 보셨나요?

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 6:58오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/4 "2022-11-20T06:58:45Z")

</div>

네, 앱을 다시 빌드해 보았어요. 지금은 adplugin을 제거하고 다시 빌드 중인데, 이게 문제를 해결할지 확인해 보고 safe-mode가 작동하는지 테스트해 볼 생각입니다. doctor도 실행해 보았지만, 많은 정보를 제공하기는 해도 정확히 어떤 문제가 일어나고 있는지 명확한 단서를 주지 않더라고요. 완전히 다시 빌드되는 대로 몇 분 안에 그 정보를 공유해 드릴게요.

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 7:04오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/5 "2022-11-20T07:04:25Z")

</div>

safe-mode이 작동하지 않으며, 제공된 discourse-doctor 출력은 다음과 같습니다:

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [11월 20, 2022, 7:08오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/6 "2022-11-20T07:08:58Z")

</div>

> [@Headless](#):
>
> ` - git clone https://github.com/gdpelican/retort.git`

> [@Headless](#):
>
> `- git clone https://github.com/merefield/discourse-topic-previews.git -b "theme_sidecar"`

위 두 플러그인을 제거해 보시기 바랍니다. 이 두 개 중 하나가 문제를 일으키고 있을 수 있다고 생각합니다.

retort 대신 reactions로, topic previews 대신 `https://github.com/paviliondev/discourse-tc-topic-list-previews`와 `https://github.com/paviliondev/discourse-topic-previews-sidecar`로 전환할 수 있습니다.

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 7:10오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/7 "2022-11-20T07:10:10Z")

</div>

일단 시도해 보겠습니다. 하지만 어쨌든 안전 모드(safe-mode)는 여전히 작동할까요? 플러그인을 사용하지 않으니까요?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [11월 20, 2022, 7:12오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/8 "2022-11-20T07:12:00Z")

</div>

컨테이너가 오류를 발생시키고 있다면 안전 모드는 작동하지 않습니다.

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 7:13오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/9 "2022-11-20T07:13:20Z")

</div>

알겠습니다. 제안된 변경 사항으로 컨테이너를 다시 빌드 중이며, 완료되면 업데이트를 올리겠습니다.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [11월 20, 2022, 7:29오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/10 "2022-11-20T07:29:36Z")

</div>

최근에 프리뷰 플러그인이 오래된 버전이라는 유사한 보고가 몇 건 있었습니다. 해당 플러그인을 새 저장소로 업데이트하면 문제가 해결됩니다:

> [@죄송합니다. 이 토론 포럼을 구동하는 소프트웨어에서 예상치 못한 문제가 발생했습니다](https://meta.discourse.org/t/oops-the-software-powering-this-discussion-forum-encountered-an-unexpected-problem/245593/13?u=jammydodger):
>
> Could be this thing! I have this in my app.yml git clone https://github.com/merefield/discourse-topic-previews.git -b "theme\_sidecar" This is obviously an old repo with a special branch! Will try with the latest one: git clone https://github.com/paviliondev/discourse-topic-previews-sidecar EDIT: It works!!! champagne Thanks a great deal to @raghukamath

---

<div class="post-metadata">

### Author: ![Headless](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/headless/32/183495_2.png) [@Headless](https://meta.discourse.org/u/Headless)
#### Post date: [11월 20, 2022, 7:40오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/11 "2022-11-20T07:40:32Z")

</div>

이 방법으로 고쳐졌어요! 감사합니다. 더 이상 Discourse의 최신 버전과 호환되지 않는 플러그인들을 더 자주 확인해야 할 것 같습니다.

도와주셔서 정말 감사합니다!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [11월 20, 2022, 8:57오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/13 "2022-11-20T08:57:58Z")

</div>

토픽 미리보기(Topic Previews)를 테마 컴포넌트로 전환하는 기능은 처음에는 실험적인 것이었습니다. 해당 실험이 종료되고 테마 컴포넌트 버전이 성숙해지면서, 관련 플러그인 브랜치가 마스터 브랜치에 병합되었고 플러그인 이름도 새로운 목적을 더 명확히 알 수 있도록 변경되었습니다. 브랜치 이동으로 인해 기존 브랜치는 더 이상 유지 관리되지 않습니다. GitHub에서 이름 변경이 자동으로 매핑되므로, 브랜치 옵션을 제거하기만 하면 됩니다. 이 일은 이미 quite some time 전에 이루어졌습니다. 최신 링크는 다음을 참고하세요: [Topic List Previews (TLP)](https://meta.discourse.org/t/topic-list-previews-theme-component/209973?u=merefield) (아, 링크를 이미 올려주셨네요. 감사합니다 @itsbhanusharma)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12월 20, 2022, 8:58오전 UTC](https://meta.discourse.org/t/attempted-to-upgrade-and-i-think-i-messed-something-up/246173/14 "2022-12-20T08:58:38Z")

</div>

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