# Can't upgrade because edited a template

**URL:** https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917
**Category:** Support
**Created:** [November 27, 2025, 10:10pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917 "2025-11-27T22:10:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 27, 2025, 10:10pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917/1 "2025-11-27T22:10:28Z")

</div>

I ran into the same problem.

Naively, I thought rebuilding my container would fix it, but in the current Discourse, Postgres is still at 15.12.

I was able to restore after a manual `apt update` / `apt upgrade` inside my container, but this feels quite hacky.

Did I miss something?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 28, 2025, 5:12pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917/2 "2025-11-28T17:12:43Z")

</div>

Do you have separate data and web only containers?

Do you somehow have docker\_manager pinned to an old version?

Are you using an external postgres?

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 28, 2025, 9:40pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917/3 "2025-11-28T21:40:31Z")

</div>

> [@pfaffman](#):
>
> Do you somehow have docker\_manager pinned to an old version?

Thanks for the pointer. This was the case.  
I changed a template and did a local commit, which did not merge automatically.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 28, 2025, 10:09pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917/4 "2025-11-28T22:09:40Z")

</div>

> [@thoka](#):
>
> I changed a template and did a local commit, which did not merge automatically.

You should just copy your new template somewhere else and refer to it rather than editing it.

---

<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: [December 28, 2025, 10:09pm UTC](https://meta.discourse.org/t/cant-upgrade-because-edited-a-template/389917/5 "2025-12-28T22:09:43Z")

</div>

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