We have moved at community.getvera.com

Author Topic: Why my Vera reloads every day at same hour ?  (Read 6397 times)

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Using openHAB to minimize Vera reloads
« Reply #15 on: March 21, 2015, 12:09:53 pm »
I just disabled the automatic creation option in the alarm plugin. I will see tomorrow what will happen.

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Using openHAB to minimize Vera reloads
« Reply #16 on: March 21, 2015, 12:54:30 pm »
Here is my (very small) NetworkMonitor.log file.

Code: [Select]
02      03/21/15 15:48:02.771   Finished rotate logs <0x2b521460>
02      03/21/15 16:14:23.426   NetworkMonitor: CheckReport required handling <0x2b521460>
02      03/21/15 16:14:23.795   NetworkMonitor: CheckPortForward required handling <0x2b521460>
02      03/21/15 16:14:29.249   CheckHttpd does not exist /proc/10084/ <0x2b521460>
02      03/21/15 16:14:36.253   CheckHttpd slept 7 seconds, now will try again <0x2b521460>

while lua rpocess terminated at 16:14:28.

2015-03-21 16:14:28 - LuaUPnP Terminated with Exit Code: 250^[[1;00m

Is the CheckReport and CheckPortForward  just 5 seconds before interesting ?
« Last Edit: March 21, 2015, 02:04:16 pm by lolodomo »

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Using openHAB to minimize Vera reloads
« Reply #17 on: March 21, 2015, 01:06:42 pm »
Probably interesting things from logreader:


Code: [Select]
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: BEGIN
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: Vera model is 'MiCasaVerde VeraLite', checking Z-Wave locale ...
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: Same eu zw locale detected. Nothing to do.
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: No update required for servers
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: Sync MiOS Users required
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: No update required for ergy conf
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: MiOS RC: Got Values: (RA_Port|RA_Dissalowed) File: (0|0) Param: (0|0)
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: No changes required for config_mios_rc
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: No changes required for branding. Unit allready branded with FK_Branding=1.
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: auto-upgrade is off
Mar 21 16:14:23 MiOS_35101033 user.notice mios-sync_users[12024]: BEGIN
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: auto-upgrade not pressent in cron
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: No update required for locator.json
Mar 21 16:14:23 MiOS_35101033 user.notice mios_services[11976]: END
Mar 21 16:14:23 MiOS_35101033 user.notice mios-sync_users[12024]: Returning working server for MAIN=sta1.mios.com BCK=sta2.mios.com LAST=sta1.mios.com UseBCK(USE_ST_SRV_BCK=0) with do_report=0
Mar 21 16:14:23 MiOS_35101033 user.notice mios-sync_users[12024]: Testing connection to: sta1.mios.com on Port: 443
Mar 21 16:14:24 MiOS_35101033 user.notice mios-sync_users[12024]: 1 got response from sta1.mios.com
Mar 21 16:14:24 MiOS_35101033 user.notice mios-sync_users[12024]: TestSeq=1 - Connection to: sta1.mios.com is 1
Mar 21 16:14:24 MiOS_35101033 user.notice mios-sync_users[12024]: sta1.mios.com Reached. Proceeding...
Mar 21 16:14:24 MiOS_35101033 user.notice mios-sync_users[12024]: MAIN Working
Mar 21 16:14:25 MiOS_35101033 user.notice mios-sync_users[12024]: Clearing all MiOS users
Mar 21 16:14:25 MiOS_35101033 user.notice mios-sync_users[12024]: Clearing all Lighttpd users
Mar 21 16:14:25 MiOS_35101033 user.notice mios-sync_users[12024]: ===AddMiosUsers: ===
Mar 21 16:14:25 MiOS_35101033 user.notice mios-sync_users[12024]: === Reload http server ===
Mar 21 16:14:25 MiOS_35101033 user.notice mios-sync_users[12024]: === Request LuaUPnP Reload ===
Mar 21 16:14:25 MiOS_35101033 user.notice set_led[12121]: === New call to /usr/bin/set_led.sh off zwave from /bin/sh -c /usr/bin/set_led.sh off zwave [12120] with parent /usr/bin/LuaUPnP [28574] ===
Mar 21 16:14:26 MiOS_35101033 user.notice mios-sync_users[12024]: END

I hope there is no critical information in this log.

Last lines could be interesting (mios-sync_users): Clearing all MiOS users then AddMiosUsers then Reload http server  then Request LuaUPnP Reload
« Last Edit: March 21, 2015, 01:26:13 pm by lolodomo »

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Using openHAB to minimize Vera reloads
« Reply #18 on: March 21, 2015, 01:16:32 pm »
Check out this for an example of "quirky" reload behavior introduced by Vera itself, for example:
    http://forum.micasaverde.com/index.php/topic,4782.msg159481.html#msg159481

It looks like my today reload is exactly what you described.
And yes, I have disabled the Vera tunnel.
I tried your solution consisting in adding a # in the file /etc/cmh/users.conf
Will see tomorrow.
« Last Edit: March 21, 2015, 01:21:34 pm by lolodomo »

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Using openHAB to minimize Vera reloads
« Reply #19 on: March 21, 2015, 03:18:06 pm »
Yup, there are a zillion ways Vera can kill itself off...  8)

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Using openHAB to minimize Vera reloads
« Reply #20 on: March 22, 2015, 01:37:59 pm »
No reload today at 16:14 8)
@guessed: you are the best :)
I will let you know how many days I can get without Vera reloads.

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Why my Vera reloads every day at same hour ?
« Reply #21 on: March 28, 2015, 06:38:40 am »
No reload during more than 6 days and this morning I try to connect to my Vera through the WEB UI and it does not work.

