# Discourse 插件安装的问题

**URL:** <https://www.isharkfly.com/t/discourse/17594>\
**Category:** Discourse\
**Tags:** discourse\
**Created:** [July 30, 2025, 11:57am UTC](https://www.isharkfly.com/t/discourse/17594 "2025-07-30T11:57:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [July 30, 2025, 11:57am UTC](https://www.isharkfly.com/t/discourse/17594/1 "2025-07-30T11:57:40Z")

</div>

最近在把 Discourse 升级到最新版本的时候提示了下面的问题：

```auto
/var/www/discourse/plugins
/var/discourse

sv start redis || exit 1 in /etc/service/unicorn/run
I, [2025-07-29T19:50:24.831730 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2025-07-29T19:50:25.731802 #1] INFO -- : 
I, [2025-07-29T19:50:25.732019 #1] INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-matomo-analytics.git
Cloning into 'discourse-matomo-analytics'...
warning: unable to access '/root/.config/git/ignore': Permission denied
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2025-07-29T19:50:26.226275 #1] INFO -- : 
I, [2025-07-29T19:50:26.226507 #1] INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-adplugin.git
fatal: destination path 'discourse-adplugin' already exists and is not an empty directory.
I, [2025-07-29T19:50:26.241205 #1] INFO -- : 
I, [2025-07-29T19:50:26.242279 #1] INFO -- : Terminating async processes
I, [2025-07-29T19:50:26.242387 #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/15/bin/postmaster -D /etc/postgresql/15/main pid: 45
I, [2025-07-29T19:50:26.242498 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 112
2025-07-29 19:50:26.242 UTC [45] LOG: received fast shutdown request
112:signal-handler (1753818626) Received SIGTERM scheduling shutdown...
112:M 29 Jul 2025 19:50:26.293 # User requested shutdown...
112:M 29 Jul 2025 19:50:26.294 * Saving the final RDB snapshot before exiting.
2025-07-29 19:50:26.296 UTC [45] LOG: aborting any active transactions
2025-07-29 19:50:26.300 UTC [45] LOG: background worker "logical replication launcher" (PID 59) exited with exit code 1
2025-07-29 19:50:26.306 UTC [54] LOG: shutting down
2025-07-29 19:50:26.363 UTC [54] LOG: checkpoint starting: shutdown immediate
112:M 29 Jul 2025 19:50:26.723 * DB saved on disk
112:M 29 Jul 2025 19:50:26.723 # Redis is now ready to exit, bye bye...
2025-07-29 19:50:26.987 UTC [54] LOG: checkpoint complete: wrote 9 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.149 s, sync=0.080 s, total=0.681 s; sync files=7, longest=0.036 s, average=0.012 s; distance=26 kB, estimate=26 kB
2025-07-29 19:50:27.016 UTC [45] LOG: database system is shut down

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-adplugin.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", "sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-matomo-analytics.git", "sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-adplugin.git", "sudo -E -u discourse git clone https://src.isharkfly.com/discourse/discourse-rewind.git"]}
bootstrap failed with exit code 128
**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.
d9611faf24384b39bdfa642fd16626c6ba64fcbda0dfb0dc99ecfe466bb0aa8f

```

 ![2025-07-29_15-55-17](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/6/4/6418ef9af6bf2a019b883eccd020e79261f96914.png)

## 问题和解决

这个问题的原因还是插件的干扰。

有些插件在已经合并到 Core 里面了。

对合并后的插件不能通过修改 app.yml 配置文件中的内容进行安装。

需要从里面给删掉。

比如说的这个 AI 的配置，现在已经是集成到 Core 里，在配置文件中的仓库配置地址就必须要删除。

否则就显示编译不通过。

 ![2025-07-30_09-43-13](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/5/4/5493f311bd214eedb0cc9f98a142d3cba08c97ee.jpeg)

如果在代码中看到上面的内容，就表示官方已经处理了。

 ![2025-07-30_09-44-50](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/f/c/fce2c73736cb863f14378debf4a0ddb1f7477477.jpeg)

---

<div class="post-metadata">

**Author:** ![whitewatercn](https://www.isharkfly.com/user_avatar/www.isharkfly.com/whitewatercn/32/2131_2.png) [@whitewatercn](https://www.isharkfly.com/u/whitewatercn)\
**Post date:** [August 4, 2025, 4:23am UTC](https://www.isharkfly.com/t/discourse/17594/2 "2025-08-04T04:23:54Z")

</div>

相关官网说明

> [@david](#):
>
> ### Affected Plugins
> 
> - [Discourse Advertising Plugin (Ads)](https://meta.discourse.org/t/discourse-advertising-plugin-ads/33734) (discourse-adplugin)
> - [Discourse Affiliate](https://meta.discourse.org/t/101937) (discourse-affiliate)
> - [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) (discourse-ai)
> - [Discourse Apple Authentication](https://meta.discourse.org/t/discourse-apple-authentication/171485) (discourse-apple-auth)
> - [Discourse Assign](https://meta.discourse.org/t/discourse-assign/58044) (discourse-assign)
> - [Discourse Calendar (and Event)](https://meta.discourse.org/t/discourse-calendar-and-event/97376) (discourse-calendar)
> - [Discourse Chat Integration](https://meta.discourse.org/t/discourse-chat-integration/66522) (discourse-chat-integration)
> - [Discourse Data Explorer](https://meta.discourse.org/t/discourse-data-explorer/32566) (discourse-data-explorer)
> - [Discourse Gamification](https://meta.discourse.org/t/discourse-gamification/225916) (discourse-gamification)
> - [Discourse GitHub](https://meta.discourse.org/t/discourse-github/99895) (discourse-github)
> - [Discourse Graphviz](https://meta.discourse.org/t/discourse-graphviz/97554) (discourse-graphviz)
> - [Discourse hCaptcha](https://meta.discourse.org/t/discourse-hcaptcha/291383) (discourse-hcaptcha)
> - [Discourse Login with Amazon](https://meta.discourse.org/t/discourse-login-with-amazon/117564) (discourse-login-with-amazon)
> - [Discourse Learning Management System Integration (LTI 1.3 Authentication)](https://meta.discourse.org/t/discourse-learning-management-system-integration-lti-1-3-authentication/196174) (discourse-lti)
> - [Discourse Math](https://meta.discourse.org/t/discourse-math/65770) (discourse-math)
> - [Microsoft Authentication](https://meta.discourse.org/t/microsoft-authentication/51731) (discourse-microsoft-auth)
> - [Discourse OAuth2 Basic](https://meta.discourse.org/t/discourse-oauth2-basic/33879) (discourse-oauth2-basic)
> - [Discourse OpenID Connect (OIDC)](https://meta.discourse.org/t/discourse-openid-connect-oidc/103632) (discourse-openid-connect)
> - [Discourse Patreon](https://meta.discourse.org/t/discourse-patreon/44366) (discourse-patreon)
> - [Discourse Policy](https://meta.discourse.org/t/discourse-policy/88557) (discourse-policy)
> - [Discourse Post Voting](https://meta.discourse.org/t/discourse-post-voting/227808) (discourse-post-voting)
> - [Discourse Reactions](https://meta.discourse.org/t/discourse-reactions/183261) (discourse-reactions)
> - [RSS Polling](https://meta.discourse.org/t/rss-polling/156387) (discourse-rss-polling)
> - [Discourse Solved](https://meta.discourse.org/t/30155) (discourse-solved)
> - [Discourse Subscriptions Plugin](https://meta.discourse.org/t/discourse-subscriptions-plugin/140818) (discourse-subscriptions)
> - [Discourse Templates](https://meta.discourse.org/t/discourse-templates/229250) (discourse-templates)
> - [Discourse Topic Voting](https://meta.discourse.org/t/discourse-topic-voting/40121) (discourse-topic-voting)
> - [Discourse User Notes](https://meta.discourse.org/t/discourse-user-notes/41026) (discourse-user-notes)
> - [Discourse Zendesk](https://meta.discourse.org/t/discourse-zendesk/68005) (discourse-zendesk-plugin)
> 
> * * *
> 
> - (pending) [Discourse Cakeday](https://meta.discourse.org/t/discourse-cakeday/38447) (discourse-cakeday)

- [Bundling more popular plugins with Discourse core - Announcements - Discourse Meta](https://meta.discourse.org/t/bundling-more-popular-plugins-with-discourse-core/373574)

- [3.5.0.beta8: Bundled plugins, a new theme, better color management, powerful filtering, and advanced image controls - Announcements - Discourse Meta](https://meta.discourse.org/t/3-5-0-beta8-bundled-plugins-a-new-theme-better-color-management-powerful-filtering-and-advanced-image-controls/375746)

---

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [August 4, 2025, 3:47pm UTC](https://www.isharkfly.com/t/discourse/17594/3 "2025-08-04T15:47:02Z")

</div>

> [@whitewatercn](#):
>
> 相关官网说明

这次升级算是一次主要升级。

有不少问题，主要还是插件问题，看来官方的态度应该是只要官方维护的插件就直接集成进来吧。

---

<div class="post-metadata">

**Author:** ![Kokomi](https://www.isharkfly.com/user_avatar/www.isharkfly.com/kokomi/32/16765_2.png) [@Kokomi](https://www.isharkfly.com/u/Kokomi)\
**Post date:** [August 7, 2025, 12:54pm UTC](https://www.isharkfly.com/t/discourse/17594/4 "2025-08-07T12:54:47Z")

</div>

今天把论坛升级了，唯一出问题的地方是[https://gems.ruby-china.com/](https://gems.ruby-china.com/) 的ssl证书今天过期，上午还没有更换，所以无法下载gems包。

更换ustc源或者清华源 报错 ERROR: Could not find a valid gem ‘bundler’ (= 2.5.18) in any repository

可能是因为机器分配没有ipv6地址，而容器内解析到镜像站ipv6的ip。

ustc源和清华源都支持ipv4，ruby-china只支持ipv4。

关闭docker的ipv6或许能解决问题，但是我不想站点下线，所以等下午ruby-china镜像配置完新证书之后再升级，一次成功。

---

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [August 7, 2025, 1:40pm UTC](https://www.isharkfly.com/t/discourse/17594/5 "2025-08-07T13:40:22Z")

</div>

看了下，确实 SSL 是昨天才更新的。

 ![2025-08-07_09-30-10](https://cdn.isharkfly.com/com-isharkfly-www/discourse-uploads/original/3X/d/2/d2402bc5622b7d43161945696ac972dd224aaf14.jpeg)

做为一个这么打的网站来说没有关注到 SSL，现在很多 SSL 都是自动更新的，而且使用 HTTPS 是标准配置了。

还是有点不应该。
