# Failed to execute action \[LCunrRXlStS-vH4o05YY8w\_elasticsearch\_nodes/send\_email\_to\_admin\] java.lang.IllegalArgumentException: no accounts of type \[email\] configured. Please set up an account using the \[xpack.notification.email\] settings

**URL:** <https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [April 3, 2019, 6:13pm UTC](https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260 "2019-04-03T18:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkank](https://avatars.discourse-cdn.com/v4/letter/v/43a26b/32.png) [@vkank](https://discuss.elastic.co/u/vkank)\
**Post date:** [April 3, 2019, 6:13pm UTC](https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260/1 "2019-04-03T18:13:39Z")

</div>

It says, no accounts of type [email] configured. Please set up an account using the [xpack.notification.email] settings  
I tried adding the information but it closes.

[2019-04-03T11:08:54,349][INFO][o.e.n.Node] [-mQT\_6c] started  
[2019-04-03T11:08:54,859][INFO][o.e.c.s.ClusterSettings] [-mQT\_6c] updating [xpack.monitoring.collection.enabled] from [false] to [true]  
[2019-04-03T11:08:56,616][WARN][o.e.x.s.a.s.m.NativeRoleMappingStore] [-mQT\_6c] Failed to clear cache for realms []  
[2019-04-03T11:08:56,663][INFO][o.e.l.LicenseService] [-mQT\_6c] license [7c0c10ff-40ec-4dc6-8e50-88ca87acfcae] mode [trial] - valid  
[2019-04-03T11:08:56,676][INFO][o.e.g.GatewayService] [-mQT\_6c] recovered [22] indices into cluster\_state  
[2019-04-03T11:08:58,234][INFO][o.e.x.w.WatcherService] [-mQT\_6c] reloading watcher, reason [new local watcher shard allocation ids], cancelled [0] queued tasks  
[2019-04-03T11:09:05,853][INFO][o.e.c.r.a.AllocationService] [-mQT\_6c] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[kibana\_sample\_data\_ecommerce][0], [.kibana\_1][0]] ...]).  
[2019-04-03T11:09:59,166][ERROR][o.e.x.w.a.e.ExecutableEmailAction] [-mQT\_6c] failed to execute action [LCunrRXlStS-vH4o05YY8w\_elasticsearch\_nodes/send\_email\_to\_admin]  
java.lang.IllegalArgumentException: no accounts of type [email] configured. Please set up an account using the [xpack.notification.email] settings  
at org.elasticsearch.xpack.watcher.notification.NotificationService.getAccount(NotificationService.java:62) ~[?:?]  
at org.elasticsearch.xpack.watcher.notification.email.EmailService.send(EmailService.java:140) ~[?:?]  
at org.elasticsearch.xpack.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:72) ~[?:?]  
at org.elasticsearch.xpack.core.watcher.actions.ActionWrapper.execute(ActionWrapper.java:144) ~[x-pack-core-6.5.2.jar:6.5.2]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner(ExecutionService.java:455) ~[x-pack-watcher-6.5.2.jar:6.5.2]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute(ExecutionService.java:295) ~[x-pack-watcher-6.5.2.jar:6.5.2]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.lambda$executeAsync$5(ExecutionService.java:395) ~[x-pack-watcher-6.5.2.jar:6.5.2]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:544) [x-pack-watcher-6.5.2.jar:6.5.2]  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.5.2.jar:6.5.2]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0\_191]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0\_191]  
at java.lang.Thread.run(Thread.java:748) [?:1.8.0\_191]  
^C[2019-04-03T11:10:45,740][INFO][o.e.x.m.j.p.NativeController] [-mQT\_6c] Native controller process has stopped - no new native processes can be started  
[2019-04-03T11:10:45,741][INFO][o.e.n.Node] [-mQT\_6c] stopping ...  
[2019-04-03T11:10:45,757][INFO][o.e.x.w.WatcherService] [-mQT\_6c] stopping watch service, reason [shutdown initiated]  
[2019-04-03T11:10:46,763][INFO][o.e.n.Node] [-mQT\_6c] stopped  
[2019-04-03T11:10:46,763][INFO][o.e.n.Node] [-mQT\_6c] closing ...  
[2019-04-03T11:10:46,776][INFO][o.e.n.Node] [-mQT\_6c] closed

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [April 4, 2019, 8:10am UTC](https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260/2 "2019-04-04T08:10:31Z")

</div>

Hi,

Can you post your configuration of the email account? Our config looks like this:

> ```
> xpack.notification.email.account:
> exchange_account:
> profile: outlook
> email_defaults:
> from: email@company.com
> smtp:
> auth: false
> starttls.enable: false
> host: mail.company.com
> port: 25
> 
> ```

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 5, 2019, 8:41am UTC](https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260/3 "2019-04-05T08:41:54Z")

</div>

also make sure the information is available on all nodes (and the nodes are restarted), if you update the YAML file. Alternatively you could also use the cluster update settings API.

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 3, 2019, 8:42am UTC](https://discuss.elastic.co/t/failed-to-execute-action-lcunrrxlsts-vh4o05yy8w-elasticsearch-nodes-send-email-to-admin-java-lang-illegalargumentexception-no-accounts-of-type-email-configured-please-set-up-an-account-using-the-xpack-notification-email-settings/175260/4 "2019-05-03T08:42:01Z")

</div>

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