# I have this error when upgrading discourse

**URL:** https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854
**Category:** Self-hosting
**Created:** [December 7, 2023, 12:54pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854 "2023-12-07T12:54:45Z")
**Posts on this page:** 11
**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: [December 7, 2023, 12:54pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/1 "2023-12-07T12:54:45Z")

</div>

I have this error when upgrading discourse. Now web is down.

```plaintext
== 20231026010114 CreatePgVectorChatbotPostEmbeddingsIndex: migrating =========
-- execute(" CREATE INDEX pgv_hnsw_index_on_chatbot_post_embeddings ON chatbot_post_embeddings USING hnsw (embedding vector_l2_ops)\n WITH (m = 32, ef_construction = 64);\n")
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:209:in `run'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:108:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.7/lib/rails/commands/runner/runner_command.rb:43:in `load'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.7/lib/rails/commands/runner/runner_command.rb:43:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.7/lib/rails/command/base.rb:87:in `perform'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.7/lib/rails/command.rb:48:in `invoke'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/railties-7.0.7/lib/rails/commands.rb:18:in `<main>'
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
bin/rails:18:in `<main>'
Spinning up 1 Unicorn worker(s) that were stopped initially

```

---

<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: [December 7, 2023, 12:57pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/2 "2023-12-07T12:57:49Z")

</div>

I think it’s fairly obvious which plugin that relates to? 😉

Have you read the recent posts/OP of the plugin Topic?

There was action you needed to take and if you haven’t taken it, it won’t build.

---

<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: [December 7, 2023, 12:59pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/3 "2023-12-07T12:59:15Z")

</div>

No. I just upgrade forum as usual.  
Do you have link of this issue?

---

<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: [December 7, 2023, 1:00pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/4 "2023-12-07T13:00:55Z")

</div>

[https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652/600?u=merefield](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652/600)

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [December 7, 2023, 1:01pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/5 "2023-12-07T13:01:51Z")

</div>

Oh wow. I’ve have not read any of this either.

> [@merefield](#):
>
> I think it’s fairly obvious which plugin that relates to?

You mean /var/www/discourse/plugins/docker\_manager/lib/ **docker\_manager** /  
?

If so, I don’t know what steps to take either. Will now search for the link typed about though.

> [@merefield](#):
>
> [Discourse Chatbot 🤖 - #600](https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652/600)

Thanks!!

---

<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: [December 7, 2023, 1:04pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/6 "2023-12-07T13:04:02Z")

</div>

> [@cmdntd](#):
>
> `CREATE INDEX pgv_hnsw_index_on_ **chatbot** _post_embeddings ON **chatbot_** post_embeddings`

⬆ 👀 😅 😉

---

<div class="post-metadata">

### Author: ![haydenjames](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/haydenjames/32/255678_2.png) [@haydenjames](https://meta.discourse.org/u/haydenjames)
#### Post date: [December 7, 2023, 1:15pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/7 "2023-12-07T13:15:55Z")

</div>

I missed that. :facepalm: I know you would catch it in your sleep. I’m more in the average to below average intelligence level. 😐 Whoosh!

---

<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: [December 7, 2023, 1:18pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/8 "2023-12-07T13:18:39Z")

</div>

That’s quite alright, I think most people normally see error messages and gloss over, but when your forum is down because of it, worth digging a little deeper?

Normally I wouldn’t put you guys (the users) in such a position in the first place, but the nature of AI has been a crazy rollercoaster and I can’t protect you all from all of the bumps, though I’ve tried my best.

This change, despite the annoying manual nature of the resolution, is a one-off and should make future upgrades seamless, so Chatbot will no longer be raised in Topics for bad reasons, I hope!

---

<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: [December 7, 2023, 1:32pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/9 "2023-12-07T13:32:49Z")

</div>

Your yml file is different from my last upgrade. It seems hard to follow this plugin upgrade.  
After change yml, it is ok now. Thank you very much.

---

<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: [December 7, 2023, 1:33pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/10 "2023-12-07T13:33:22Z")

</div>

Great news!

If it builds ok now, you can remove all of those lines, every one of them.

---

<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: [January 6, 2024, 1:33pm UTC](https://meta.discourse.org/t/i-have-this-error-when-upgrading-discourse/287854/11 "2024-01-06T13:33:24Z")

</div>

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