# SMTP Settings in app.yml reset?

**URL:** https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762
**Category:** Self-hosting
**Created:** [June 13, 2022, 6:18am UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762 "2022-06-13T06:18:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![keith1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keith1/32/178982_2.png) [@keith1](https://meta.discourse.org/u/keith1)
#### Post date: [June 13, 2022, 6:18am UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/1 "2022-06-13T06:18:25Z")

</div>

I feel like I’m going a little crazy here, but I’ve left my site alone for a few months and finally went to grab some updates - my docker is outdated, so attempting to run

```plaintext
./launcher rebuild app

```

However, I am getting a warning saying  
`"Aborting! Mail is not configured!";`

So I go look in my app.yml, and all of my smtp settings are back to defaults. Where I’m confused is - shouldn’t this have prevented the community from functioning? At the very least, no new sign ups, lost passwords, etc? My stats are showing that I’ve had 26 new signups in the last week.

How did this get reset? What am I missing? Did my git pull stomp my servers old app.yml?

---

<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: [June 13, 2022, 3:28pm UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/2 "2022-06-13T15:28:08Z")

</div>

That is rather strange. Though it sounds like the `app.yml` was ‘updated’ and not rebuilt, so those settings wouldn’t have made it into the live version of your instance (which would explain why your site was still working 🙂)

---

<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: [June 13, 2022, 5:24pm UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/3 "2022-06-13T17:24:27Z")

</div>

Hey Keith. I thought I recognized your name and see that I’ve helped you before. I hope that you don’t mind that I took the liberty of logging in to your server and having a look.

You’ve got a 2-container setup (I’m not sure why there is still an app.yml, it should be renamed or deleted), so you have separate data and web containers.

So you’d do an upgrade like

```
 ./launcher bootstrap web_only && ./launcher destroy web_only;./launcher start web_only

```

I’ve got more info here: [Managing a Two-Container Installation - Documentation - Literate Computing Support](https://support.literatecomputing.com/t/managing-a-two-container-installation/310) (and I think there’s a topic here as well, but I don’t see it in a quick search).

Also, you’re running PG 10, which might causes problems with an upgrade. See [PostgreSQL 13 update](https://meta.discourse.org/t/postgresql-13-update/172563) for details on how to do that. You probably need to do the PG upgrade

---

<div class="post-metadata">

### Author: ![keith1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keith1/32/178982_2.png) [@keith1](https://meta.discourse.org/u/keith1)
#### Post date: [June 13, 2022, 6:00pm UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/4 "2022-06-13T18:00:13Z")

</div>

Hi @pfaffman !

You are absolutely correct - this is 100% user error, and that’s what I get for diving back into this so late at night. Thank you!

---

<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: [June 13, 2022, 7:34pm UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/5 "2022-06-13T19:34:23Z")

</div>

Glad you’re back up! Sorry if I was the one who switched you to 2-container and left the `app.yml` there to trip you up! I try to rename them something without `.yml` so that they can’t be accessed by mistake.

So make sure that you do the same.

---

<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: [July 13, 2022, 7:35pm UTC](https://meta.discourse.org/t/smtp-settings-in-app-yml-reset/229762/6 "2022-07-13T19:35:02Z")

</div>

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