# 안정판 v2.3.6 업그레이드 시 플러그인 관련 오류 발생

**URL:** https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008
**Category:** Support
**Created:** [11월 9, 2019, 7:26오후 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008 "2019-11-09T19:26:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [11월 9, 2019, 7:26오후 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/1 "2019-11-09T19:26:30Z")

</div>

안녕하세요,

## 상황

오늘 3일 전의 안정판인 v2.3.6으로 업그레이드했습니다. 관리자 인터페이스를 사용하여 도커 업그레이드를 성공적으로 수행한 후, 업그레이드가 무한정 계속되는 상태가 되었습니다. 관리자 페이지를 다시 확인해 보니 v2.3.5로 표시되지만, 업그레이드 목록에서는 "아직 업그레이드 중"이라고 표시되었습니다. 페이지를 새로고침한 후에는 모든 항목이 "최신 상태"로 표시되었지만, 관리자 페이지에는 여전히 v2.3.5가 표시되었습니다.

## 우회 방법?

이 시점에서 `./launcher rebuild standalone`을 실행하기로 결정했는데, 부트스트랩이 마이그레이션 오류로 실패했습니다:

**`ArgumentError: Unknown migration version "6.0"; expected one of "4.2", "5.0", "5.1", "5.2"`**

`./launcher start standalone`으로 컨테이너를 다시 시작할 수 있었고, 모든 것이 정상이며 v2.3.6으로 최신 상태라고 표시되었습니다.

이 문제는 Rails 6로의 업그레이드와 관련이 있을 것으로 추정됩니다.

**v2.3.5에서 v2.3.6으로 업그레이드하면서 비슷한 문제를 경험하신 분이 계신가요?**

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [11월 9, 2019, 10:57오후 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/2 "2019-11-09T22:57:28Z")

</div>

플러그인일까요? 코어 스테이블 브랜치에서 `ActiveRecord::Migration[6.0]`로 작성된 마이그레이션을 찾지 못했습니다.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [11월 10, 2019, 9:48오전 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/3 "2019-11-10T09:48:35Z")

</div>

좋은 지적이네요, @gerhard! 문제의 원인을 찾았습니다: `discourse-policy`에 6.0 마이그레이션이 6개 있습니다.

그래서 스테이블 브랜치는 여전히 Rails 5.2를 유지하고 있다는 걸 이해했습니다…

```shell
root@talk:/var/www/discourse/plugins# grep -r 'ActiveRecord::Migration\[6.0\]' .
./discourse-policy/db/migrate/20191013212445_migrate_policy_users_table.rb:class MigratePolicyUsersTable < ActiveRecord::Migration[6.0]
./discourse-policy/db/post_migrate/20191014224419_migrate_custom_field_to_policy_users.rb:class MigrateCustomFieldToPolicyUsers < ActiveRecord::Migration[6.0]

```

지금 이 마이그레이션들을 실행하기 위해 제가 해야 할 작업이 있나요, 아니면 어떻게든 이미 반영된 건가요?  
2.3.7 버전에서 이 문제가 해결될 것 같습니다…

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [11월 11, 2019, 10:44오전 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/4 "2019-11-11T10:44:49Z")

</div>

[https://github.com/discourse/discourse-policy/commit/94635bf21761eefa4bbe0f33e18e9b9af6a9dcd4에서](https://github.com/discourse/discourse-policy/commit/94635bf21761eefa4bbe0f33e18e9b9af6a9dcd4%EC%97%90%EC%84%9C) 마이그레이션을 수정했습니다. 최근 몇 개의 커밋에 stable 브랜치에서 오류를 일으키는 다른 문제가 없기를 바랍니다.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [11월 11, 2019, 11:18오전 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/5 "2019-11-11T11:18:22Z")

</div>

감사합니다, @gerhard. `./launcher rebuild`을 다시 실행해야 하나요?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [11월 11, 2019, 11:20오전 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/6 "2019-11-11T11:20:10Z")

</div>

네, 재구성을 시도해 보세요.

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [11월 11, 2019, 1:03오후 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/7 "2019-11-11T13:03:02Z")

</div>

재구성이 잘 작동합니다! @gerhard 님, 다시 한번 감사합니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 11, 2019, 6:17오후 UTC](https://meta.discourse.org/t/stable-release-v2-3-6-upgrade-bumpiness-due-to-plugin/133008/8 "2019-11-11T18:17:08Z")

</div>


