# Discourseの新しいバージョンにアップグレードするとエラーが発生します

**URL:** https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156
**Category:** Self-hosting
**Created:** [2023 年 9 月 15 日午後 2:15 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156 "2023-09-15T14:15:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [2023 年 9 月 15 日午後 2:15 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/1 "2023-09-15T14:15:02Z")

</div>

最新バージョンにアップグレードした際にこのエラーが発生しました。  
お手伝いいただけますでしょうか？

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 888 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
**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.
88bbed682282caba3443f559b68a7c49ac4995115633c09ffe4299aceea844ac

```

---

<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: [2023 年 9 月 15 日午後 2:16 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/2 "2023-09-15T14:16:30Z")

</div>

そのメッセージを上にスクロールして、エラーがないか確認してもらえますか？（または、コードブロックに貼り付けて、確認できるようにしてください）

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [2023 年 9 月 15 日午後 2:18 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/3 "2023-09-15T14:18:38Z")

</div>

これは前のものです。

```plaintext
1 gem installed
gem install safe_ruby -v 1.0.4 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed safe_ruby-1.0.4
1 gem installed
Compiled js-processor: tmp/js-processor.js
== 20230820010101 EnableEmbeddingExtension: migrating =========================
-- enable_extension(:embedding)

I, [2023-09-15T14:11:46.731576 #1] INFO -- : Terminating async processes
I, [2023-09-15T14:11:46.731720 #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: 42
I, [2023-09-15T14:11:46.731821 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
2023-09-15 14:11:46.731 UTC [42] LOG: received fast shutdown request
111:signal-handler (1694787106) Received SIGTERM scheduling shutdown...
2023-09-15 14:11:46.739 UTC [42] LOG: aborting any active transactions
2023-09-15 14:11:46.746 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-09-15 14:11:46.747 UTC [46] LOG: shutting down
111:M 15 Sep 2023 14:11:46.766 # User requested shutdown...
111:M 15 Sep 2023 14:11:46.766 * Saving the final RDB snapshot before exiting.
2023-09-15 14:11:46.828 UTC [42] LOG: database system is shut down
111:M 15 Sep 2023 14:11:46.910 * DB saved on disk
111:M 15 Sep 2023 14:11:46.910 # Redis is now ready to exit, bye bye...

```

---

<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: [2023 年 9 月 15 日午後 2:32 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/4 "2023-09-15T14:32:50Z")

</div>

OPをここで注意深く読んでください。

> [@Discourse Chatbot robot](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652?u=merefield):
>
> information_sourceSummary The Original AI Chatbot for Discoursehammer_and_wrenchRepository Link [GitHub - merefield/discourse-chatbot: An AI bot with RAG capability for Topics and Chat in Discourse, currently powered by OpenAI](https://github.com/merefield/discourse-chatbot)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)heartSponsorship Please consider becoming an ongoing [sponsor of my open source work](https://github.com/sponsors/merefield) at a level that suits your or your organisation’s resources and needs to ensure this plugin gets the …

Chatbotを使用するための新しい要件があります。

まずアンインストール手順に従わない限り、削除しないでください。

将来のバージョンでこれを簡略化するかもしれませんが、今のところはこれらの手順に従う必要があります。

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [2023 年 9 月 15 日午後 3:59 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/5 "2023-09-15T15:59:29Z")

</div>

うまくいきました。しかし、とても複雑に思えます。  
もっと簡単にしてもらえませんか？

ボットのトピック読み取り制限に関する表はありますか？（ディスコースコンテンツのインデックス作成がよりスマートになったときに心配になります）

---

<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: [2023 年 9 月 15 日午後 4:32 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/6 "2023-09-15T16:32:09Z")

</div>

[ボットの「ビジョン」は、同じ記事で取り上げられています。](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652#biohazard-bots-vision-what-it-can-see-potentially-share-and-privacy-biohazard-2)

---

<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: [2023 年 10 月 15 日午後 4:32 UTC](https://meta.discourse.org/t/i-have-error-when-upgrade-new-version-of-discourse/279156/7 "2023-10-15T16:32:31Z")

</div>

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