Push Notifications Work Only Intermittently

For feature requests, please see: https://mattermost.com/suggestions/.

For troubleshooting questions, please post in the following format:

Summary
I am hosting a mattermost instance installed via omnibus and my push notifications only work intermittently.

Steps to reproduce
I’m running Mattermost 10.0.0

Expected behavior
I turned push notifications on and set the push notification server to https://push-test.mattermost.com. I noticed I would only receive push notifications a quarter of the time or so. After reviewing many of the articles on here, I followed a few of the steps. One specific test may give some insight. I did a “curl -vLk https://push-test.mattermost.com” and I received a TLS error of which I have provided below. When my notifications randomly work 25% of the time, the exact same curl command will produce a normal successful output of " ```

Mattermost Push Proxy ```"

Observed behavior
What did you see happen? Please include relevant error messages and/or screenshots.

"timestamp":"2024-10-08 20:25:41.709 Z","level":"error","msg":"Failed to send to push proxy","caller":"app/notification_push.go:188","logSource":"notifications","type":"push","status":"not_sent","reason":"push_proxy_send_error","ack_id":"837fw7peyjf67enywgsp3gndmo","push_type":"clear","user_id":"6o84h3684jd8jyjy3wm3cttpta","device_id":"517b719c95fe3454b39faa427709fbacd1638c02e3915072dc9d075d0638c9e0","error":"Post \"https://push-test.mattermost.com/api/v1/send_push\": tls: first record does not look like a TLS handshake"}

Hi Yikes! Thanks for sharing these detailed steps and error logs. It sounds like there might be a TLS issue with the push notification server. I recommend reviewing the Push Notifications setup guide and ensuring the Mattermost Push Proxy (MPP) is properly configured. Let us know if you continue to have issues, and we’ll be happy to help troubleshoot further!