# \[SOLVED\] Starting Mattermost Automatically

**URL:** <https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922>\
**Category:** Troubleshooting\
**Created:** [October 5, 2017, 6:36am UTC](https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922 "2017-10-05T06:36:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eicecek](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@eicecek](https://forum.mattermost.com/u/eicecek)\
**Post date:** [October 5, 2017, 6:36am UTC](https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922/1 "2017-10-05T06:36:13Z")

</div>

_Ubuntu 16.04_  
_postgresql_  
_Mattermost 4.2.0_  
_NginX_  
is my system. I complated the this [guide](https://docs.mattermost.com/install/install-ubuntu-1604.html#installing-ubuntu-server-16-04-lts) but Mattermost don’t start automaticly. It just start after `sudo -u mattermost ./platform` and if I close my ssh connection, I’ll see 504 Gateway Time-out.  
Thx

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [October 9, 2017, 7:22am UTC](https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922/2 "2017-10-09T07:22:16Z")

</div>

Hello @eicecek,

Thanks for your feedback,

The `mattermost-platform` repo was recently split into `mattermost-server` and `mattermost-webapp` repositories. I’m not sure whether this has anything to do with your command failing with `sudo -u mattermost ./platform` ?

Maybe [this documentation](https://docs.mattermost.com/install/install-ubuntu-1604.html#installing-postgresql-database-server) will be helpful?

---

<div class="post-metadata">

**Author:** ![wambacher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/wambacher/32/1057_2.png) [@wambacher](https://forum.mattermost.com/u/wambacher)\
**Post date:** [October 9, 2017, 11:46am UTC](https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922/3 "2017-10-09T11:46:02Z")

</div>

Did you follow “Setup Mattermost to use systemd for starting and stopping.” ???

after doing that, i don’t have any problems (same environment!).

- start at boot will work,
- _sudo systemctl service mattermost start/stop/status_ is working too.

and try to get it working without nginx at first.

walter

---

<div class="post-metadata">

**Author:** ![eicecek](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@eicecek](https://forum.mattermost.com/u/eicecek)\
**Post date:** [October 12, 2017, 10:15am UTC](https://forum.mattermost.com/t/solved-starting-mattermost-automatically/3922/4 "2017-10-12T10:15:22Z")

</div>

I guess I skipped something without paying attention. Now, I have different problems 🙂 I’ll open another question, thanx for help.
