# Mattermost-push-proxy. Test notification using curl works, but DMs are not triggering notifs

**URL:** <https://forum.mattermost.com/t/mattermost-push-proxy-test-notification-using-curl-works-but-dms-are-not-triggering-notifs/9956>\
**Category:** Mobile Apps\
**Created:** [June 11, 2020, 11:42am UTC](https://forum.mattermost.com/t/mattermost-push-proxy-test-notification-using-curl-works-but-dms-are-not-triggering-notifs/9956 "2020-06-11T11:42:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosine99](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/cosine99/32/3897_2.png) [@cosine99](https://forum.mattermost.com/u/cosine99)\
**Post date:** [June 11, 2020, 11:42am UTC](https://forum.mattermost.com/t/mattermost-push-proxy-test-notification-using-curl-works-but-dms-are-not-triggering-notifs/9956/1 "2020-06-11T11:42:33Z")

</div>

Hello.  
Having trouble with setting up mattermost-push-proxy service.  
I’m receiving notifications as expected when I test my notification service using curl (according to [https://developers.mattermost.com/contribute/more-info/mobile/push-notifications/service/](https://developers.mattermost.com/contribute/mobile/push-notifications/service/#test-the-mattermost-push-notification-service)).  
However, notifications are not getting triggered on DMs and mentions.

### Services versions:

[mattermost-push-proxy](https://github.com/mattermost/mattermost-push-proxy): 5.21  
[mattermost-server](https://github.com/mattermost/mattermost-server): 5.23.0  
[mattermost-mobile](https://github.com/mattermost/mattermost-mobile): 1.31.2  
[mattermost-webapp](https://github.com/mattermost/mattermost-webapp): 5.23.0

Here is my systemd unit file. Service running on Ubuntu 18.04.

> ```
> [Unit]
> 
> Description=Mattermost Push Proxy
> 
> [Service]
> 
> StartLimitInterval=200
> 
> StartLimitBurst=5
> 
> WorkingDirectory=/home/ubuntu/mattermost-push-proxy
> 
> User=mattermost-push-proxy
> 
> ExecStart=/home/ubuntu/mattermost-push-proxy/bin/mattermost-push-proxy | logger
> 
> [Install]
> 
> WantedBy=multi-user.target
> 
> ```

Below are the logs for push-proxy service

> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Loading /home/ubuntu/mattermost-push-proxy/config/mattermost-push-proxy.json
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Push proxy server is initializing…
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Initializing apple notification server for type=apple
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 ERROR Apple push notifications not configured. Missing ApplePushCertPrivate. for type=apple
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Initializing apple notification server for type=apple\_rn
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 ERROR Apple push notifications not configured. Missing ApplePushCertPrivate. for type=apple\_rn
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Initializing Android notification server for type=android
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Initializing Android notification server for type=android\_rn
> 
> Jun 11 11:19:04 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:04 INFO Server is listening on :8066
> 
> Jun 11 11:19:44 rocketchat mattermost-push-proxy[45621]: 2020/06/11 11:19:44 INFO Sending android push notification for device=android\_rn and type=message

The last log is from testing the service using curl (according to [https://developers.mattermost.com/contribute/more-info/mobile/push-notifications/service/](https://developers.mattermost.com/contribute/mobile/push-notifications/service/#test-the-mattermost-push-notification-service)). I am also receiving the test notification on my android device.  
However, I’m not receiving any notifs from DMs or mentions. I’ve enabled notifications in account settings for all activity.

Below is the log from mattermost.log

> {“level”:“error”,“ts”:1591874402.2690194,“caller”:“mlog/log.go:175”,“msg”:“An error occurred sending the receipt delivery to the push notification service.”,“path”:“/api/v4/notifications/ack”,“request\_id”:“ukup1qu1qfyjbb9gkgx7x7jfrc”,“ip\_addr”:“59.99.200.114”,“user\_id”:“1hnqc5ghoibnbfcgos4y6mibuc”,“method”:“POST”,“err\_where”:“pushNotificationAck”,“http\_code”:500,“err\_details”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“error”,“ts”:1591874406.7174678,“caller”:“mlog/log.go:175”,“msg”:“An error occurred sending the receipt delivery to the push notification service.”,“path”:“/api/v4/notifications/ack”,“request\_id”:“yweh8s7tc3dybmzapn5ax8rnah”,“ip\_addr”:“59.99.200.114”,“user\_id”:“1hnqc5ghoibnbfcgos4y6mibuc”,“method”:“POST”,“err\_where”:“pushNotificationAck”,“http\_code”:500,“err\_details”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“error”,“ts”:1591874412.0932093,“caller”:“mlog/log.go:175”,“msg”:“An error occurred sending the receipt delivery to the push notification service.”,“path”:“/api/v4/notifications/ack”,“request\_id”:“csjz3i7hfpn9uqc5435fjaphhe”,“ip\_addr”:“59.99.200.114”,“user\_id”:“1hnqc5ghoibnbfcgos4y6mibuc”,“method”:“POST”,“err\_where”:“pushNotificationAck”,“http\_code”:500,“err\_details”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“error”,“ts”:1591874418.3994908,“caller”:“mlog/log.go:175”,“msg”:“An error occurred sending the receipt delivery to the push notification service.”,“path”:“/api/v4/notifications/ack”,“request\_id”:“c47xbe45dbr53c85kdjp969xqh”,“ip\_addr”:“59.99.200.114”,“user\_id”:“1hnqc5ghoibnbfcgos4y6mibuc”,“method”:“POST”,“err\_where”:“pushNotificationAck”,“http\_code”:500,“err\_details”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“error”,“ts”:1591874440.5887835,“caller”:“mlog/log.go:175”,“msg”:“An error occurred sending the receipt delivery to the push notification service.”,“path”:“/api/v4/notifications/ack”,“request\_id”:“uzs8nbboy3gsdkc464gwwg1jxc”,“ip\_addr”:“59.99.200.114”,“user\_id”:“1hnqc5ghoibnbfcgos4y6mibuc”,“method”:“POST”,“err\_where”:“pushNotificationAck”,“http\_code”:500,“err\_details”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/ack%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}

Below is the log from notifications.log

> {“level”:“info”,“ts”:1591874724.7103631,“caller”:“app/notification\_push.go:310”,“msg”:“Notification will be sent”,“logSource”:“notifications”,“ackId”:“ktcwypig7jg7td9wf5du7na8cr”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“status”:“Prepared to send”}
> 
> {“level”:“error”,“ts”:1591874727.7107913,“caller”:“app/notification\_push.go:106”,“msg”:“Notification error”,“logSource”:“notifications”,“ackId”:“ktcwypig7jg7td9wf5du7na8cr”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“channelId”:“f7opni4ir3rsdgu85qk85fxbza”,“deviceId”:“elVi1rRAUL4:APA91bGzQxXBoVk04UcW2n6MjK\_8WFyRykN8T7w837LmnDqZTW288AC-0m3iWHrJPuxqB1kBar3v81bfgtG98XH\_5FMVpLqEgcbX5c6urLZVfZKMHbDR64R7L1\_K7njqcNRZRAQ4W-yw”,“status”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send\_push\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send_push%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“info”,“ts”:1591874727.710909,“caller”:“app/notification\_push.go:310”,“msg”:“Notification will be sent”,“logSource”:“notifications”,“ackId”:“m9ozfnzu1fyrdpc86ke7ozz71h”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“status”:“Prepared to send”}
> 
> {“level”:“error”,“ts”:1591874730.7113843,“caller”:“app/notification\_push.go:106”,“msg”:“Notification error”,“logSource”:“notifications”,“ackId”:“m9ozfnzu1fyrdpc86ke7ozz71h”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“channelId”:“f7opni4ir3rsdgu85qk85fxbza”,“deviceId”:“fLOIW6BFmQU:APA91bG0GnXLh9myublX\_AEU8U2YPi8eJL1IpZpsFfezGYmGxY4e0nLx1Q0GE2vWuqBTv7oBSv0r5V-U1xFw6CKb-fTo1CZGBeFaj3N188-PS7oUrnpXaHG66d2IbU2tb-OfwLgzHoUN”,“status”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send\_push\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send_push%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“info”,“ts”:1591874730.711515,“caller”:“app/notification\_push.go:310”,“msg”:“Notification will be sent”,“logSource”:“notifications”,“ackId”:“chbyj41n43fhfcy19rgofzkm5w”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“status”:“Prepared to send”}
> 
> {“level”:“error”,“ts”:1591874733.711911,“caller”:“app/notification\_push.go:106”,“msg”:“Notification error”,“logSource”:“notifications”,“ackId”:“chbyj41n43fhfcy19rgofzkm5w”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“channelId”:“f7opni4ir3rsdgu85qk85fxbza”,“deviceId”:“dEH7GScjxPk:APA91bEL33rTZRZ2cMdw8nSN10-ZL3s\_o3Cf4ZhSnxfscB4kQyAVdFy\_NFsp9uEn\_qPNRHgFDyBWbphwOXSVJ9yCVu2S9hkD2mzFx5kZAp3qnZjpwRAtJ-rGaL3V2s3KmnvANdlvJ7CQ”,“status”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send\_push\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send_push%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“info”,“ts”:1591874733.7120166,“caller”:“app/notification\_push.go:310”,“msg”:“Notification will be sent”,“logSource”:“notifications”,“ackId”:“j5cjy5m7winnzkiixizanhzc6r”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“status”:“Prepared to send”}
> 
> {“level”:“error”,“ts”:1591874736.712317,“caller”:“app/notification\_push.go:106”,“msg”:“Notification error”,“logSource”:“notifications”,“ackId”:“j5cjy5m7winnzkiixizanhzc6r”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“channelId”:“f7opni4ir3rsdgu85qk85fxbza”,“deviceId”:“dEM42smJkbI:APA91bEW7jUg83Osl3Irn\_e7c2Q8w2HadW\_gAeG6wpRVu0FyvnnZDoKbXrNL3nrtXkfFT6OUPzHCavzRD1iNMhLYifxDVBB9Te2n3e4B\_GzTyRj9AAEA9X60Hmz2-EWOVEO215qFRXGK”,“status”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send\_push\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send_push%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}
> 
> {“level”:“info”,“ts”:1591874736.7124076,“caller”:“app/notification\_push.go:310”,“msg”:“Notification will be sent”,“logSource”:“notifications”,“ackId”:“f31u3zh9hbdiiedy8tmzo61nxw”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“status”:“Prepared to send”}
> 
> {“level”:“error”,“ts”:1591874739.7128098,“caller”:“app/notification\_push.go:106”,“msg”:“Notification error”,“logSource”:“notifications”,“ackId”:“f31u3zh9hbdiiedy8tmzo61nxw”,“type”:“message”,“userId”:“a7uwmmwnyiy5dm3j4qjynne3bh”,“postId”:“ffwzk3b5r3y6me1u7iqeuf8jfh”,“channelId”:“f7opni4ir3rsdgu85qk85fxbza”,“deviceId”:“cLVZa0AUDrc:APA91bEqqsjK9K5c\_HyJnBwjDnyzTleXuq7TX6A-zW7ZVBB-TCJqwQ4upc8D2Nwrl7zUidZSkHdAJzdenYfgqb\_jN3R8i48Yt-hLeK0frjgtoD6CGeIXFFu\_TnVpAKxmCbJTOB6VZVFe”,“status”:“Post "[http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send\_push\](http://rocketchat.eastus.cloudapp.azure.com:8066/api/v1/send_push%5C)”: dial tcp 13.68.190.193:8066: i/o timeout"}

Below is the Push Notification Service configuration in my mattermost instance.

 ![Screenshot 2020-06-11 at 5.39.10 PM](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/a/a5ce3ce83d436153083fd34f09456775d31c9879.png)

Please kindly help.
