Upgrading Breaks Push Notifications

Have you verified that your reverse proxy configuration and WebSocket configuration is correct and functioning properly?

I’ve posted the conf file here and the previous commenters have suggested it’s correct, although i think this is likely where this issue is.

I’m noticing that you don’t seem to have any proxy configuration given for the websocket, am I missing the section with the web socket proxy setup, or is it not there?

location ~ /api/v[0-9]+/(users/)?websocket$ {

        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        client_max_body_size 50M;
        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_buffers 256 16k;
        proxy_buffer_size 16k;
        client_body_timeout 60;
        send_timeout 300;
        lingering_timeout 5;
        proxy_connect_timeout 90;
        proxy_send_timeout 300;
        proxy_read_timeout 90s;
        proxy_pass http://backend;
}

Is that what you’re referring to?

I believe so, yes. I compared the two, and the only difference between the official reference outline and what you provided is the extra line, which is the blank second line.

I finally had a little time again so I went ahead and built a new instance but this time I’m keeping everytihng on a single box. Instead of having MySQL on a dedicated box, i’m just having the mattermost server also host the MySQL instance.

For the most part, they work now. However, the badge count still is inconsistent. I’m noticing a pattern finally though. Our oldest channel is called ConversationStreet and every time i’ve rebuilt, moved, or anything else I’ve always kept that name. What I’ve noticed is if no one messages me in the ConversationStreet channel but then i get messaged in the other channels, the count will be accurate. Once someone messages in the ConversationStreet channel then it breaks it again until something else is the first response.

I’ll do a more in-dept look at this now that I’m seeing a pattern

Alright sounds good, I’ll be interested to hear what you find!