升级 Discourse 时出现此错误

Discourse 升级时出现此错误。现在 Web 已停止运行。

== 20231026010114 CreatePgVectorChatbotPostEmbeddingsIndex: migrating =========
-- execute("      CREATE INDEX pgv_hnsw_index_on_chatbot_post_embeddings ON chatbot_post_embeddings USING hnsw (embedding vector_l2_ops)
      WITH (m = 32, ef_construction = 64);
")
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

我认为哪个插件与之相关相当明显吧? ;)\n\n你是否阅读了该插件主题的最新帖子/OP?\n\n你需要采取行动,如果你没有采取行动,它将无法构建。

不。我只是像往常一样升级了论坛。
您有此问题的链接吗?

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

2 个赞

哦,哇。我也没有读过这些。

你的意思是 /var/www/discourse/plugins/docker_manager/lib/docker_manager/

如果是这样,我也不知道该采取什么步骤。现在就去搜索提到的链接。

谢谢!!

:arrow_up: :eyes: :sweat_smile: :wink:

3 个赞

我错过了。:facepalm: 我知道你睡着了也能抓住。我的智力水平属于平均或低于平均水平。:neutral_face: 嗖!

没关系,我认为大多数人通常会忽略错误消息,但当您的论坛因此而瘫痪时,值得深入研究一下?

通常情况下,我不会让你们(用户)处于这种境地,但人工智能的性质就像一趟疯狂的过山车,我无法保护你们免受所有颠簸,尽管我已经尽力了。

这次更改,尽管解决起来很麻烦,但这是一次性的,应该能使将来的升级无缝进行,因此我希望 Chatbot 不再会因为不好的原因出现在话题中!

3 个赞

您的 yml 文件与我上次升级的不同。此插件升级似乎很难跟进。更改 yml 后,现在可以了。非常感谢。

1 个赞

好消息!

如果现在可以成功构建,您可以删除所有这些行,每一行都删除。

1 个赞

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