We have moved at community.getvera.com

Author Topic: Vera Alerts messages 'stuck' in the system  (Read 2451 times)

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Vera Alerts messages 'stuck' in the system
« on: February 25, 2014, 03:19:42 pm »
I have had a few cases now that notifications had not been sent. I know they are working as the have been sent before. So to test i manually triggered a device with notifications attached (which has sent notifications before), nothing goes through to the Android Vera Alerts. I changed a few things in the Vera Alerts device but unrelated to these notifications (i set up email notifications), and all of a sudden i get about 12 notifications in one hit, timestamp actual time, but they had been triggered 10 minutes before, and these were the notifications i was waiting for. Is this normal ? Most of the time (but not always) they come through more or less immediately

Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera Alerts messages 'stuck' in the system
« Reply #1 on: February 25, 2014, 04:02:14 pm »
Could be GCM related or hitting the quota for the Vera alerts server which isn't uncommon considering it's close to the end of the month.

- Garrett


Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Vera Alerts messages 'stuck' in the system
« Reply #2 on: February 25, 2014, 06:08:04 pm »
There are no quotas or limits ...

It is related to how often your phone checks in with the Google Servers.
You might have this in some battery saving mode where it minimizes network connectivity time.


Offline garrettwp

  • Master Member
  • *******
  • Posts: 6371
  • Karma: +227/-128
  • Vera 3, Lite, ISY994
Re: Vera Alerts messages 'stuck' in the system
« Reply #3 on: February 25, 2014, 11:08:59 pm »
Sorry Richard, I thought there was a bandwidth limit.

- Garrett


Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Vera Alerts messages 'stuck' in the system
« Reply #4 on: February 26, 2014, 05:54:57 am »
I dont think i am on any battery saving mode, i checked my phone and cannot see any of these options enabled. And every night at 2.15 i get the Vera startup message, that is always on time. The weird thing is i clicked on my phone device (i have away and at home both enabled for notification), nothing happened on Vera Alerts. Then my wife left the house, and as soon as her phone jumped from at home to present i had a notification. 10 minutes later i had the notification for my phone. Very strange.
Normally i wouldnt really care that much, but i use tasker and autolocation to tell Vera when we are out or in. That command sometimes does not go through (although confirmed as response ok in authomation). So i have Vera send a notification to my phone when the device has switched. And tasker resend the command until the device has switched. Now that got my phone into a constant loop yesterday as the confirmation never came back.... And my phone kept saying 'Mike is home' every 3 seconds and did not stop... caused a few giggles though

Offline MLabuda

  • Sr. Newbie
  • *
  • Posts: 36
  • Karma: +0/-2
Re: Vera Alerts messages 'stuck' in the system
« Reply #5 on: June 03, 2014, 01:36:13 pm »
I'm having a similar issue today, and I can't seem to figure out why.

Yesterday everything seemed to work fine but today no GCM messages are going thru to my phone, even simple test messages.  SMTP notifications still work fine.  I've reinstalled the Android app on my phone, I've restarted my phone, unregistered and re-registered, restarted Vera, pretty much everything but the messages seem to be trapped on the server and not making it to my phone.

Is there anything else I can try to troubleshoot the problem?  I've tried with my phone on WiFi and 4G, and still no dice.  The log seems to show no errors:

Code: [Select]
08 06/03/14 13:13:10.703 JobHandler_LuaUPnP::HandleActionRequest device: 72 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x2e44e680>
08 06/03/14 13:13:10.703 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=72 <0x2e44e680>
08 06/03/14 13:13:10.703 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:richardgreen:serviceId:VeraAlert1 <0x2e44e680>
08 06/03/14 13:13:10.703 JobHandler_LuaUPnP::HandleActionRequest argument action=SendAlert <0x2e44e680>
08 06/03/14 13:13:10.704 JobHandler_LuaUPnP::HandleActionRequest argument Message=TEST GCM4 <0x2e44e680>
08 06/03/14 13:13:10.704 JobHandler_LuaUPnP::HandleActionRequest argument Recipients=Galaxy-S3 <0x2e44e680>
08 06/03/14 13:13:10.704 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.5380434026010334 <0x2e44e680>
50 06/03/14 13:13:10.706 luup_log:72: VeraAlert:72:SendAlert:Msg:TEST GCM4 <0x2aeda000>
50 06/03/14 13:13:10.706 luup_log:72: VeraAlert:72:ExpandRecipients:Checking:Galaxy-S3 <0x2aeda000>
50 06/03/14 13:13:10.706 luup_log:72: VeraAlert:72:ExpandRecipients:Adding Requested Profile <0x2aeda000>
50 06/03/14 13:13:10.707 luup_log:72: VeraAlert:72:SendAlert:Sending to:Galaxy-S3 <0x2aeda000>
50 06/03/14 13:13:10.708 luup_log:72: VeraAlert:72:VeraAlertsSend:url:http://veraalertsexchange.appspot.com/SendAlert?msg=TEST%20GCM4&recipient=<unique_ID_removed>
50 06/03/14 13:13:11.099 luup_log:72: VeraAlert:72:VeraAlertsSend:Return:200 <0x2aeda000>

Any help is greatly appreciated.

Thanks,
Mark

EDIT:  After further testing it seems that the issue I'm having is on my Galaxy S3.  For whatever reason it cannot receive GCM messages anymore.  I downloaded an app to test this and apparently that is the problem.  I added my Nexus tablet to use GCM and it works fine so there is no problem with Vera Alerts at all.

EDIT2:  I realize this ended up being an Android issue rather than a Vera Alerts issues, but in case anyone else runs into a similar problem as me, my solution turned out to be removing and re-adding my Google account on my phone.  This reestablished my GCM ID and then all the "stuck" alerts immediately flooded to my phone.
« Last Edit: June 03, 2014, 05:42:21 pm by MLabuda »

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Vera Alerts messages 'stuck' in the system
« Reply #6 on: June 03, 2014, 04:14:07 pm »
I still have not been able to find the problem. I can see that the messages are being sent from Vera Alerts device, but sometimes they do not arrive at all, they just 'disappear' in nirvana. This happens at differe3nt places, i always check to see if i have 3G coverage and that never is the problem. I occasionally have it in my house too, where i have WiFi coverage. It can be very frustrating when you know you should have received a notification, but it has not arrived. You check, and it haas been sent, just never arrives on the Android phone (I use a Samsung S4 on 4.4.2)
In theroy my setup is working 100%, but because of lost messages i am down to about 80 to 85% reliability which is a shame. I do not think it is the Vera alerts device, as i can see that a message has been sent, and i can see the event has happened. I do not think it is the Android app either, i have the impression the messages get lost somewhere in between. There are other occasions where it takes a long time (10 minutes or so) for the message to arrive, which is another reason i suspect it is lost or held up on the way from Vera to the app.

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: Vera Alerts messages 'stuck' in the system
« Reply #7 on: June 03, 2014, 04:16:18 pm »
Any message about exceeding max profiles?

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: Vera Alerts messages 'stuck' in the system
« Reply #8 on: June 03, 2014, 05:09:00 pm »
No, nothing about exceeding profiles. I have 2 profiles only, and have a licensed copy. I do not have a huge number of notifications either, somewhere between 10 and 20 per day. But it seems most of the failed messages are in the afternoon or evening.