Report this

What is the reason for this report?

Mattermost marketplace keeps returning 502 a few minutes after running

Posted on May 26, 2020

I’ve set up the Mattermost droplet from the marketplace now multiple times by:

  1. Creating droplet
  2. Pointing domain to ip address
  3. SSH-ing into the box and going through the setup stages

This results to Mattermost working perfectly fine for a few minutes, I can set things up and use everything.

Then after a few minutes it only comes up with the error page:

502 Bad Gateway nginx/1.14.0 (Ubuntu)

What can I do about this?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

Turns out Mattermost had turned itself off, I used sudo systemctl start mattermost.service to restart the server, hopefully this holds.

Hello there,

The issue is most likely related to resource usage on the droplet causing the mattermost service to timeout or eventually “die”.

You can add SWAP space on the droplet in order to prevent further issues.

https://www.digitalocean.com/community/tutorial_collections/how-to-add-swap-space

Also examining the logs and confirm that the issue is connected with the resources on the droplet. The Nginx error log and the syslog will be a good point to start.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.