Failing to start


Mattermost is failing to start, it is hanging on Starting schedulers.

Steps to reproduce

I am on a fresh install of version 5.0 using mysql and have followed this doc for installing

Expected behavior

I am at the part where you run the command “sudo -u mattermost ./bin/mattermost” to test it starts just before you create the service file. Below is the output in terminal and it hangs on Starting schedulers.

Observed behavior

sudo -u mattermost ./bin/mattermost
{“level”:“info”,“ts”:1530094290.9359138,“caller”:“utils/i18n.go:83”,“msg”:“Loaded system translations for ‘en’ from ‘/opt/mattermost/i18n/en.json’”}
{“level”:“info”,“ts”:1530094290.936313,“caller”:“app/app.go:185”,“msg”:“Server is initializing…”}
{“level”:“info”,“ts”:1530094290.9386427,“caller”:“sqlstore/supplier.go:200”,“msg”:“Pinging SQL master database”}
{“level”:“info”,“ts”:1530094291.0066454,“caller”:“commands/server.go:81”,“msg”:“Current version is 5.0.0 (5.0.0/Fri Jun 15 15:17:50 UTC 2018/85a75526c7c03fca1d14a39cfb3f2638d98d3fe1/1f474e50582c2323c43b10932eb96878c8713b32)”}
{“level”:“info”,“ts”:1530094291.0067377,“caller”:“commands/server.go:82”,“msg”:“Enterprise Enabled: true”}
{“level”:“info”,“ts”:1530094291.0067637,“caller”:“commands/server.go:83”,“msg”:“Current working directory is /opt/mattermost”}
{“level”:“info”,“ts”:1530094291.0067935,“caller”:“commands/server.go:84”,“msg”:“Loaded config file from /opt/mattermost/config/config.json”}
{“level”:“info”,“ts”:1530094291.0069191,“caller”:“utils/file_backend_local.go:32”,“msg”:“Able to write files to local storage.”}
{“level”:“info”,“ts”:1530094291.0092864,“caller”:“app/license.go:44”,“msg”:“License key from required to unlock enterprise features.”}
{“level”:“info”,“ts”:1530094291.0100539,“caller”:“app/plugin.go:540”,“msg”:“Starting up plugins”}
{“level”:“info”,“ts”:1530094291.512637,“caller”:“app/plugin.go:208”,“msg”:“Activated plugin”,“plugin_id”:“jira”}
{“level”:“info”,“ts”:1530094291.512917,“caller”:“app/server.go:100”,“msg”:“Starting Server…”}
{“level”:“info”,“ts”:1530094291.5132153,“caller”:“app/server.go:139”,“msg”:“Server is listening on [::]:8065”}
{“level”:“info”,“ts”:1530094291.5219364,“caller”:“app/web_hub.go:67”,“msg”:“Starting 4 websocket hubs”}
{“level”:“info”,“ts”:1530094291.5274663,“caller”:“sqlstore/post_store.go:1256”,“msg”:“Post.Message supports at most 16383 characters (65535 bytes)”}
{“level”:“info”,“ts”:1530094291.561705,“caller”:“jobs/workers.go:62”,“msg”:“Starting workers”}
{“level”:“info”,“ts”:1530094291.562523,“caller”:“jobs/schedulers.go:66”,“msg”:“Starting schedulers.”}

Hi @kyle_entity! Thank you for reaching out.

As a first step, can you help check if you have read all special Notes throughout the doc that you referenced above. E.g. there is a special note about using MySQL / PostgreSQL.

I’m wondering if there is something outdated in the doc as another person just recently posted about a similar issue, which I’m also working on troubleshooting.

Could you also check whether this recent thread might help: Service Unit File Needs Updating after Upgrading to Mattermost 5.0.0

Hi @amy.blais :smile:

Yeah I have been scratching my head over this and have read and re-read this document so many times to make sure I hadn’t missed anything.

im wondering the same, that maybe there needs to be an update to the documentation.

I had a look at that thread but I’m not even at the point of creating the service yet, Mattermost itself just wont even start.


Hi @kyle_entity - I posted about this in the Peer-to-peer help in our build server and a conversation about this issue started - would you like to join our server and see if the conversation helps with this issue?

Running into this error as well. Ubuntu 14.04.5 (with LAMP), Mattermost 5.1.0.

Did you ever find a solution? @kyle_entity

Hi @Fallakin,

Here are the threads on our build server that you can follow where our devs and community members helped troubleshoot the issue:

Thanks @amy.blais!

This should help me out.