# Sensu handler is not sending mails after Sensu updated to version 6

**URL:** <https://discourse.sensu.io/t/sensu-handler-is-not-sending-mails-after-sensu-updated-to-version-6/2046>\
**Category:** Sensu Go\
**Created:** [September 17, 2020, 8:10am UTC](https://discourse.sensu.io/t/sensu-handler-is-not-sending-mails-after-sensu-updated-to-version-6/2046 "2020-09-17T08:10:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masifpak](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@masifpak](https://discourse.sensu.io/u/masifpak)\
**Post date:** [September 17, 2020, 8:10am UTC](https://discourse.sensu.io/t/sensu-handler-is-not-sending-mails-after-sensu-updated-to-version-6/2046/1 "2020-09-17T08:10:44Z")

</div>

My sensu is updated from 5.20 to 6.0. Now there are 3 issues started.

1- Handler is not sending mails  
2- Sensu does not run using sensu use so force to run it using root.

Please guide to fix these issue.

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [September 17, 2020, 6:46pm UTC](https://discourse.sensu.io/t/sensu-handler-is-not-sending-mails-after-sensu-updated-to-version-6/2046/2 "2020-09-17T18:46:08Z")

</div>

Hey,

I’d have to see more information concerning the errors you are getting to be sure, but there are a couple of things you should look at that could be causing a problem.

Now that you have run the backend as root manually instead of sensu user, you likely have a file permissions issue in either the configured cache directory ( default on linux is /var/cache/sensu/sensu-backend) or in the configured state directory (default on linux: /var/lib/sensu/sensu-backend) [https://docs.sensu.io/sensu-go/latest/operations/maintain-sensu/troubleshoot/#permission-issues](https://docs.sensu.io/sensu-go/latest/operations/maintain-sensu/troubleshoot/#permission-issues)

if running as root works, but running as sensu user does not, first thing I do is check file permissions. Once file permissions are fixed, I run sensu-backend manually as sensu user and start trying to diagnose the errors I’m seeing and address them. When running manually I always do this

```auto
sudo -u sensu sensu-backend start <additional args here>

```

This will run sensu-backend as user sensu instead of root, just like the service init scripts do.

The troubleshooting guide is a useful reference for understanding errors: [https://docs.sensu.io/sensu-go/latest/operations/maintain-sensu/troubleshoot](https://docs.sensu.io/sensu-go/latest/operations/maintain-sensu/troubleshoot)

I hope this helps.
