# Discourse sending 4 users many repeat notifications of new posts

**URL:** <https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168>\
**Category:** Support\
**Created:** [2015年六月18日 14:22 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168 "2015-06-18T14:22:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月18日 14:22 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/1 "2015-06-18T14:22:11Z")

</div>

I got a complaint this morning that a user was getting repeat notifications overnight - it just started in the last 24 hours. I have been monitoring mandrill, and now see that it’s the same 4 users who are getting lots of repeat emails from a bunch of topics that were contributed to in this time period. How can I troubleshoot this and stop it from happening?

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月18日 17:08 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/2 "2015-06-18T17:08:19Z")

</div>

Ugh - this is still happening. Every hour or two a repeat notification is being sent out to the same 4 people, and not always for the same post.

So far it seems to be for posts added on June 17th, so within the last 24 hours. I did not do a discourse update yesterday, though did the day before. I just updated again now so am at latest v1.4.0.beta2 +65.

Meanwhile, I also got a report that some people did not get notified of a post in a category they are watching. This caused problems because we had to cancel an important meeting because the agenda did not get circulated. Looking in mandrill, it appears the notification was only emailed out to 3 people but only one of them says they got it.

---

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [2015年六月18日 20:58 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/3 "2015-06-18T20:58:28Z")

</div>

Not sure if it’s related bug…

> [@Duplicate notifications for likes?](https://meta.discourse.org/t/duplicate-notifications-for-likes/30183):
>
> I’ve seen multiple notifications for “like” on a post here on meta: [image] Note the two arrows on the left indicate likes for the same post - where usually you only get one. Also note the “solved” plugin notification in between (arrow on right) - perhaps it’s related?

---

<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:** [2015年六月18日 21:03 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/4 "2015-06-18T21:03:49Z")

</div>

Is the title of the thread changing at all?

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月18日 21:11 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/5 "2015-06-18T21:11:18Z")

</div>

nope - it has nothing to do with titles of the thread it seems.

now it appears to have stopped since I did the last update this morning. Bizarro.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月19日 03:28 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/6 "2015-06-19T03:28:29Z")

</div>

and nope again - the problem is back. I wonder if it has something to do with this error in sidekiq - it is 4 errors (matching 4 users) and they are happening at 3 hour intervals (matching time intervals I see in mailchimp).

I will kill these processes and see what happens. If anyone has insights I’d love to hear them. Thanks in advance in everlasting gratitude. ☀

 ![](https://global.discourse-cdn.com/meta/original/3X/c/2/c2ccd2693d53ec71c7a7f1dd671f0e3522139e27.png)

---

<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:** [2015年六月19日 04:06 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/7 "2015-06-19T04:06:58Z")

</div>

What language are you using, and is this latest code or close to it? Looks like bad translations. Do those users have a different personal locale selected?

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月19日 04:26 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/8 "2015-06-19T04:26:05Z")

</div>

yes it’s the latest code or close to it (updated this morning).

interesting about the locales - we have customized how we handle selecting locale so it can be done via wordpress, so perhaps there’s the rub. Will investigate right now!

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月19日 12:39 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/9 "2015-06-19T12:39:53Z")

</div>

could someone help me with a command to identify which users have that locale 49 which appears to be causing problems so it can be changed?

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2015年六月19日 15:03 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/10 "2015-06-19T15:03:21Z")

</div>

I imagine it’s coming from WordPress. But the the locale Preference drop-down has

```plaintext
<li role="presentation" class="select2-results-dept-0 select2-result select2-result-selectable">
<div role="option" id="select2-result-label-49" class="select2-result-label">
<span class="select2-match"></span>
ko
</div>
</li>

```

Is “ko” likely to be a possible choice for these members?

---

<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:** [2015年六月19日 15:17 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/11 "2015-06-19T15:17:43Z")

</div>

‘ko’ is valid and means Korean.

@tobiaseigen I think `SELECT username FROM users WHERE locale = '49';` should work.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年六月19日 16:46 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/12 "2015-06-19T16:46:32Z")

</div>

Cool - thanks for sharing that snippet. I found the user who had that weird 49 locale, and then changed it to en, and reran the dead jobs that were throwing the error. The jobs ran without complaint. So this appears to be resolved.

However, the user with the bad locale was not one of the four users getting repeat notifications of posts though he was supposed to get notified about a meeting agenda that didn’t get sent.

I will update my discourse instance again and test everything out again. Cross fingers that getting these tasks to run solves it but I don’t know enough about it to be sure.

ps - for future reference, thanks to @elberet I was able to connect to pg via console:

[https://meta.discourse.org/t/how-to-connect-to-pg-database-in-console-in-discourse-installation/18389/2?u=tobiaseigen](https://meta.discourse.org/t/how-to-connect-to-pg-database-in-console-in-discourse-installation/18389/2)

---

<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:** [2016年一月23日 09:15 UTC](https://meta.discourse.org/t/discourse-sending-4-users-many-repeat-notifications-of-new-posts/30168/13 "2016-01-23T09:15:57Z")

</div>


