Mattermost, Inc.

Nginx/1.4.6 (Ubuntu) - 504 Gateway Time-out

I installed MatterMost (self-hosted slack-alternative) on an Ubuntu
14.0.4 server on an AWS free Tier box. After installing MatterMost, I
received a 504 Nginx error. The steps used are
listed in the links below to install and setup MatterMost. The first
link was used to install MatterMost on a AWS box running Ubuntu 14.0.4.
The second link was used when indicated in the first link.

After completely going through the tutorial, I received the following error (by using the URL or “curl” command):
504 Gateway Time-out
nginx/1.4.6 (Ubuntu)


https://docs.mattermost.com/install/prod-ubuntu.html

Any suggestions on how to fix it?

The 504 gateway timeout means that nginx can’t reach the Mattermost server.

Can you check that the Mattermost server is running and responding to requests by using curl http://localhost:8065 on the box running Mattermost?

If that doesn’t help you solve the problem, please post your nginx config and Mattermost logs.