more G-Labs products

Author Topic: Issues on Pi  (Read 18915 times)

February 09, 2014, 04:51:42 PM
Reply #15

bkenobi

  • *****
  • Information
  • Global Moderator
  • Posts: 1525
Perhaps that is the reason HG was throwing a bunch of errors to the console when I switch a large quantity of house codes without waiting for the "wait" spinner to stop?

February 09, 2014, 05:47:43 PM
Reply #16

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Great re. finding the bug :) ... will wait for next release then!

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

I'm not quite sure about how to do this? I normally restart HG by running sudo /etc/init.d/homegenie restart ... so what should I do before this command?

February 09, 2014, 06:18:12 PM
Reply #17

beller

  • *
  • Information
  • Newbie
  • Posts: 24


i had similar problems in past, that i have also today: http://sourceforge.net/p/homegenie/discussion/csharpscripting/thread/abadc8d6/

how i can schedule a reset of the board at a specific time (or more then  one) during the day ?

gene say to send SIGINT to mantain the status of HG... how ?

thanks

beller

February 09, 2014, 06:26:39 PM
Reply #18

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
how i can schedule a reset of the board at a specific time (or more then  one) during the day ?

You need to read about crontab ... you'll find lots of info on many sites.

gene say to send SIGINT to mantain the status of HG... how ?

That I don't know ... yet ;)

February 09, 2014, 06:35:57 PM
Reply #19

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.


« Last Edit: February 09, 2014, 06:45:58 PM by Gene »

February 11, 2014, 12:08:56 PM
Reply #20

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Please update to r329 and let me know if the issue is fixed. I am confident that it is.

Cheers,
g.

February 13, 2014, 08:48:17 AM
Reply #21

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
Please update to r329 and let me know if the issue is fixed. I am confident that it is.

Cheers,
g.

So ... been on 329 since launch... no issues till now. So as you say seems fixed! :)

Will let you know should it come back!

February 13, 2014, 12:42:24 PM
Reply #22

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
I'm sorry to say... that the bug is still haunting r329  :-
So I revised the WebServiceGateway again and found a stackoverflow post that gave the right hint for fixing.
Well off course I won't be saying it's fixed unless I do see HG running on raspi for a couple of months flawlessly  :)

Cheers,
g.

February 13, 2014, 12:44:17 PM
Reply #23

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
so this fix will be present on next official update?

February 13, 2014, 01:00:30 PM
Reply #24

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Yes, I'm testing it since yesterday. I'll let it run for a week before considering it fixed.
If some of you want to help beta-testing this I'll attach the MIG.dll here.

Cheers,
g.

February 13, 2014, 01:01:34 PM
Reply #25

Etienne

  • **
  • Information
  • Jr. Member
  • Posts: 40
yeah sure ... no problem for me ...

do i just replace dll on pi and restart?

February 13, 2014, 01:07:37 PM
Reply #26

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Stop hg, replace MIG.dll and restart.
Here it is.

Cheers,
g.


February 13, 2014, 05:03:56 PM
Reply #27

lancebooth

  • *
  • Information
  • Newbie
  • Posts: 6
I am going to test the fix. Currently, I am having to stop and restart the HomeGenie service a couple of times a day.

My configuration is r329 on a Raspberry Pi with an Aeon USB Z-Wave controller.

I'll let you know how the fix is working for me. The HomeGenie service only seems to hang when controlling devices. I am also running r329 as windows service in a development environment, without an Aeon controller, and it has never crashed.

Lance

February 14, 2014, 03:50:40 PM
Reply #28

lancebooth

  • *
  • Information
  • Newbie
  • Posts: 6
I had to stop and restart the HG service this morning to get it to respond. It was not completely hung up, just really, really sluggish and not responding to every command.

L

February 14, 2014, 06:02:11 PM
Reply #29

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
This is a different behavior from the one covered here.
Just a question: are you using z-wave polling?
The problem may be connected to it. If so try disabling and using nodes reporting facility in place of it.

Cheers,
g.