# 多站点数据升级到 2.9.0beta 失败

**URL:** <https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557>\
**Category:** Support\
**Created:** [2022年三月21日 15:09 UTC](https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557 "2022-03-21T15:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [2022年三月21日 15:09 UTC](https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557/1 "2022-03-21T15:09:00Z")

</div>

尽管其他主机已成功升级，但这个拥有两个容器（`web_only` 和 `data`）且没有非官方插件的 _multisite_ 主机在升级 `data` 容器时出现问题：

```plaintext
./launcher rebuild data
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 60 data
data
/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2022-03-21T14:08:36.336829 #1] INFO -- : Reading from stdin
/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/config.rb:70:in `combine_template_and_process_env': undefined method `each' for nil:NilClass (NoMethodError)
        from /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/config.rb:17:in `initialize'
        from /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/cli.rb:55:in `new'
        from /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/cli.rb:55:in `run'
        from /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/bin/pups:9:in `<top (required)>'
        from /usr/local/bin/pups:25:in `load'
        from /usr/local/bin/pups:25:in `<main>'
5bf317d1a66a44ec1d100a9da77210dfd7c10dd25f4cb999bd7c2ab69cd330dc
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.

```

我尝试了几次升级，一次是在“noop”的 2.9.0beta1 升级之后（本应能正常工作），另一次是今天针对 beta2。我想知道……  
主机运行的是 Ubuntu 20.04。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2022年三月21日 16:20 UTC](https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557/2 "2022-03-21T16:20:18Z")

</div>

FWIW，我刚刚在我的测试站点上重建了 `data` 容器，一切顺利。不过这是几天前的一个新版本，所以可能有所帮助。

（Digital Ocean，1GB 内存，Ubunutu 20.04）

---

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [2022年三月21日 18:22 UTC](https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557/3 "2022-03-21T18:22:20Z")

</div>

由于 `web_only` 容器已成功升级，并且尽管 `data` 容器启动失败，但我运行了 `./launcher start data`，现有容器已启动；重新加载管理页面后显示的是新版本。

我仍然对这个 bug 感到好奇，因为它可能会影响需要数据库迁移的未来升级。

---

<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:** [2022年四月20日 18:23 UTC](https://meta.discourse.org/t/failed-data-upgrade-to-2-9-0beta-for-multisite/221557/4 "2022-04-20T18:23:10Z")

</div>

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