# I am getting error as 10,000s of emails failed (mostly digest emails)

**URL:** https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723
**Category:** Bug
**Created:** [24.Июль.2016 18:03:13 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723 "2016-07-24T18:03:13Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![TheSmartWare](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thesmartware/32/424290_2.png) [@TheSmartWare](https://meta.discourse.org/u/TheSmartWare)
#### Post date: [24.Июль.2016 18:03:14 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/1 "2016-07-24T18:03:14Z")

</div>

I am getting following error in my admin panel at [https://ask.thesmartware.com/admin/email/preview-digest](https://ask.thesmartware.com/admin/email/preview-digest)

 ![](https://global.discourse-cdn.com/meta/original/3X/7/8/78d8097e86ea4c5151c739ccb2991d59b65d420b.png)

**Failed Emails**

 ![](https://global.discourse-cdn.com/meta/original/3X/0/d/0de5a4ab7c2829f034f1d8bb32726c0631f29b8a.png)

**Error logs at sidekiq**

 ![](https://global.discourse-cdn.com/meta/original/3X/0/3/03b6079f12316adf5913f25f54b06860ab34f69b.png)

All these errors are some how related to digest emails.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [24.Июль.2016 21:19:27 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/2 "2016-07-24T21:19:27Z")

</div>

Seems like a migration didn’t run. Can your rebuild your container?

```plaintext
cd /var/discourse
git pull
./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![TheSmartWare](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thesmartware/32/424290_2.png) [@TheSmartWare](https://meta.discourse.org/u/TheSmartWare)
#### Post date: [24.Июль.2016 22:20:06 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/3 "2016-07-24T22:20:06Z")

</div>

I think you are right because i am facing this issue since last time i  
upgraded my discourse.

In the steps to upgrade, i saw few commands repeating and it was mentioned  
there that 2nd instance of that command will just migrate something and  
exit.

But, what i realised that instead of doing migration, it started doing the  
same process again.

As far as i remember, after this i got some problem (i think 500 error) and  
then I chagned my discourse version to stable release in app.yml

I have already ran those commands (rebuild app) many times but unfortunately It has not helped yet.

Now, can you please help me out with this migration issue which has not ran  
correctly. How can i make it run now ?

---

<div class="post-metadata">

### Author: ![TheSmartWare](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thesmartware/32/424290_2.png) [@TheSmartWare](https://meta.discourse.org/u/TheSmartWare)
#### Post date: [25.Июль.2016 05:51:41 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/4 "2016-07-25T05:51:41Z")

</div>

> [@zogstrip](#):
>
> cd /var/discourse  
> git pull  
> ./launcher rebuild app

I have already ran those commands (rebuild app) many times but unfortunately It has not helped yet.

Now, can you please help me out with this migration issue which has not ran  
correctly. How can i make it run now ?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [25.Июль.2016 06:05:00 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/5 "2016-07-25T06:05:00Z")

</div>

> [@TheSmartWare](#):
>
> Now, can you please help me out with this migration issue which has not rancorrectly. How can i make it run now ?

That’s what `./launcher rebuild app` is supposed to do (along with a bunch of other things).

---

<div class="post-metadata">

### Author: ![TheSmartWare](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thesmartware/32/424290_2.png) [@TheSmartWare](https://meta.discourse.org/u/TheSmartWare)
#### Post date: [25.Июль.2016 06:43:51 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/6 "2016-07-25T06:43:51Z")

</div>

I changed my version to **tests-passed** back in app.yml and ran those commands.  
Finally, my problem is now solved 😀

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [25.Июль.2016 07:30:19 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/7 "2016-07-25T07:30:19Z")

</div>

> [@TheSmartWare](#):
>
> I changed my version to stable-release back in app.yml and ran those commands.

very very bad idea, you can only move back to stable from beta when we release a new stable in a few weeks.

---

<div class="post-metadata">

### Author: ![TheSmartWare](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thesmartware/32/424290_2.png) [@TheSmartWare](https://meta.discourse.org/u/TheSmartWare)
#### Post date: [25.Июль.2016 09:52:32 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/8 "2016-07-25T09:52:32Z")

</div>

Oops, I changed my version back to **tests-passed** (not stable-release).  
_i mentioned “stable-release” in my previous message by mistake._

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [26.Июль.2016 16:26:00 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/9 "2016-07-26T16:26:00Z")

</div>

So the issue was what @sam just described as a very bad idea - you moved versions backwards.

---

<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: [27.Июль.2016 01:39:25 UTC](https://meta.discourse.org/t/i-am-getting-error-as-10-000s-of-emails-failed-mostly-digest-emails/47723/10 "2016-07-27T01:39:25Z")

</div>


