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

**URL:** <https://forum.mattermost.com/t/nginx-1-4-6-ubuntu-504-gateway-time-out/1941>\
**Category:** Troubleshooting\
**Created:** [July 22, 2016, 1:47pm UTC](https://forum.mattermost.com/t/nginx-1-4-6-ubuntu-504-gateway-time-out/1941 "2016-07-22T13:47:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![crspeller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/crspeller/32/2605_2.png) [@crspeller](https://forum.mattermost.com/u/crspeller)\
**Post date:** [July 27, 2016, 12:16pm UTC](https://forum.mattermost.com/t/nginx-1-4-6-ubuntu-504-gateway-time-out/1941/2 "2016-07-27T12:16:47Z")

</div>

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.

---

_[View the full topic](https://forum.mattermost.com/t/nginx-1-4-6-ubuntu-504-gateway-time-out/1941)._
