Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mattermost.service directly goes into failed state #1953

cambiph opened this issue Jan 22, 2016 · 2 comments


None yet
2 participants
Copy link

commented Jan 22, 2016

Hey guys,

I am having quite some trouble with having mattermost start automatically via systemd.
I am running mattermost on RHEL 7 and I followed the guide step by step (skipped the nginx step because there is no need for that now).
I can run mattermost via /opt/mattermost/bin/platform without issues but when I try

sudo systemctl start mattermost

The service doesn't seem to start and

sudo systemctl status mattermost


mattermost.service - Mattermost
   Loaded: loaded (/etc/systemd/system/mattermost.service; enabled)
   Active: failed (Result: exit-code) since Fri 2016-01-22 13:17:13 CET; 6s ago
  Process: 8635 ExecStart=/opt/mattermost/bin/platform (code=exited, status=2)
 Main PID: 8635 (code=exited, status=2)

platform[8635]: /usr/local/go/src/os/signal/signal_unix.go:20
platform[8635]: created by os/signal.init.1
platform[8635]: /usr/local/go/src/os/signal/signal_unix.go:28 +0x37
platform[8635]: goroutine 6 [runnable]:
platform[8635]:, 0x7f3212ad81e8, 0xc820022010)
platform[8635]: /go/src/
platform[8635]: created by
platform[8635]: /go/src/ +0x6e
systemd[1]: mattermost.service: main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: Unit mattermost.service entered failed state.

If you need additional info, please ask, not sure if this is sufficient.
Thank you in advance!



This comment has been minimized.

Copy link

commented Jan 22, 2016

Thanks @cambiph for the pull request!

Per the file displayed when you created this pull request, we need to add you to the list of approved contributors for the Mattermost project.

Please help complete the Mattermost contribution license agreement?

This is a standard procedure for many open source projects. Your form should be processed within 24 hours and reviewers for your pull request will be able to proceed.

Please let us know if you have any questions.

We are very happy to have you join our growing community!


This comment has been minimized.

Copy link

commented Jan 22, 2016

Ok, the problem has been solved.
I accidentally started mattermost once with another user.
A logfile was created /opt/mattermost/logs/mattermost.log with that user.
Systemd starts the service as mattermost user and cannot write to the logfile, resulting in a failure state.

@cambiph cambiph closed this Jan 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.