HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: martinren on June 24, 2016, 08:21:05 PM

Title: Server not responding
Post by: martinren on June 24, 2016, 08:21:05 PM
Hello everyone,

Some time ago I've been working in my home automation system with HomeGenie.
Almost from the beginning I have the same problem: The web server randomly fails to respond to the clients.

To be clearer, I recorded a video (https://youtu.be/NkMyL26s6o0 (https://youtu.be/NkMyL26s6o0)) which shows first, a Google Chrome trying to access the HomeGenies site, and on the right side of the screen you can see a Wireshark to monitor connections. As you can see, when I ask for an image, or for the entire site, it sometimes respond,and sometimes not. What is interesting, is that there is a “keep alive” packet on the connection, even when the server is not working Ok. Also, I permanently have the “Event stream” connect/disconnect message.

I have reinstalled the software on different computers, used different IP and Ports, and the result is the same: Sometimes it works, sometimes not.
Right now I'm using Windows 10 (Spanish).

Reviewing the Log of HomeGenie, nothing appears abnormal. I show a fragment:


2016-06-08 20:47:47.1557 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [OPEN]
2016-06-08 20:47:47.3119 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [CLOSED AFTER 0,156 seconds]
2016-06-08 20:47:48.2641 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [OPEN]
2016-06-08 20:47:48.2641 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   304 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [CLOSED AFTER 0,003 seconds]
2016-06-08 20:47:51.3647 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [OPEN]
2016-06-08 20:47:51.5053 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [CLOSED AFTER 0,14 seconds]
2016-06-08 20:47:52.4653 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   200 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [OPEN]
2016-06-08 20:47:52.4692 Info WebServiceGateway   xxx.xxx.xxx.xxx   HTTP   GET   304 /hg/html/pages/control/widgets/homegenie/generic/images/icons/radio_02.png [CLOSED AFTER 0,004 seconds]


Can anybody help me with this trouble, at least letting me know what test I can do to find the problem? Has anyone gone trough this?
Title: Re: Server not responding
Post by: martinren on July 01, 2016, 01:18:07 AM
Guys, is this happening just to me?

Could anyone please try loading the following image on your server, and reloading it a couple of times? Is the server always responding?

http://YOURHOMEGENIEIP:YOURHOMEGENIEPORT/hg/html/pages/control/widgets/homegenie/generic/images/icons/printer.png

In my case, the server responds one time every two queries
Title: Re: Server not responding
Post by: Michel on July 01, 2016, 12:53:02 PM
The image reloads every time.
Title: Re: Server not responding
Post by: Zen on July 02, 2016, 12:41:14 AM
The image has problem loading for me too. The issues with web server probably only affects people who runs Homegenie on Windows. I have to clear cache every other time to get homegenie to load.
Title: Re: Server not responding
Post by: julianlp on July 02, 2016, 09:22:00 PM
Same problem here.
I think it's a Chrome related problem. I've tried on IE and the issue doesn't seem to appear.
Title: Re: Server not responding
Post by: martinren on July 05, 2016, 02:09:02 PM
Same problem here.
I think it's a Chrome related problem. I've tried on IE and the issue doesn't seem to appear.


I have tried and you are right. The problem is mainly with Chrome.
Anyone running HG on a RPI or Linux could try the behaviour when loading the image from Chrome and Edge?
Title: Re: Server not responding
Post by: amselem on July 14, 2016, 11:52:12 PM
It's working for me with Win10 + Edge
Title: Re: Server not responding
Post by: julianlp on July 16, 2016, 12:18:15 AM
So, does anyone know if this is a confirmed bug? Should we report it somewhere?