# Service mattermost not working

**URL:** <https://forum.mattermost.com/t/service-mattermost-not-working/2856>\
**Category:** Troubleshooting\
**Created:** [February 6, 2017, 6:06am UTC](https://forum.mattermost.com/t/service-mattermost-not-working/2856 "2017-02-06T06:06:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorih](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@rorih](https://forum.mattermost.com/u/rorih)\
**Post date:** [February 6, 2017, 6:06am UTC](https://forum.mattermost.com/t/service-mattermost-not-working/2856/1 "2017-02-06T06:06:02Z")

</div>

we use mattermost 3.6. At a random time server stops responding and nginx gives 502 error. Service nginx is running. Service mattermost is running, but not working. The problem is solved by restarting service mattermost. I would like to have a more stable service mattermost.

---

<div class="post-metadata">

**Author:** ![doncar](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@doncar](https://forum.mattermost.com/u/doncar)\
**Post date:** [February 9, 2017, 5:21pm UTC](https://forum.mattermost.com/t/service-mattermost-not-working/2856/2 "2017-02-09T17:21:21Z")

</div>

Before restarting you should probably check the logs for errors

```
tail -100 /opt/mattermost/log/mattermost.log

```

The log location will depend on the directory where you installed it

---

<div class="post-metadata">

**Author:** ![elias](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@elias](https://forum.mattermost.com/u/elias)\
**Post date:** [February 9, 2017, 8:01pm UTC](https://forum.mattermost.com/t/service-mattermost-not-working/2856/3 "2017-02-09T20:01:35Z")

</div>

Did you check your ulimits?
