more G-Labs products

Author Topic: Issues on Pi  (Read 18913 times)

February 06, 2014, 07:02:32 PM
Read 18913 times

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Hi ... in the last 4/5 days I've had to restart the homegenie service twice - this never happened in the months before. I would attribute these (due to the timeline) to the latest update (version 1.00 beta r327) as it's only after this update they this happened.

Basically - hg stops responding ... the browser never returns a page till eventually it gives up. First time this happened I restarted the Pi, 2nd time I restarted the hg service - in both cases all was back to normal.

Is there any log I can provide to help you identify if anything's wrong?

February 06, 2014, 07:09:48 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Did you notice if it starts hanging after using the Android client?
I had this issue too a couple of times. Are you using latest hgvSD card image or from a manual installation?

February 06, 2014, 08:28:29 PM
Reply #2

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Hmn .... yes actually - both cases happened after I switched to using app rather than web-interface.

As for version - I had made a clean install using HomeGenie_1_00_beta_r324_raspi-armhf-4GB - and then updated via interface.

February 07, 2014, 08:03:27 AM
Reply #3

jjuel15

  • *
  • Information
  • Newbie
  • Posts: 11
I am having the same problem, and it could as well be after using the Android app (I'll test that tomorrow).

As I see it, its only the web interface that stops working, i have some C# code writing to a log, and it continues to run after the web interface has stopped.

I saw this problem first in  r326 and on 6.2.2014 I installed r327, and had the problem shortly after.

February 08, 2014, 05:39:16 PM
Reply #4

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
I can temporarily create a cron job to restart hg once a day ... but I would like it to keep the state of modules as it was before restart ... is this possible?

February 08, 2014, 05:58:52 PM
Reply #5

jjuel15

  • *
  • Information
  • Newbie
  • Posts: 11
I've done a little testing. I dont think this is coursed (directly) by the Android app. I have changed the Ip of the app to be sure i doesnt run i background. After restart of the Homegenie service the web interface functions for some time (less than an hour), within max 1½ hour it stopped responding, or actually the web in it self functions but it dont interact with the background.
Restarting service makes everything work again, but for less than 1½ hour.

Hope this will help debuging.

Configuration: Running on SD card image distributed with r327, downloaded 5-2-2014, only change is adding ftp-service (vftp).
« Last Edit: February 09, 2014, 08:42:25 AM by jjuel15 »

February 08, 2014, 06:02:59 PM
Reply #6

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Mine is not that bad ... it lasts even 2 days w/o problems.

I'm not sure what's causing it ... i know it started with the latest update & after I started using the android app - but these could simply be coincidences! Before that I was using HG for months w/o ever restarting it or the rpi!

February 08, 2014, 06:24:20 PM
Reply #7

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi guys,

I'm releasing an update for you to test in a couple of hours or so.

   - MIG: new WebServiceGateway with support for HTTPS (ssl)
   - NetHelper: added support for ssl and custom port number to MailService
   - XTenLib: added transceived house codes settings for CM15 interface
   - added fibaro rgbw app and widget (contributed by DaniMail)

it will be a tgz for manual upgrade.

February 08, 2014, 06:25:43 PM
Reply #8

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
What configuration are you running?

g.

I've done a little testing. I dont think this is coursed (directly) by the Android app. I have changed the Ip of the app to be sure i doesnt run i background. After restart of the Homegenie service the web interface functions for some time (less than an hour), within max 1½ hour it stopped responding, or actually the web in it self functions but it dont interact with the background.
Restarting service makes everything work again, but for less than 1½ hour.

Hope this will help debuging.

February 08, 2014, 10:26:45 PM
Reply #9

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I'm attacching a partial update, though it's not completed yet.
Ssl it's not working on Raspberry Pi and I'm trying to find out the reason.

In the meanwhile, would be of great help if you can test it to see if the web hang issue is fixed.


 

February 09, 2014, 08:43:52 AM
Reply #10

jjuel15

  • *
  • Information
  • Newbie
  • Posts: 11
What configuration are you running?

g.

I've done a little testing. I dont think this is coursed (directly) by the Android app. I have changed the Ip of the app to be sure i doesnt run i background. After restart of the Homegenie service the web interface functions for some time (less than an hour), within max 1½ hour it stopped responding, or actually the web in it self functions but it dont interact with the background.
Restarting service makes everything work again, but for less than 1½ hour.

Hope this will help debuging.

Configuration: Running on SD card image distributed with r327, downloaded 5-2-2014, only change is adding ftp-service (vftp).

February 09, 2014, 10:14:01 AM
Reply #11

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
I'm attacching a partial update, though it's not completed yet.
Ssl it's not working on Raspberry Pi and I'm trying to find out the reason.

In the meanwhile, would be of great help if you can test it to see if the web hang issue is fixed.

I'm assuming I just replace files on raspberry?

February 09, 2014, 03:28:27 PM
Reply #12

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I decided to give up for now on this issue, since I am not able to reproduce it (it just happened once to me) and since most of users are running hg smoothly.
I also switched back the old webservice code in current development trunk. So this patch won't be available in the next release.
Btw HG source code is available to everyone, so I'm expecting that some other user able to reproduce this issue and able to dig in the source code might give us the solution =)




February 09, 2014, 03:51:39 PM
Reply #13

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
I decided to give up for now on this issue, since I am not able to reproduce it (it just happened once to me) and since most of users are running hg smoothly.
I also switched back the old webservice code in current development trunk. So this patch won't be available in the next release.
Btw HG source code is available to everyone, so I'm expecting that some other user able to reproduce this issue and able to dig in the source code might give us the solution =)

Is there a way to restart hg and keep module status?

February 09, 2014, 04:12:59 PM
Reply #14

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Well!!! this is really weird... I just opened the android client and the web interface hung!! =)

This is a "good" news since I could find out the possible reason for it and just applied a fix.
All http request were processed synchronously (using HttpListener.GetContext())! This was old code in MIG.WebServiceGateway.
I update it to process request asynchronously by using BeginGetContext instead.
Beside a slightly performance improvement, I am confident that the bug was caused by too close concurrent calls to the GetContext.
I will be stress testing hg web server with lot of concurrent calls and see what happen.
Anyway this fix will be present in next release.

Etienne: should be possible restart HG and keep modules status by sending a -SIGINT signal. That way HG will save status and quit gently.