more G-Labs products

Author Topic: Event Stream always disconnect  (Read 1506 times)

October 24, 2015, 09:13:18 PM
Read 1506 times

DavZero

  • **
  • Information
  • Jr. Member
  • Posts: 48
On a raspberry pi 2, I have a problem with HG.
The Event stream always disconnect when Event append.
I've try with HG 496, HG497 and HG498 and it's the same for all.

In the new HG498, we could see a log, this is a part of this file :
Code: [Select]
"2015-10-24 21:07:45.4900 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [ERROR: Input string was not in the correct format]"
"2015-10-24 21:07:45.5905 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [CLOSED AFTER 15,472 min.]"
"2015-10-24 21:07:45.6111 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [OPEN]"
"2015-10-24 21:07:47.0316 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie.Automation/90/Control.ArmAway//"
"2015-10-24 21:07:47.0270 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Status.Level 1"
"2015-10-24 21:07:47.0290 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [ERROR: Input string was not in the correct format]"
"2015-10-24 21:07:47.1297 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [CLOSED AFTER 0,025 min.]"
"2015-10-24 21:07:47.1379 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [OPEN]"
"2015-10-24 21:07:49.1820 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie.Automation/90/Control.ArmHome//"
"2015-10-24 21:07:49.1783 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Status.Level 1"
"2015-10-24 21:07:49.2808 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [CLOSED AFTER 0,036 min.]"
"2015-10-24 21:07:49.1803 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [ERROR: Input string was not in the correct format]"
"2015-10-24 21:07:49.2960 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [OPEN]"
"2015-10-24 21:07:50.3943 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie.Automation/90/Control.ArmAway//"
"2015-10-24 21:07:50.3710 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Status.Level 1"
"2015-10-24 21:07:50.6845 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie/Config/Modules.Get/HomeAutomation.HomeGenie.Automation/90/"
"2015-10-24 21:07:50.6903 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /hg/html/images/halt.png"
"2015-10-24 21:07:52.8537 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie.Automation/90/Control.Disarm//"
"2015-10-24 21:07:52.8507 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Status.Level 0"
"2015-10-24 21:07:52.8523 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [ERROR: Input string was not in the correct format]"
"2015-10-24 21:07:52.8523 Info HomeAutomation.HomeGenie.Automation 90 Automation Program HomeGenie.SecurityArmed Disarmed"
"2015-10-24 21:07:52.9529 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [CLOSED AFTER 0,061 min.]"
"2015-10-24 21:07:52.9680 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [OPEN]"
"2015-10-24 21:07:54.8787 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /api/HomeAutomation.HomeGenie.Automation/90/Control.Disarm//"
"2015-10-24 21:07:54.8742 Info HomeAutomation.HomeGenie.Automation 90 Automation Program Status.Level 0"
"2015-10-24 21:07:54.8769 Info HomeAutomation.HomeGenie.Automation 90 Automation Program HomeGenie.SecurityArmed Disarmed"
"2015-10-24 21:07:54.8760 Info WebServiceGateway 192.168.0.1 HTTP GET 200 /events [ERROR: Input string was not in "

This log eppend when I play with the alarm widget. Most of the time, I click and the popup "Homegenie Event Stream Connect" appear and nothing else.
It seems that it's du to the error GET   200 /events [ERROR: Input string was not in the correct format]" but I don't know how to correct it?

Note that in HG496, the error appear just after the installation and a restart of the pi solve the problem but in HG497 and HG498, the error always append.

October 24, 2015, 11:08:20 PM
Reply #1

DavZero

  • **
  • Information
  • Jr. Member
  • Posts: 48
I Think I've found the cause of the problem.
I'm a french so I put my rasbperry in this langage.

To test, I've put my rapsberry in english and reboot it. After that, the error disappear and HG seems to works correctly.

So it's not a critical bug but if you have some time to investigate on it, it would be good.

Thanks. (note that it's probalby caused by the decimal separator I think)

October 25, 2015, 10:27:21 AM
Reply #2

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
I got same issue, for correct that you have to destroy the homegenie folder and make a new instal and restore your backup. I am french so and it solve my problem.

November 01, 2015, 05:54:08 PM
Reply #3

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I have this issue and have performed a full uninstall as suggested.  The only thing I have not done is delete the HG directory though it is empty (except for my log folder).  If I delete everything that HG installs, why would I need to delete the root directory?  I can do it, but I'd have to set up my log path again.  It's linked to my Windows machine, so I'd rather not do that though it's not a huge issue I suppose.  Just curious why removing that folder when it's empty seems to make a difference.

November 02, 2015, 07:08:55 PM
Reply #4

DavZero

  • **
  • Information
  • Jr. Member
  • Posts: 48
Sorry I haven't test the solution of @dani  :-[ because set the language of my raspberry OS to english solve the problem for me.
I will try it as soon as I need to put it in french again.


November 02, 2015, 07:59:06 PM
Reply #5

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
I only see the disconnect message when I first connect to the Web GUI or when I've restarted HG from another interface (console, a different browser, etc).  It's not a big issue for me, so no worries.  I was just adding that I noticed this in case another point was needed for tracking.