Here are my logs:

Code: [Select]
06      03/28/15 11:03:04.750   Device_Variable::m_szValue_set device: 203 service: urn:rfxcom-com:serviceId:rfxtrx1 variable: LastReceivedMsg was: 0A 52 01 A9 7D 02 00 BA 24 02 69  now: 0A 52 01 AA C3 04 00 93 2E 00 69  #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2e21d680>
06      03/28/15 11:03:04.755   Device_Variable::m_szValue_set device: 498 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1427536941 now: 1427536984 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2e21d680>
06      03/28/15 11:03:04.768   Device_Variable::m_szValue_set device: 499 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1427536941 now: 1427536984 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2e21d680>
01      03/28/15 11:04:25.009   Failed to get lock(0xd9422c) Variable: ../ZWave/ZWaveJobHandler.cpp:1547 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2b7c9680>
06      03/28/15 11:04:27.102   Device_Variable::m_szValue_set device: 365 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 0 #hooks: 0 upnp: 0 v:0xf822b8/NONE duplicate:0 <0x2c3c9680>
01      03/28/15 11:04:31.009   Failed to get lock(0xd9422c) Variable: Device_LuaUPnP.cpp:401 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2e81d680>
01      03/28/15 11:04:34.016   Failed to get lock(0xd9422c) Variable: Device_LuaUPnP.cpp:401 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2e21d680>
01      03/28/15 11:04:45.006   Failed to get lock(0xd9422c) Variable: ../ZWave/ZWaveJobHandler.h:372 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2bfc9680>
01      03/28/15 11:05:09.016   Failed to get lock(0xd9422c) Variable: JobHandler_LuaUPnP.cpp:6849 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2d41d680>
01      03/28/15 11:05:27.012   Failed to get lock(0xd9422c) Variable: Device_Basic.cpp:455 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2c3c9680>
01      03/28/15 11:05:42.014   Failed to get lock(0xd9422c) Variable: luc.h:124 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2de1d680>
01      03/28/15 11:06:14.014   Failed to get lock(0xd9422c) Variable: JobHandler_LuaUPnP.cpp:6849 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2d61d680>
01      03/28/15 11:07:15.014   Failed to get lock(0xd9422c) Variable: luc.h:124 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2e61d680>
01      03/28/15 11:07:19.015   Failed to get lock(0xd9422c) Variable: JobHandler_LuaUPnP.cpp:6849 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2ec5e680>
01      03/28/15 11:07:49.015   Failed to get lock(0xd9422c) Variable: LuaInterface.cpp:178 last used UserData.cpp:463  first used UserData.cpp:463  thread: 0x2b9c9680 (>18441019)  handler 0x424994 bOkToFail 0 <0x2c7c9680>

I was able to do it yesterday.

Any idea ?

PS: I will do a hard reboot !

Offline lolodomo

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: Why my Vera reloads every day at same hour ?
« Reply #22 on: May 01, 2015, 06:10:17 am »
Here are my reload times during the last month:
1 March 00:00
8 March 22:03
1 May 00:00

So I got no reload during 22 days ! I never imagined it could happen one day ;D

Any idea why the Vera reloads the first day of each month at 00:00 ?
Is it possible to disable this reload ?
« Last Edit: May 01, 2015, 06:14:52 am by lolodomo »

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +291/-70
  • "Less is more"
Re: Why my Vera reloads every day at same hour ?
« Reply #23 on: May 01, 2015, 07:11:39 am »
Any idea why the Vera reloads the first day of each month at 00:00 ?
Is it possible to disable this reload ?

Yes, it's a feature.  I reported this a while back and was told it couldn't be disabled.  Typically two out of my four Veras last a whole month without a restart, but I am picky as to which plugins I run.

The Vera Edge usually only goes a few days.  :(

3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline mda

  • Sr. Member
  • ****
  • Posts: 464
  • Karma: +9/-0
Re: Why my Vera reloads every day at same hour ?
« Reply #24 on: May 02, 2015, 06:43:42 pm »
I believe Vera restarts luup at midnight on the first day of the month (at least sometimes). I do not know why, but I do think those restarts are "normal".