# Error: "There are 965 email jobs that failed. Check your app.yml and ensure that the mail server settings are correct."

**URL:** https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879
**Category:** Self-hosting
**Tags:** email
**Created:** [3월 25, 2017, 2:25오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879 "2017-03-25T14:25:58Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 2:25오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/1 "2017-03-25T14:25:58Z")

</div>

Hi there, woke up this morning to some sort of email error. My Discourse seemed to be running fine until this.

In Sidekiq, I get many errors such as this:

```
"16 default Jobs::UserEmail 	
{"type"=>"digest", "user_id"=>8, "current_site_id"=>"default"}

Jobs::HandledExceptionWrapper: Wrapped SocketError: getaddrinfo: No address associated with hostname"

```

Also this one:

```
"5 default Jobs::VersionCheck 	
{}
	
Jobs::HandledExceptionWrapper: Wrapped SocketError: Failed to open TCP connection to api.discourse.org:443 (getaddrinfo: No address associated with hostname)"

```

I’m not sure how to access the app.yml to check. Can’t seem to find it.

Thanks for your help!

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 2:34오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/2 "2017-03-25T14:34:13Z")

</div>

Kinda looks like your server lost DNS service at some point overnight…

When was the last job that failed? Have more recent jobs succeeded?

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 2:38오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/3 "2017-03-25T14:38:23Z")

</div>

Thanks for the response, more recent jobs don’t seem to be working. Tried to set up a new account and received an error instead of getting a successful email. What’s strange is that I did not do any work on the site recently or change settings.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 2:39오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/4 "2017-03-25T14:39:25Z")

</div>

Can you log into your server via SSH? If so, try running

`ping discourse.org`

and see if that works.

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 2:40오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/5 "2017-03-25T14:40:12Z")

</div>

Yes, ping seems to work fine,

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 2:43오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/6 "2017-03-25T14:43:55Z")

</div>

Hmm, if the jobs are still failing then I’m not really sure what to suggest. You could try running one manually by going to sidekiq, “scheduler”, then find “Jobs::VersionCheck” and click “Trigger”.

The app.yml file is at `/var/discourse/containers/app.yml`, but since the errors are with the DNS resolution I’m not sure that’ll help.

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 2:51오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/7 "2017-03-25T14:51:49Z")

</div>

Yes, that trigger failed as well. I have found my app.yml file and can’t see anything that stands out that would cause failure.

Again, I appreciate your help.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 2:53오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/8 "2017-03-25T14:53:41Z")

</div>

Maybe try looking up the exact domain name that’s failing? So:

`host api.discourse.org`

You should get something like

```plaintext
api.discourse.org is an alias for corp.discourse.org.
corp.discourse.org has address 64.71.168.251
corp.discourse.org has IPv6 address 2001:470:1:3a8::251

```

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 3:01오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/9 "2017-03-25T15:01:10Z")

</div>

sorry, where would I check that?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 3:01오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/10 "2017-03-25T15:01:44Z")

</div>

SSH into the server and run

`host api.discourse.org`

(the same way you did ping earlier)

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 3:03오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/11 "2017-03-25T15:03:09Z")

</div>

Ah yes, I get what you said I should get as a result

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [3월 25, 2017, 3:04오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/12 "2017-03-25T15:04:11Z")

</div>

Other than trying a reboot on your server, I’m not sure I have any other suggestions - sorry. ☹

Hopefully someone else will have some ideas.

---

<div class="post-metadata">

### Author: ![Knigel](https://avatars.discourse-cdn.com/v4/letter/k/bbe5ce/32.png) [@Knigel](https://meta.discourse.org/u/Knigel)
#### Post date: [3월 25, 2017, 3:12오후 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/13 "2017-03-25T15:12:42Z")

</div>

Well, I should have started with the old turn it off and on routine. That seemed to work and emails are coming through. Thanks very much for your help. Major kudos!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 27, 2017, 12:14오전 UTC](https://meta.discourse.org/t/error-there-are-965-email-jobs-that-failed-check-your-app-yml-and-ensure-that-the-mail-server-settings-are-correct/59879/14 "2017-03-27T00:14:11Z")

</div>


