# Narrative Bot not responding due to Mailing List Mode

**URL:** https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737
**Category:** Bug
**Tags:** discobot
**Created:** [2017年六月1日 14:15 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737 "2017-06-01T14:15:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月1日 14:15 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/1 "2017-06-01T14:15:58Z")

</div>

I’m pretty certain this isn’t a bug but it’s driving me nuts. If I do the following I get no responses from the bot:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/5/b53dce2db56f1e1e9cbbc082be327a377b91994d.jpg)

I can verify that responding to the bot works for new users. There’s no issue there. But for some reason my admin account never triggers a reply from the bot. And I haven’t been able to locate an error anywhere in the console or in `/logs`.

I should also note that I have two other instances that I’ve tested this on and it works flawlessly. I’m simply at a loss for where to look next. Ideas?

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [2017年六月1日 14:34 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/2 "2017-06-01T14:34:01Z")

</div>

Guildbot? 🤓  
I assume you changed the name of the bot.  
Try re-name to discobot and try again

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月1日 14:50 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/3 "2017-06-01T14:50:06Z")

</div>

Well, that was certainly something I missed trying. But no dice. I changed it back, tried to trigger `display help`, and still no response.

---

<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: [2017年六月1日 18:18 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/4 "2017-06-01T18:18:34Z")

</div>

Not sure @tgxworld would need to weigh in. Could be the rename but that is supported.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [2017年六月1日 18:22 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/5 "2017-06-01T18:22:18Z")

</div>

Depending the version of Discourse/Narative Bot you are on, there was at one point a requirement of a rebuild for the rename to take effect. I know that requirement is no longer necessary, but maybe it was a timing thing and doing a rebuild would clear it up 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: [2017年六月1日 18:23 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/6 "2017-06-01T18:23:47Z")

</div>

stupid question - did you disable public replies?

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

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月1日 19:11 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/7 "2017-06-01T19:11:00Z")

</div>

> [@cpradio](#):
>
> at one point a requirement of a rebuild for the rename to take effect.

I was operating on that assumption originally. I didn’t realize until later that it wasn’t required if I was on latest first. So I made the change and then ran a rebuild. It didn’t make any difference.

> [@tobiaseigen](#):
>
> stupid question - did you disable public replies?

Good thing to check on for sure. 😉 I wish that had been it, but it’s not. Good call, though.

---

<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: [2017年六月1日 19:34 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/8 "2017-06-01T19:34:34Z")

</div>

If you did a bot rename on an old version you may have run into a bug; I suggest restarting the docker container to make sure all values are reloaded.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月1日 20:17 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/9 "2017-06-01T20:17:55Z")

</div>

Just tried a `stop app` and `start app`. No change there. Could there be a rate limiter involved here?

---

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [2017年六月1日 20:41 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/10 "2017-06-01T20:41:34Z")

</div>

I vaguely remember having had similar issues after renaming the bot and after some time (perhaps after I rebuilt?) it suddenly worked again. That was more than a month ago, though.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年六月2日 03:36 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/11 "2017-06-02T03:36:46Z")

</div>

There are a couple of things you can check.

What is the locale of the site/your user locale?  
Do someone rename the trigger in site settings text customizations?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月2日 11:13 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/12 "2017-06-02T11:13:24Z")

</div>

Locales are both English.

