more G-Labs products

Author Topic: Crash every few days  (Read 2522 times)

June 26, 2015, 02:49:01 AM
Read 2522 times

mikeH

  • **
  • Information
  • Jr. Member
  • Posts: 27
I've noticed that home genie will stop functioning after a few days (3-5).  I checked the console and didn't see anything obvious, but I did come a cross this

table ValuesHist has 6 columns but 7 values were supplied    Exception.StackTrace      at System.Data.SQLite.SQLite3.Prepare (System.Data.SQLite.SQLiteConnection cnn   System.String strSql   System.Data.SQLite.SQLiteStatement previous   UInt32 timeoutMS   System.String& strRemain) [0x00000] in <filename unknown>:0

2015-06-24T23:48:16.1263150-04:00    HomeAutomation.HomeGenie    Service.StatisticsLogger    SQLite error
 at System.Data.SQLite.SQLiteCommand.BuildNextCommand () [0x00000] in <filename unknown>:0            

            

June 27, 2015, 07:00:33 PM
Reply #1

mikeH

  • **
  • Information
  • Jr. Member
  • Posts: 27
I take it by the lack of posts that this is not normal and may be something specific to my installation.  I'm running Ubuntu 14.04 on a VM.  I've long suspected that it's a USB thing being dropped by my VM.  If I unplug and replug in the stick it seems to clear itself after a HG reset.

June 28, 2015, 04:44:46 PM
Reply #2

ahill44

  • *
  • Information
  • Newbie
  • Posts: 23
I had a similar issue, though I was never able to find anything useful in the logs.  My issue turned out to be the z-wave level poll script.

July 03, 2015, 07:29:07 PM
Reply #3

Peter1977

  • *
  • Information
  • Newbie
  • Posts: 24
recently homegenie on a rasppi crashed every few hours.
reinstalling homegenie and restoring my config solved the problem

July 03, 2015, 07:46:16 PM
Reply #4

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
MikeH:

The HomeGenie memory usage does not rise continually as the days go?

July 04, 2015, 03:46:49 AM
Reply #5

mikeH

  • **
  • Information
  • Jr. Member
  • Posts: 27
It looks like the USB stick is getting disconnected after about 2 days. I'm running on a VM so that could be a contributing factor.  I'm going to switch back to rPI and see how that works.  I've got a 1 and 2 that I can try it on.  Is anyone having USB issues with an rPI1?

Specifically the error I was getting is

cp210x ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
« Last Edit: July 04, 2015, 04:12:38 AM by mikeH »

July 04, 2015, 08:12:29 AM
Reply #6

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
I also run in virtual machines (Hyper-V). I use the "USB redirector" software. It share your USB device over ethernet.
Even my problem was that the USB extension was connected to a USB stick. And it did not receive enough power, and disconnected.

July 04, 2015, 09:11:36 AM
Reply #7

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Hi mikeh,

What is the power of your supply, it will be good with a raspPi and USB to use 1.2 or better 2 Amps.
With 1 Amp I got sometimes ethernet cable (20 meters) link failed when I put Aeonlabs ZStick 2 with my RPI1. With new power supply that's work. I have post already in another subject about that. The guy change its power supply and then no crash.

Cheers
Dani

July 18, 2015, 08:08:23 PM
Reply #8

mikeH

  • **
  • Information
  • Jr. Member
  • Posts: 27
I was running on a virtual machine.... So the current draw doesn't really apply.  While on vacation I moved it over to a Raspberry Pi and stuck it on a 1.6amp 5v power supply.  It was not functioning when I returned home eventhough the stick was still lit blue.  I unplugged the stick and plugged it back in and it resumed function.  While I believe it could certainly be power related, I haven't seen the draw from an RPI approach 1.5amps and it seems to be more of a software disconnect, possibly a driver error for the stick (an S2).  I'll try a fresh install and see what happens.

August 16, 2015, 03:48:47 PM
Reply #9

mikeH

  • **
  • Information
  • Jr. Member
  • Posts: 27
I'm still getting an "undiscovered" state every 3-10 days with HG.  Running on a RPi with r493 and a sufficient power supply (I've tried 3, so I don't think that's the cause), I get a condition where the blue light on the S2 stick will be lit, but no commands get through.  If I rediscover the ZWave nodes it usually clears up the error.  When that doesn't work, unplugging and plugging back in the Stick always seems to solve the issue.  I'm running the latest firmware on the stick as well.

Is anyone else seeing anything like this?  I've tried it on two different installations (VM and RPi) and while the periodicity is different the symptoms are very similar.