无法再更新 Discourse

Web界面显示:

然后我尝试重建时收到以下错误:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-oauth2-basic.git failed with return #<Process::Status: pid 283 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/exec_command.rb:131:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-solved.git", "git clone https://github.com/discourse/discourse-github.git", "git clone https://github.com/discourse/discourse-oauth2-basic.git", "git clone https://github.com/discourse/discourse-chat.git", "git clone https://github.com/discourse/discourse-reactions.git", "git clone https://github.com/discourse/discourse-data-explorer.git", "git clone https://github.com/discourse/discourse-chat-integration.git"]}
bootstrap failed with exit code 128
---
HINT: The plugin 'discourse-reactions' is now bundled with Discourse and should not be included in your container configuration.
Remove the line 'git clone https://github.com/discourse/discourse-reactions' from your containers/app.yml file, then try again.
For more information, see https://meta.discourse.org/t/373574
---
---
HINT: The plugin 'discourse-oauth2-basic' is now bundled with Discourse and should not be included in your container configuration.
Remove the line 'git clone https://github.com/discourse/discourse-oauth2-basic' from your containers/app.yml file, then try again.
For more information, see https://meta.discourse.org/t/373574
---
---
HINT: The plugin 'discourse-chat-integration' is now bundled with Discourse and should not be included in your container configuration.
Remove the line 'git clone https://github.com/discourse/discourse-chat-integration' from your containers/app.yml file, then try again.
For more information, see https://meta.discourse.org/t/373574
---
---
HINT: The plugin 'discourse-data-explorer' is now bundled with Discourse and should not be included in your container configuration.
Remove the line 'git clone https://github.com/discourse/discourse-data-explorer' from your containers/app.yml file, then try again.
For more information, see https://meta.discourse.org/t/373574
---
** 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.
41000056ddacb6105036e85e67db1a5eab6fbd8d0184e4db5e16613c189fe2cd

我尝试注释掉 /var/discourse/containers/app.yml 中现在已捆绑的插件

但重建仍然出现相同的错误。

有人有什么想法吗?谢谢!

您需要从 app.yml 文件中删除这些插件。它们已在新版本的 discourse 中提供,因此在重新构建时无需拉取它们。

从您的 containers/app.yml 文件中删除行 'git clone https://github.com/discourse/discourse-reactions',然后重试。
---
从您的 containers/app.yml 文件中删除行 'git clone https://github.com/discourse/discourse-oauth2-basic',然后重试。
---
从您的 containers/app.yml 文件中删除行 'git clone https://github.com/discourse/discourse-chat-integration',然后重试。
---
从您的 containers/app.yml 文件中删除行 'git clone https://github.com/discourse/discourse-data-explorer',然后重试。
3 个赞

问题是,我做的完全一样。

我认为这与所有插件在没有必要的情况下被捆绑到核心中并且没有经过适当测试有关。

1 个赞

您能否发送您 app.yml 文件中安装的插件列表?谢谢!

2 个赞

你是否在删除这些行之后保存了 yml 文件?

          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-github.git
#          - git clone https://github.com/discourse/discourse-oauth2-basic.git
#          - git clone https://github.com/discourse/discourse-chat.git
#          - git clone https://github.com/discourse/discourse-reactions.git
#          - git clone https://github.com/pmusaraj/discourse-onesignal.git
#          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-chat-integration.git
```*加粗文本*

其中一些被注释掉了……
1 个赞

看起来 discourse-chat-integration 仍需要被注释掉

5 个赞

哦,是的,谢谢……我会再试一次并报告

2 个赞

是的,就是那样……难怪我连续工作12小时后会犯这种错误。谢谢!

3 个赞

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