I’ve not touched any text customizations. I’m the only admin on [the site](https://productivityguild.com).

I did do a bit more digging and found a potential error that’s related. It didn’t seem relevant at the time and it still doesn’t add up to me why failing once would cause it to continue to fail. Either way, here’s the trace:

`Job exception: RateLimiter::LimitExceeded`

```plaintext
/var/www/discourse/lib/rate_limiter.rb:61:in `performed!'
/var/www/discourse/lib/rate_limiter/on_create_record.rb:42:in `block in rate_limit'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:446:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:446:in `block in make_lambda'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:92:in ` __run_callbacks__'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:778:in `_run_create_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/callbacks.rb:306:in `_create_record'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/timestamp.rb:57:in `_create_record'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/persistence.rb:504:in `create_or_update'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/callbacks.rb:302:in `block in create_or_update'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:117:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:505:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:92:in ` __run_callbacks__'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/callbacks.rb:302:in `create_or_update'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/persistence.rb:120:in `save'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/validations.rb:37:in `save'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/attribute_methods/dirty.rb:21:in `save'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:286:in `block in save'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:285:in `save'
/var/www/discourse/lib/post_creator.rb:430:in `save_post'
/var/www/discourse/lib/post_creator.rb:143:in `block in create'
/var/www/discourse/lib/distributed_mutex.rb:21:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:5:in `synchronize'
/var/www/discourse/lib/post_creator.rb:293:in `block in transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
/var/www/discourse/lib/post_creator.rb:287:in `transaction'
/var/www/discourse/lib/post_creator.rb:140:in `create'
/var/www/discourse/lib/post_creator.rb:182:in `create!'
/var/www/discourse/lib/post_creator.rb:209:in `create!'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/advanced_user_narrative.rb:119:in `init_tutorial_edit'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb:189:in `init_state'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb:49:in `block in input'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/advanced_user_narrative.rb:375:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:21:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:5:in `synchronize'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/advanced_user_narrative.rb:375:in `synchronize'
/var/www/discourse/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb:15:in `input'
/var/www/discourse/plugins/discourse-narrative-bot/jobs/narrative_init.rb:8:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/i18n-0.8.1/lib/i18n.rb:257:in `with_locale'
/var/www/discourse/plugins/discourse-narrative-bot/jobs/narrative_init.rb:7:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

```

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月2日 16:13 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/14 "2017-06-02T16:13:15Z")

</div>

Thinking about this a bit further, would it make sense to manually trigger the `NarrativeInit` job? That seems to be where the beginning of that trace develops.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年六月5日 01:31 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/15 "2017-06-05T01:31:36Z")

</div>

@joebuhlig That trace was super helpful 🙂 . Can you try again? I’ve deployed the following fix

[https://github.com/discourse/discourse/commit/418cb09713be53b7437c8b33a963365cef98dd36](https://github.com/discourse/discourse/commit/418cb09713be53b7437c8b33a963365cef98dd36)

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月5日 11:31 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/16 "2017-06-05T11:31:30Z")

</div>

Just gave it a try. No dice. 😕 I’m on [30f275](https://github.com/discourse/discourse/tree/30f275). Is there a log file somewhere I can run through to see what’s going on when the trigger phrase is used? That’s the only thing I can think of right now since there are no errors. I’ve tried numerous ways of reproducing this and can’t get it done.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年六月5日 11:42 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/17 "2017-06-05T11:42:39Z")

</div>

Hmm can you try to trigger a job manually? Is the site we’re talking about feverbee?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月5日 12:02 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/18 "2017-06-05T12:02:40Z")

</div>

Ok. Here’s what I did.

1. `enter app` and ran `Jobs.enqueue(:narrative_init, user_id: 1, klass:DiscourseNarrativeBot::NewUserNarrative.to_s)`
2. I received the welcome message from the bot but bookmarking the message does nothing.
3. I checked all my settings for the bot to make sure I didn’t miss something. Here’s what I have:  
 ![](https://global.discourse-cdn.com/meta/original/3X/2/d/2dceca740f037d59e04d18c557147ce528945cb9.jpg)
4. I managed to find the log files on the server but nothing stands out as odd to me.
5. No errors in console or /logs.

And the site in question is [productivityguild.com](https://productivityguild.com)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年六月5日 12:12 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/19 "2017-06-05T12:12:32Z")

</div>

Are you still the only user that is unable to interact with the bot? If not can you ensure that Sidekiq is running?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2017年六月5日 12:18 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/20 "2017-06-05T12:18:01Z")

</div>

It’s still just me. I can create a new user and it works fine. Sidekiq is running. That’s how I was able to manually trigger the job. 😉

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [2017年六月5日 12:20 UTC](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737/21 "2017-06-05T12:20:23Z")

</div>

Ah ha do you have mailing list mode enabled?

[下一頁](https://meta.discourse.org/t/narrative-bot-not-responding-due-to-mailing-list-mode/63737.md?page=2)
