升级 discourse 新版本时遇到错误

升级到最新版本时出现此错误:
您能帮帮我吗?

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

您可以向上滚动到该消息并检查任何错误吗?(或在此处将输出粘贴到代码块中,以便我们查看)

这是之前的内容:

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...
1 个赞

请仔细阅读 OP:

使用 Chatbot 有新要求。

请勿在未先遵循卸载说明的情况下将其移除。

我可能会在未来版本中简化此过程,但目前必须遵循这些说明。

5 个赞

它奏效了。但似乎太复杂了。
你能让它更简单些吗?

您是否有关于机器人阅读主题限制的表格?(我担心您在索引讨论内容时会变得更智能)

机器人的“视觉”在同一篇文章中有介绍。

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