# Notification and connection issues with MM402

**URL:** <https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683>\
**Category:** Troubleshooting\
**Created:** [August 14, 2017, 7:26pm UTC](https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683 "2017-08-14T19:26:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boschma1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/boschma1/32/1487_2.png) [@boschma1](https://forum.mattermost.com/u/boschma1)\
**Post date:** [August 14, 2017, 7:26pm UTC](https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683/1 "2017-08-14T19:26:05Z")

</div>

#### Summary

Since my beginning with MM400, I encounter issues when receiving notifications on my iOS and other mobile devices. It seems to work after a reboot of the server, however a few hours later, no messages are sent out. In addition, I cannot relogin on my mobile devices. I receive I blank screen and after a few seconds: Loading Error - You may be offline or the MM server you are trying to connect to is experiencing problems.

#### Steps to reproduce

Using currently MM402 on Ubuntu (Microsoft Azure), I receive this in my log files over and over again:

```auto
[2017/08/13 18:24:32 UTC] [EROR] /api/v3/users/websocket:connect code=500 rid=9j43wc1hepbr9nhomcgbmwomor uid=wxeqb7pd5jfmupyibiz7afz6ie ip=xxx.xxx.xxx.xxx Failed to upgrade websocket connection [details:]
[2017/08/13 18:24:32 UTC] [EROR] websocket connect err: websocket: origin not allowed

```

What could be the issue here?

---

<div class="post-metadata">

**Author:** ![lfbrock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lfbrock/32/1901_2.png) [@lfbrock](https://forum.mattermost.com/u/lfbrock)\
**Post date:** [August 17, 2017, 1:51pm UTC](https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683/2 "2017-08-17T13:51:35Z")

</div>

Hi @boschma1 - are you using NGINX?

If so can you check the configuration settings mentioned here as a first step to see if that helps?

> **[mattermost/mattermost-mobile](https://github.com/mattermost/mattermost-mobile#i-see-a-connecting-bar-that-does-not-go-away)**
>
> mattermost-mobile - Next generation iOS and Android apps for Mattermost in React Native

---

<div class="post-metadata">

**Author:** ![boschma1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/boschma1/32/1487_2.png) [@boschma1](https://forum.mattermost.com/u/boschma1)\
**Post date:** [August 17, 2017, 3:46pm UTC](https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683/3 "2017-08-17T15:46:26Z")

</div>

Nope. I am using Ubuntu 16.04 here with MySQL and Apache.

---

<div class="post-metadata">

**Author:** ![lfbrock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lfbrock/32/1901_2.png) [@lfbrock](https://forum.mattermost.com/u/lfbrock)\
**Post date:** [August 18, 2017, 2:31pm UTC](https://forum.mattermost.com/t/notification-and-connection-issues-with-mm402/3683/4 "2017-08-18T14:31:17Z")

</div>

@boschma1 - can you check your SiteURL and AllowCorsFrom settings?

It seems like someone here was hitting a similar issue: [https://github.com/mattermost/mattermost-mobile/issues/813](https://github.com/mattermost/mattermost-mobile/issues/813)
