more G-Labs products

Author Topic: Issues on Pi  (Read 18913 times)

February 15, 2014, 11:07:51 AM
Reply #30

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Stop hg, replace MIG.dll and restart.
Here it is.

Cheers,
g.

.... got the failure again just now! I replaced the MIG.dll file when you posted it (13th) and worked fine right up till a few mins ago. Tried to connect from android app or browser - nothing.

:(

February 22, 2014, 09:28:08 AM
Reply #31

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Assuming that HG is the only mono application running in the system:

Code: [Select]

sudo killall -s SIGINT mono


if you update this in the /etc/init.d/homegenie script, then you can call

Code: [Select]

sudo /etc/init.d/homegenie stop


I am updating this in the homegenie script too, so that will terminate gently.

Hi ... was this feature (keeping status of stuff on restart) implemented in the latest version? Or should I modify the homegenie script?

February 22, 2014, 02:34:52 PM
Reply #32

Gene

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

no it was not that. The status of the modules is reset at startup by HG itself as shown in the code:

http://sourceforge.net/p/homegenie/code/HEAD/tree/trunk/HomeGenie/Service/HomeGenieService.cs#l1827

That was done to prevent scripts to fire up at startup from previously stored parameter values that in most cases is not a wanted behavior.
I will be adding a flag in the maintenance menu, so the user can select the wanted behavior.

Cheers,
g.

March 14, 2014, 12:50:05 AM
Reply #33

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
I have Homegenie running on a raspberry (v345) and everything appears to work well, except after a leaving the PI running for a hour or so without using it, it locks up. When this happens i am unable to connect to it over the network via the web interface and the android app is no longer able to connect to the PI .. although i can still ping it's IP address and get a response.

I have an X10 interface (CM15) and a Z-wave usb adapter connected, if that makes any difference...

Any idea what could be causing this?

Rich

March 16, 2014, 12:47:05 AM
Reply #34

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
I have noticed something else that might explain the hanging of hg ..

Since i have upgraded from 345 to 350, the android client no longer works, but the web interface is fine. It does not appear to lock up anymore so im wondering if it was the Android client that was causing the server to hang?

March 17, 2014, 02:15:38 PM
Reply #35

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
In r351 I've been trying to figure out what the problem could possibly be and made some optimization.
Let me know if this release is working any better.

g.

March 17, 2014, 09:30:39 PM
Reply #36

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
I have upgraded to 351 and the updated version of the android app. Everything now appears to be working well, so it looks like you might have solved the issue..

I'll keep an eye on the web service to see if it stops working again, but it's looking good so far! :-)

Thanks gene

March 18, 2014, 02:15:21 PM
Reply #37

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Well..  r351 is much better, but it still hasn't completely solved the issue ...

With 350 my web service would stop working after about an hour or so. Now with 351 it appears to say up much longer (several hours at least), but when i attempted to connect to the web service this morning (after it being inactive overnight) it had stopped again. I can ssh into the raspberry pi and restart the service, so it is only the web service that is affected.

March 18, 2014, 10:57:00 PM
Reply #38

miket

  • **
  • Information
  • Jr. Member
  • Posts: 40
Are you able to check the log file?  I wonder if this is related to the sgen-os-posix.c issue


March 19, 2014, 03:29:29 AM
Reply #39

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Where is the log file located?

After a bit more use of r351, i've notied that the web service does still stop responding after a while, although it's usually more like 3 or 4 hours rather than 1 or 1.5 hours with r350, but it is a little different. When r351 fails the android client will no longer connect, but the web interface does sometimes still respond, but pages are incomplete, e.g. you can get to the main menu, but the "Control" page appears but has no controls on it!

March 19, 2014, 05:14:41 AM
Reply #40

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Are you sure that's not just the browser caching content?  I found that mine would do that sometimes when I was switching between a different HA software and HG.  It would load the wrong page unless I hit refresh after the wrong page loaded.  I believe there is a setting in Firefox that can override this, but I haven't tested to verify it actually keeps this from happening.

March 19, 2014, 03:05:00 PM
Reply #41

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
It's not the browser caching the pages..

It's just happened again - failed after about 2 hours. I can still get to the web interface and this time the control page loads and has all of the controls on it, but nothing works!

The android client is unable to connect to the server.

Restarting homegenie service from ssh gets everything working again. Seems to last about 2 hours now before it fails again.

March 19, 2014, 05:10:40 PM
Reply #42

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Another 2 hours (almost exactly).. and it's down again.

This time web service is still running and i can get to the main menu but the control option is greyed out. The android client wont connect at all. I can get to the configure/ groups and modules screen, but no modules displayed.

Restarted the server and everything back to normal again...

It looks as though there is some kind of issue with the web service but it doesn't always cause it to stop completely..

March 19, 2014, 07:06:23 PM
Reply #43

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
What is the reported revision number in the about popup?

g.

March 20, 2014, 02:55:11 PM
Reply #44

RichieC

  • ***
  • Information
  • Full Member
  • Posts: 67
Gene,

The version reported in the about popup is 1.00 Beta r351