# Mattermost.service failed

**URL:** <https://forum.mattermost.com/t/mattermost-service-failed/5585>\
**Category:** Troubleshooting\
**Created:** [August 20, 2018, 3:13pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585 "2018-08-20T15:13:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luphina](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Luphina](https://forum.mattermost.com/u/Luphina)\
**Post date:** [August 20, 2018, 3:13pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/1 "2018-08-20T15:13:04Z")

</div>

I try to install mattermost on my Server (ProLiant MicroServer Gen8, VmWare Esxi 6.0; Ubuntu 18.04). I use these Tutorials to install Mattermost on Ubuntu:

[https://idroot.net/linux/install-mattermost-ubuntu-18-04-lts/](https://idroot.net/linux/install-mattermost-ubuntu-18-04-lts/) and /tutorials/install-lamp-stack-ubuntu-18-04-lts/

If i use the command: “systemctl start mattermost.service” they get me this answer:

Job for mattermost.service failed because the control process exited with error code.  
See “systemctl status mattermost.service” and “journalctl -xe” for details.

If i’m looking at systemctl status mattermost.service, so they tell me this:  
● mattermost.service - Mattermost  
Loaded: loaded (/etc/systemd/system/mattermost.service; enabled; vendor preset: enabled)  
Active: activating (auto-restart) (Result: exit-code) since Mon 2018-08-20 15:06:06 UTC; 5s ago  
Process: 4146 ExecStart=/opt/mattermost/bin/mattermost (code=exited, status=217/USER)  
Main PID: 4146 (code=exited, status=217/USER)

Aug 20 15:06:06 mattermost systemd[4146]: mattermost.service: Failed at step USER spawning /opt/mattermost/bin/mattermost: No such process  
Aug 20 15:06:06 mattermost systemd[1]: mattermost.service: Main process exited, code=exited, status=217/USER  
Aug 20 15:06:06 mattermost systemd[1]: mattermost.service: Failed with result ‘exit-code’.  
Aug 20 15:06:06 mattermost systemd[1]: Failed to start Mattermost.

## If i’m looking at journalctl -xe, so they tell me this: – Unit mattermost.service has begun starting up. Aug 20 15:06:57 mattermost systemd[4155]: mattermost.service: Failed to determine user credentials: No such process Aug 20 15:06:57 mattermost systemd[4155]: mattermost.service: Failed at step USER spawning /opt/mattermost/bin/mattermost: No such process – Subject: Process /opt/mattermost/bin/mattermost could not be executed – Defined-By: systemd – Support: [http://www.ubuntu.com/support](http://www.ubuntu.com/support)

## – The process /opt/mattermost/bin/mattermost could not be executed and failed.

## – The error number returned by this process is 3. Aug 20 15:06:57 mattermost systemd[1]: mattermost.service: Main process exited, code=exited, status=217/USER Aug 20 15:06:57 mattermost systemd[1]: mattermost.service: Failed with result ‘exit-code’. Aug 20 15:06:57 mattermost systemd[1]: Failed to start Mattermost. – Subject: Unit mattermost.service has failed – Defined-By: systemd

## – Unit mattermost.service has failed.

– The result is RESULT.

I’m very confused, so I don’t know, why its not work.

Can someone help me pls? I don’t find the answer for my problem.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [August 20, 2018, 6:58pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/2 "2018-08-20T18:58:37Z")

</div>

Hi @Luphina, thank you for reaching out.

Here are some of my initial observations

- According to our docs we support Ubuntu 14.04 and Ubuntu 16.04: [https://docs.mattermost.com/install/requirements.html#mattermost-server-operating-system](https://docs.mattermost.com/install/requirements.html#mattermost-server-operating-system).
- Here are our docs on how to install each [https://docs.mattermost.com/install/install-ubuntu-1404.html](https://docs.mattermost.com/install/install-ubuntu-1404.html) and [https://docs.mattermost.com/install/install-ubuntu-1604.html](https://docs.mattermost.com/install/install-ubuntu-1604.html).

Would you be able to try the installation with one of these versions?

---

<div class="post-metadata">

**Author:** ![Luphina](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Luphina](https://forum.mattermost.com/u/Luphina)\
**Post date:** [August 21, 2018, 7:06am UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/3 "2018-08-21T07:06:43Z")

</div>

No, i’m use another Tutorial, cause i have Ubuntu 18.04.  
So i thought, that i cannot use the Tutorial on your page.

So can i install mattermost on Ubuntu 18.04 or are you only supporting Ubuntu 14.04 and 16.04?

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [August 21, 2018, 1:38pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/4 "2018-08-21T13:38:20Z")

</div>

Hi @Luphina, I found this Ubuntu 18.04 guide that seems more detailed than the one you linked above. E.g. it lists pre-requisites such as setting up Nginx and SSL certificate: [https://linuxize.com/post/how-to-deploy-mattermost-on-ubuntu-18-04/](https://linuxize.com/post/how-to-deploy-mattermost-on-ubuntu-18-04/).

Let me know if the guide is any better - if not, I’ll ask our developers for more help on this.

---

<div class="post-metadata">

**Author:** ![Luphina](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Luphina](https://forum.mattermost.com/u/Luphina)\
**Post date:** [August 22, 2018, 3:06pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/5 "2018-08-22T15:06:45Z")

</div>

Hey,

thank you for this tutorial. Mattermost are running now on Ubuntu 18.04. But i use Apache2 instead of Nginx.

So now i have other problems with the WebRTC.

I have the button for calls, but it always says “there was a problem connecting the video call”. I’m reading some topics, cause i don’t resolve it.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [August 22, 2018, 4:15pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/6 "2018-08-22T16:15:11Z")

</div>

Hi @Luphina,

Can you help take a look at our docs related to WebRTC: [https://docs.mattermost.com/deployment/webrtc.html](https://docs.mattermost.com/deployment/webrtc.html)?

Can you also help take a look at this thread for troubleshooting tips: [How to start WebRTC?](https://forum.mattermost.com/t/how-to-start-webrtc/5032).

Some tips include:

- adding this value to the config.json `"StunURI": "stun:stun.l.google.com:19302"` , without updating the Janus server or any code changes.
- setting the nat mapping in the janus cfg.

---

<div class="post-metadata">

**Author:** ![Luphina](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Luphina](https://forum.mattermost.com/u/Luphina)\
**Post date:** [August 23, 2018, 6:55am UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/7 "2018-08-23T06:55:58Z")

</div>

Hi @amy.blais

Yeah, i take this docs, but the WebRTC doesn’t work. I have adding this value to the config.json.  
I don’t know, where the mistake is.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [August 23, 2018, 3:20pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/8 "2018-08-23T15:20:44Z")

</div>

Hi @Luphina,

WebRTC is in beta and is unfortunately known to have some issues - can you help review this page and send us any logs / Console errors and any additional relevant details about your environment: [https://docs.mattermost.com/process/support.html](https://docs.mattermost.com/process/support.html)?

---

<div class="post-metadata">

**Author:** ![Luphina](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@Luphina](https://forum.mattermost.com/u/Luphina)\
**Post date:** [August 24, 2018, 11:39am UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/9 "2018-08-24T11:39:20Z")

</div>

Hi @amy.blais,

What OS and version is the Mattermost server installed? Ubuntu 18.04  
What is your Mattermost server version? 5.2  
Can you send a snippet of the Mattermost server logs around the time of the incident? No logs  
Are you running Mattermost in a container and/or using container orchestration? Docker  
Database Issues MySQL

Mattermost is running, i have only issues with webRTC. The Button to call with Member is available, but the connections failed.

Config.json

"ServiceSettings": {

"SiteURL": "",

"WebsocketURL": "",

"LicenseFileLocation": "",

"ListenAddress": ":8065",

"ConnectionSecurity": "",

"TLSCertFile": "",

"TLSKeyFile": "",

"UseLetsEncrypt": false,

"LetsEncryptCertificateCacheFile": "./config/letsencrypt.cache",

"Forward80To443": false,

"ReadTimeout": 300,

"WriteTimeout": 300,

"MaximumLoginAttempts": 10,

"GoroutineHealthThreshold": -1,

"GoogleDeveloperKey": "",

"EnableOAuthServiceProvider": false,

"EnableIncomingWebhooks": true,

"EnableOutgoingWebhooks": true,

"EnableCommands": true,

"EnableOnlyAdminIntegrations": true,

"EnablePostUsernameOverride": false,

"EnablePostIconOverride": false,

"EnableLinkPreviews": false,

"EnableTesting": false,

"EnableDeveloper": false,

"EnableSecurityFixAlert": true,

"EnableInsecureOutgoingConnections": true,

"AllowedUntrustedInternalConnections": "",

"EnableMultifactorAuthentication": false,

"EnforceMultifactorAuthentication": false,

"EnableUserAccessTokens": false,

"AllowCorsFrom": "",

"AllowCookiesForSubdomains": false,

"SessionLengthWebInDays": 30,

"SessionLengthMobileInDays": 30,

"SessionLengthSSOInDays": 30,

"SessionCacheInMinutes": 10,

"SessionIdleTimeoutInMinutes": 0,

"WebsocketSecurePort": 443,

"WebsocketPort": 80,

"WebserverMode": "gzip",

"EnableCustomEmoji": false,

"EnableEmojiPicker": true,

"EnableGifPicker": false,

"GfycatApiKey": "2\_KtH\_W5",

"GfycatApiSecret": "3wLVZPiswc3DnaiaFoLkDvB4X0IV6CpMkj4tf2inJRsBY6-FnkT08zGmppWFgeof",

"RestrictCustomEmojiCreation": "all",

"RestrictPostDelete": "all",

"AllowEditPost": "always",

"PostEditTimeLimit": -1,

"TimeBetweenUserTypingUpdatesMilliseconds": 5000,

"EnablePostSearch": true,

"EnableUserTypingMessages": true,

"EnableChannelViewedMessages": true,

"EnableUserStatuses": true,

"ExperimentalEnableAuthenticationTransfer": true,

"ClusterLogTimeoutMilliseconds": 2000,

Do you need more logs?

This is the message from Mattermost, if i call a member “There was a problem connecting the video call”

Console: Failed to load resource: the server responded with a status of 500 (Internal Server Error)  
If i open the …:8065/api/v4/webrtc/token: {“id”:“api.context.session\_expired.app\_error”,“message”:“Ungültige oder abgelaufene Sitzung, melden Sie sich erneut an.”,“detailed\_error”:"",“request\_id”:“5z4f8azb83fc3qrszcgkroqzcr”,“status\_code”:401}

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [August 27, 2018, 3:22pm UTC](https://forum.mattermost.com/t/mattermost-service-failed/5585/10 "2018-08-27T15:22:31Z")

</div>

Hi @Luphina!

One of our community member’s just posted some helpful tips here [Video/audio calls](https://forum.mattermost.com/t/video-audio-calls/5542/9) - let me know if any of the tips help?
