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!

Jon

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";

from https://github.com/mattermost/platform/blob/master/doc/install/Production-Ubuntu.md

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

/etc/nginx/sites-available/mattermost

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;
proxy_pass http://10.10.10.2:8065;
}
}

change 10.10.10.2 to your IP