# PostgreSQL 13 更新后卡在更新循环中

**URL:** https://meta.discourse.org/t/stuck-in-an-update-loop-after-postgresql-13-update/206362
**Category:** Self-hosting
**Created:** [2021年十月18日 17:25 UTC](https://meta.discourse.org/t/stuck-in-an-update-loop-after-postgresql-13-update/206362 "2021-10-18T17:25:14Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [2021年十月19日 07:40 UTC](https://meta.discourse.org/t/stuck-in-an-update-loop-after-postgresql-13-update/206362/10 "2021-10-19T07:40:46Z")

</div>

嗨，Jay！

> [@pfaffman](#):
>
> > [@alehandrof](#):
> >
> > `templates/postgres.13.template.yml`
> 
> 为什么这不直接是没有 13 的 postgres 模板呢？

你说得对，这是个错误，看起来很可能就是问题所在。我已经将其改为 `templates/postgres.template.yml`，并重新构建了两遍，但我仍然被困在这个循环中。

> [@pfaffman](#):
>
> > [@alehandrof](#):
> >
> > 我使用 DigitalOcean Spaces 设置了一个独立的共享文件夹。
> 
> 这是什么意思？我觉得这可能与问题有关。

我遵循了[这篇指南](https://meta.discourse.org/t/setting-up-backup-and-image-uploads-to-digitalocean-spaces/92502)（在它可用时）来使用 DigitalOcean Spaces 进行备份和图像上传。

我的 postgres 数据似乎分布在两个地方：

- `/var/postgres_data_discourse`（PG\_VERSION = 10）
- `/mnt/volume_ams3_01/shared/standalone/postgres_data_new`（PG\_VERSION = 13）
- `/mnt/volume_ams3_01/shared/standalone/postgres_data`（PG\_VERSION = 13）——我按照之前的建议，手动从 `postgres_data_new` 复制了这些文件

---

_[View the full topic](https://meta.discourse.org/t/stuck-in-an-update-loop-after-postgresql-13-update/206362)._
