# "Your local changes.... templates/postgres.template.yml"

**URL:** https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582
**Category:** Self-hosting
**Created:** [July 24, 2025, 7:54am UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582 "2025-07-24T07:54:14Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [July 24, 2025, 7:54am UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/1 "2025-07-24T07:54:14Z")

</div>

Discourse is not starting. The logs for the container show:

```plaintext
ok: run: redis: (pid 47) 791s
ok: run: postgres: (pid 44) 791s
supervisor pid: 4051 unicorn pid: 4056
./config/unicorn_launcher: line 71: kill: (4056) - No such process
./config/unicorn_launcher: line 15: kill: (4056) - No such process
(4051) exiting
ok: run: redis: (pid 47) 793s
ok: run: postgres: (pid 44) 793s
supervisor pid: 4065 unicorn pid: 407

```

I tried to go to /var/discourse and do a ./launcher rebuild app and it shows this on loop:

```plaintext
Ensuring launcher is up to date
Updating Launcher...
Updating 721facb..34dd695
error: your local changes to the following files would be overwritten by merge: templates/postgres.template.yml
Please commit your changes or stash them before you merge.
Aborting
failed to update

```

Why did this happen and how can I fix this?

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 24, 2025, 8:25am UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/2 "2025-07-24T08:25:22Z")

</div>

> [@joshhabka](#):
>
> `your local changes to the following files would be overwritten by merge: templates/postgres.template.yml`

where is your database server located?

* * *

this dictates the arguments you need after the `.\launcher rebuild app` command.

* * *

For example, if using a Postgres instance on the host (127.0.0.1):

You should run the `.\launcher rebuild app` with host networking:

> ```plaintext
> ./launcher rebuild app --docker-args --net=host --skip-mac-address
> 
> ```

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [July 24, 2025, 6:29pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/3 "2025-07-24T18:29:39Z")

</div>

My database server is the same as Discourse, I used the [official install](https://meta.discourse.org/t/142537?silent=true) guide to install Discourse

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [July 24, 2025, 6:31pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/4 "2025-07-24T18:31:12Z")

</div>

That command shows the same error. This is weird because it normally works just fine

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [July 24, 2025, 6:42pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/5 "2025-07-24T18:42:44Z")

</div>

@Ethsim2 I did a cp of the file to a home directory and removed it from /templates

This is the new issue: [Discourse Online Updater & ./launcher rebuild app failed from Discourse gamification](https://meta.discourse.org/t/discourse-online-updater-launcher-rebuild-app-failed-from-discourse-gamification/375682)

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 24, 2025, 6:57pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/6 "2025-07-24T18:57:09Z")

</div>

what deos `free -h` return?

> [@joshhabka](#):
>
> That command shows the same error.

intresting. You shouldn’t need the rebuild arguments for a [standard install](https://meta.discourse.org/t/142537?silent=true)

or, say, if the PostgreSQL server was on 0.0.0.0 and the appropriate configurations in place for Discourse’s docker to maintain it’s network isolation.

---

<div class="post-metadata">

### Author: ![Ethsim2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ethsim2/32/522255_2.png) [@Ethsim2](https://meta.discourse.org/u/Ethsim2)
#### Post date: [July 24, 2025, 6:58pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/7 "2025-07-24T18:58:26Z")

</div>

> [@joshhabka](#):
>
> I did a cp of the file to a home directory and removed it from /templates

this would require mounting in the `app.yml` to be useful in the relevant Discourse docker container, which is **not recommended**

* * *

you can always remove the file in host directory with `rm`

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [July 24, 2025, 7:02pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/8 "2025-07-24T19:02:58Z")

</div>

Yes I did do the rm /var/discourse/templates/postgres.template.yml which shouldn’t hurt anything since it’s a template file?

---

<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: [August 23, 2025, 7:03pm UTC](https://meta.discourse.org/t/your-local-changes-templates-postgres-template-yml/375582/9 "2025-08-23T19:03:17Z")

</div>

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