你好,社区。
我有一段时间没有更新我的 Discourse 安装了,今天我去更新时,它出现了这个错误。我从来没有遇到过这样的问题,因为我只是一个爱好者,而不是程序员。
我尝试按照此链接中描述的步骤进行操作 - https://meta.discourse.org/t/manually-update-discourse-and-docker-image-to-latest/23325,但不幸的是,它没有奏效。
我该如何调整?
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 514 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.
您好,欢迎您
如果您从那个结束的“FAILED”块向上滚动,您应该能在输出中看到更详细的错误消息,您可以在此分享(或粘贴全部内容,以便我们查看 )
关于错误,我认为是这个返回导致了问题
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I, [2023-10-04T13:36:43.944790 #1] INFO -- : gem install multipart-post -v 2.3.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed multipart-post-2.3.0
1 gem installed
gem install faraday-multipart -v 1.0.4 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed faraday-multipart-1.0.4
1 gem installed
gem install ruby-openai -v 5.1.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed ruby-openai-5.1.0
1 gem installed
gem install google_search_results -v 2.2.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed google_search_results-2.2.0
1 gem installed
gem install wikipedia-client -v 1.17.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed wikipedia-client-1.17.0
1 gem installed
gem install childprocess -v 4.1.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed childprocess-4.1.0
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 theme-transpiler: tmp/theme-transpiler.js
== 20230820010101 EnableEmbeddingExtension: migrating =========================
-- enable_extension(:embedding)
I, [2023-10-04T13:36:43.945760 #1] INFO -- : Terminating async processes
I, [2023-10-04T13:36:43.945832 #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-10-04T13:36:43.946048 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
111:signal-handler (1696426603) Received SIGTERM scheduling shutdown...
2023-10-04 13:36:43.946 UTC [42] LOG: received fast shutdown request
2023-10-04 13:36:43.949 UTC [42] LOG: aborting any active transactions
2023-10-04 13:36:43.953 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-10-04 13:36:43.956 UTC [46] LOG: shutting down
111:M 04 Oct 2023 13:36:43.960 # User requested shutdown...
111:M 04 Oct 2023 13:36:43.960 * Saving the final RDB snapshot before exiting.
111:M 04 Oct 2023 13:36:43.994 * DB saved on disk
111:M 04 Oct 2023 13:36:43.994 # Redis is now ready to exit, bye bye...
2023-10-04 13:36:44.003 UTC [42] LOG: database system is shut down
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 514 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.
ecd06a9462e1f89b72e3c8cd2f04a35fbc5a6777c65e6b123e110ce8875091c9
1 个赞
聊天机器人需要对 app.yml 进行一些添加,而且已经有一段时间了。请参阅插件主题的 OP。
1 个赞
我确实有段时间没更新了,所以甚至跟不上这个话题。\n\n但现在我知道了,我会更多地了解它。
1 个赞
抱歉,这是一个破坏性更改,但该技术在很大程度上是实验性的。
新功能值得付出努力。
2 个赞
system
(system)
关闭
2023 年11 月 3 日 20:11
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.