Mattermost AWS Install Issue

Hello. I’m having an issue with installing Mattermost on AWS. I have everything installed, however about a minute or two after I’m logged in, I get an error in the form of a blue banner on the top of the screen that says: “We cannot reach the Mattermost service. The service may be down or misconfigured. Please contact an administrator to make sure the WebSocket port is configured properly.”

Has anyone else run into this? It appears that everything is working appropriately, but nothing that I do gets rid of this blue banner. Thanks!


Looks like the websocket cannot connect. Basically the http port used needs to be able to upgrade to a websocket connection (http:// -> ws://). If you’re using amazon ELB then you need to allow tcp port 80 to connect to tcp port 8065. If you configured with nginx then you need something like below in the nginx config.

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";


or it maybe you AWS security group needs to allow tcp port 8065.

I was blocked too until I found out you need to input your server IP in this file


It looks like this

location / {
client_max_body_size 50M;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;

change to your IP