# Discourse-solved 失败的迁移

**URL:** https://meta.discourse.org/t/discourse-solved-broken-migration/202095
**Category:** Self-hosting
**Created:** [2021年八月30日 10:36 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095 "2021-08-30T10:36:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [2021年八月30日 10:36 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/1 "2021-08-30T10:36:35Z")

</div>

Discourse 版本：2.8.0.beta4  
最近的更新（最后 7 次提交）导致我的迁移失败：

```plaintext
/var/www/discourse/plugins/discourse-solved/plugin.rb:702:in `block in activate!': undefined method `register_topic_list_preload_user_ids' for #<Plugin::Instance:0x0000560f2d7a5318>
Did you mean? register_topic_custom_field_type (NoMethodError)

**不兼容的插件**

由于插件 /var/www/discourse/plugins/discourse-solved 中存在错误，您无法构建 Discourse。

请尝试移除该插件并重新构建！

```

```plaintext
173:M 30 Aug 2021 10:28:58.559 # Redis 现在准备退出，再见...
失败
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' 执行失败，返回状态 #<Process::Status: pid 4279 exit 1>
失败位置：/pups/lib/pups/exec_command.rb:112:in `spawn'
执行失败，参数为 {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
31203867aea6de5292ee75de44e07092307e88c9046824c265fce1f1792ff077
**引导失败** 请向上滚动并查找之前的错误信息，可能不止一条。
./discourse-doctor 可能有助于诊断问题。
==================== 重建日志结束 ====================
应用重建失败。

```

---

<div class="post-metadata">

### Author: ![zsero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zsero/32/64016_2.png) [@zsero](https://meta.discourse.org/u/zsero)
#### Post date: [2021年八月30日 16:35 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/2 "2021-08-30T16:35:19Z")

</div>

我也可以确认，在 `tests-passed` 上进行了最新重建后，Solved 功能导致整个网站无法使用。我暂时不得不关闭 Solved 功能。

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2021年八月31日 02:50 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/4 "2021-08-31T02:50:59Z")

</div>

感谢您报告此问题，我现在正在查看。

---

<div class="post-metadata">

### Author: ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)
#### Post date: [2021年八月31日 03:36 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/5 "2021-08-31T03:36:12Z")

</div>

@Stanzilla @zsero 我确认该问题在 beta4 和稳定版中均存在，但在本地 tests-passed 环境中运行正常。我已将此修复合并到 discourse-solved：[FIX: Stop register\_topic\_list\_preload\_user\_ids from breaking old versions by martin-brennan · Pull Request #160 · discourse/discourse-solved · GitHub](https://github.com/discourse/discourse-solved/pull/160)

请尝试拉取最新更改并重新构建。

---

<div class="post-metadata">

### Author: ![Stanzilla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stanzilla/32/166422_2.png) [@Stanzilla](https://meta.discourse.org/u/Stanzilla)
#### Post date: [2021年八月31日 17:50 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/6 "2021-08-31T17:50:22Z")

</div>

> [@martin](#):
>
> @Stanzilla @zsero 我确认这在 beta4 和稳定版中已损坏，但在本地通过测试的环境中运行正常。我刚刚将此修复合并到了 discourse-solved：[FIX: Stop register\_topic\_list\_preload\_user\_ids from breaking old versions by martin-brennan · Pull Request #160 · discourse/discourse-solved · GitHub](https://github.com/discourse/discourse-solved/pull/160)
> 
> 请尝试拉取最新更改并重新构建。

谢谢，我可以确认使用这些更改后构建不再失败。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年十月12日 00:50 UTC](https://meta.discourse.org/t/discourse-solved-broken-migration/202095/7 "2021-10-12T00:50:32Z")

</div>

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