# 오래된 태그 플러그인으로 인해 재구축 오류 발생

**URL:** https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135
**Category:** Self-hosting
**Created:** [5월 21, 2021, 12:57오전 UTC](https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135 "2021-05-21T00:57:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Martin\_Anonym](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin_anonym/32/137238_2.png) [@Martin\_Anonym](https://meta.discourse.org/u/Martin_Anonym)
#### Post date: [5월 21, 2021, 12:57오전 UTC](https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135/1 "2021-05-21T00:57:43Z")

</div>

안녕하세요, 지금 다른 사용자들도 리빌드 실패가 일어나는지 여쭤보고 싶었습니다.

다음과 같은 오류가 발생합니다:  
(전체 오류 로그: [Discourse Error - Pastebin.com](https://pastebin.com/sZfx4gvZ))

```plaintext
I, [2021-05-21T01:17:33.651053 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake plugin:pull_compatible_all'
I, [2021-05-21T01:17:36.304377 #1] INFO -- : discourse-solved is already at latest compatible version
discourse-checklist is already at latest compatible version
discourse-voting is already at latest compatible version
discourse-canned-replies is already at latest compatible version
discourse-tagging is already at latest compatible version
docker_manager is already at latest compatible version
retort is already at latest compatible version
discourse-staff-notes is already at latest compatible version

I, [2021-05-21T00:49:56.625424 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
NoMethodError: undefined method `client_setting' for #<Class:0x00005646c55170b8>
Did you mean? client_settings
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/var/www/discourse/plugins/discourse-tagging/plugin.rb:13:in `block in activate!'
/var/www/discourse/lib/plugin/instance.rb:430:in `block in notify_after_initialize'
/var/www/discourse/lib/plugin/instance.rb:428:in `each'
/var/www/discourse/lib/plugin/instance.rb:428:in `notify_after_initialize'
/var/www/discourse/config/application.rb:350:in `each'
/var/www/discourse/config/application.rb:350:in `block (2 levels) in <class:Application>'
/var/www/discourse/lib/plugin_initialization_guard.rb:5:in `plugin_initialization_guard'
/var/www/discourse/config/application.rb:349:in `block in <class:Application>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:51:in `each'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/application.rb:384:in `initialize!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/railtie.rb:207:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/railtie.rb:207:in `method_missing'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/application.rb:360:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.1.3.2/lib/rails/application.rb:526:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
I, [2021-05-21T00:50:07.253788 #1] INFO -- :
I, [2021-05-21T00:50:07.254105 #1] INFO -- : Terminating async processes
I, [2021-05-21T00:50:07.254128 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 54
I, [2021-05-21T00:50:07.254170 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 171
2021-05-21 00:50:07.254 UTC [54] LOG: received fast shutdown request
2021-05-21 00:50:07.256 UTC [54] LOG: aborting any active transactions
171:signal-handler (1621558207) Received SIGTERM scheduling shutdown...
2021-05-21 00:50:07.265 UTC [54] LOG: background worker "logical replication launcher" (PID 63) exited with exit code 1
2021-05-21 00:50:07.267 UTC [58] LOG: shutting down
171:M 21 May 2021 00:50:07.325 # User requested shutdown...
171:M 21 May 2021 00:50:07.325 * Saving the final RDB snapshot before exiting.
171:M 21 May 2021 00:50:07.348 * DB saved on disk
171:M 21 May 2021 00:50:07.348 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 819 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
2021-05-21 00:50:07.559 UTC [54] LOG: database system is shut down
ff769b60a9ad4c18fcae80af6f5ac4ecf82c60c5ddf3b24578fdd338f6b2605b
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
root@main:/var/discourse#

```

여기서 특히 주목하고 싶은 부분은 다음과 같습니다:

```bash
NoMethodError: undefined method `client_setting' for #<Class:0x00005646c55170b8>
Did you mean? client_settings

```

이 오류는 이전에 본 적이 없으며, 여기에서 설명된 절차대로 수행해도

> [@Docker 업데이트 후 PuTTY 실행](https://meta.discourse.org/t/docker-update-then-putty/188629/6):
>
> Yes like stated here: But I already managed to solve the problem. I stopped the container and run the commands again after a reboot. Notice that I had to turn off autostart for this container. Dunno why but then it worked.

이번에는 도움이 되지 않았습니다.

이 오류의 원인이 될 수 있는 것에 대한 추측이 있을까요? 이것은 오타(TYPO) 때문일까요?  
**`client_setting`** ≠ **`client_settings`**

### 수정:

네, 설치는 권장대로 수행되었습니다 🙂

### 수정 2:

설치된 플러그인

```bash
https://github.com/discourse/docker_manager.git
https://github.com/discourse/discourse-solved.git
https://github.com/discourse/discourse-tagging.git
https://github.com/discourse/discourse-voting.git
https://github.com/discourse/discourse-checklist.git
https://github.com/discourse/discourse-canned-replies.git
https://github.com/gdpelican/retort.git
https://github.com/discourse/discourse-staff-notes.git

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [5월 21, 2021, 2:54오전 UTC](https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135/2 "2021-05-21T02:54:04Z")

</div>

2016년에 코어에 통합되었으므로 Discourse 태그 플러그인을 제거해 주세요.

그런데 해당 플러그인이 어떻게 app.yml 파일에 들어갔나요?

---

<div class="post-metadata">

### Author: ![Martin\_Anonym](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin_anonym/32/137238_2.png) [@Martin\_Anonym](https://meta.discourse.org/u/Martin_Anonym)
#### Post date: [5월 21, 2021, 3:42오전 UTC](https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135/3 "2021-05-21T03:42:13Z")

</div>

> [@Falco](#):
>
> 2016년에 코어에 통합되었으므로 Discourse 태깅 플러그인을 제거해 주세요.

힌트 주셔서 감사합니다! 수정해서 다시 시도해 보겠습니다.

> [@Falco](#):
>
> 그에 대해, 그 플러그인이 어떻게 app.yml 파일에 들어갔나요?

원래 설치 시기는 2013년이나 2014년쯤이었던 것 같습니다. 이 프로젝트는 그 기간 동안 유지 관리되어 온 FOSS 프로젝트이며, 2019년부터 제가 이 프로젝트를 관리하면서 정기적인 업데이트 등을 해오고 있습니다. 그래서 당시 플러그인이 구현되었고 이후로 제거되지 않은 것 같습니다 😅

그렇게 하니 해결되었습니다! 오늘 제 영웅이십니다 ✌

#### 수정:

어떤 이유로든 해결책으로 표시할 수 없어 죄송합니다

---

<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: [6월 20, 2021, 3:42오전 UTC](https://meta.discourse.org/t/error-rebuilding-due-to-old-tagging-plugin/191135/4 "2021-06-20T03:42:28Z")

</div>

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