Question

Mattermost marketplace keeps returning 502 a few minutes after running

Posted May 26, 2020 202 views
NginxUbuntuLet's Encrypt

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?

1 comment
  • As I’m researching further, I find that when I

    tail -30 /var/log/nginx/error.log

    I get a bunch of

    *14 connect() failed (111: Connection refused) while connecting to upstream

    And when I try to curl that I get the same:

    curl: (7) Failed to connect to localhost port 8065: Connection refused

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.

×
1 answer

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

Submit an Answer