Summary
Not able to get push notifications working using TPNS
Steps to reproduce
Server configured for TPNS using Google Play / iOS apps, users configured for push notifications. Send a user a direct message or mention, push notification never received. Check log and see push error i/o timeout
Expected behavior
User should receive push notification on mobile
Observed behavior
User never receives push notification. Log shows server attempted to send push notification, but error shows i/o timeout
{"level":"error","ts":1528326990.5882158,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=83h3ac3ump8btmx5tu3iew697y SessionId=ascgyw3hktf5mnhyrpq3dgtcsr message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"83h3ac3ump8btmx5tu3iew697y"}
Other notes
I can curl http://push-test.mattermost.com
from the server and receive back <html><body>Mattermost Push Proxy</body></html>
, but when I ping push-test.mattermost.com
it just times out
Edit
What OS and version is the Mattermost server installed?
Ubuntu 16.04
What is your Mattermost server version?
4.10.1
Are you experiencing the issues with the browser webapp, if so which one?
n/a
Are you experiencing the issues with the Mattermost Desktop App, if so what version and OS?
n/a
Are you experiencing the issues with the Mattermost Mobile App, if so what version and OS?
Android v1.8.0 (Build 101) as well as iOS
Can you send a snippet of the Mattermost server logs around the time of the incident?
{"level":"error","ts":1528377906.7466958,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=97cs51ui7pyx983drb68m7f8xw SessionId=f4iwoef5ajryxjxnho7frjreba message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"97cs51ui7pyx983drb68m7f8xw"}
{"level":"error","ts":1528377988.0946994,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=97cs51ui7pyx983drb68m7f8xw SessionId=f4iwoef5ajryxjxnho7frjreba message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"97cs51ui7pyx983drb68m7f8xw"}
{"level":"error","ts":1528378622.523168,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=66cetriqz7nidxdczawd8h4nse SessionId=un56qp7ftintprpwypgm1pxm6h message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"66cetriqz7nidxdczawd8h4nse"}
{"level":"error","ts":1528378632.5719802,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=66cetriqz7nidxdczawd8h4nse SessionId=un56qp7ftintprpwypgm1pxm6h message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"66cetriqz7nidxdczawd8h4nse"}
{"level":"error","ts":1528378641.2676554,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=nwnaeexaepy9dji7e5495xofbw SessionId=prndz4m55trbuyd73rgwjb87cr message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"nwnaeexaepy9dji7e5495xofbw"}
{"level":"error","ts":1528378641.7068503,"caller":"app/notification.go:767","msg":"Device push reported as error for UserId=66cetriqz7nidxdczawd8h4nse SessionId=un56qp7ftintprpwypgm1pxm6h message=Post http://push-test.mattermost.com/api/v1/send_push: dial tcp: i/o timeout","user_id":"66cetriqz7nidxdczawd8h4nse"}
Are you running Mattermost in a container and/or using container orchestration?
No container
Link to debug log
https://drive.google.com/open?id=1vV9t5c4wL1hmTQL6jYLnCYjrBoR4o0RE