Author Topic: EventWatcher[834] : Startup Lua Failed"  (Read 4704 times)

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #15 on: January 17, 2017, 12:59:28 pm »
I used Eventwatcher for several months on Vera3 on UI5 without any problems. Recently I upgraded to Veraplus with the latest firmware. Eventwatcher did work good first days but then I also got message as mentioned in the subject. Cannot find what's the cause and how to solve it....

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #16 on: January 17, 2017, 01:02:05 pm »
Which version of EventWatcher?

What does the log show?
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 Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #17 on: January 17, 2017, 04:36:02 pm »
Current Version:1.20140123

I looked at the logs after a restart. I see a lot of lines but nothing with EventWatcher in...   Where do I have to look at ?

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #18 on: January 17, 2017, 04:44:43 pm »
That's massively out of date, and probably is only fit for UI5.  Latest update was 20161116.

Would suggest first that you update all your files from here: https://github.com/akbooer/EventWatcher

and then see what happens.

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 Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #19 on: January 17, 2017, 05:58:53 pm »
I just downloaded it from the appstore and this was the version I got.

Well I followed your instructions and updated the 5 files via develop apps -> luup files -> upload & restart Luup after upload.   The strange thing is: I still am on the same version number and I still have the lua startup error ....

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #20 on: January 17, 2017, 06:02:11 pm »
Ah, I think that is UI7 doing bad things to you.  I'll try it myself tomorrow and see what works.
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 akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #21 on: January 18, 2017, 06:15:09 am »
It turns out that I'm running the latest EventWatcher on a Vera Edge with no difficulty.  One action I could suggest is simply to delete the plugin entirely using the plugin pages (this will not delete the files) and then create a new EventWatcher device manually with device file D_EventWatcher.xml and implementation file I_EventWatcher.xml.

This is assuming the new files were all, in fact, uploaded correctly (sounds like you used the right approach.)
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 Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #22 on: January 18, 2017, 12:49:11 pm »
Thanks for your reply and support, really appreciate it.
I don't like iit very much to delete the plugin and then  creating it again manually
One last info, maybe this can help to come to an easy solution:\When in the plugin device under "control" I click on one of the blue items it opens this URL:
http://192.168.1.xxx/port_3480/data_request?id=lr_EventWatcher&report=cpu and it says "no handler"
(xxx = ip adress of my veraplus and this is correct)

Offline chrugel

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #23 on: February 04, 2017, 04:46:41 pm »
Indeed the logs show an error:
Code: [Select]
50 11/16/16 14:58:18.987 luup_log:838: EventWatcher: defining CLI... <0x772cb520>
50 11/16/16 14:58:18.997 luup_log:838: EventWatcher: Starting Event service... <0x772cb520>
50 11/16/16 14:58:18.998 luup_log:838: EventWatcher: Server listening on port 443 <0x772cb520>
10 11/16/16 14:58:18.998 AlarmManager::AddRelativeAlarm current time 1479304698 delay 10 type 7 <0x772cb520>
10 11/16/16 14:58:18.999 AlarmManager::AddAbsoluteAlarm alarm 0x1928f98 entry 0x1ede370 id 0 type 7 param=0x198d380 entry->when: 1479304708 time: 1479304698 bCancelFirst 0=0 <0x772cb520>
50 11/16/16 14:58:18.999 luup_log:838: EventWatcher: Starting Watch service... <0x772cb520>
01 11/16/16 14:58:19.000 LuaInterface::CallFunction_Startup-1 device 838 function init failed [string "local ABOUT = {..."]:1156: attempt to index local 'c' (a nil value) <0x772cb520>
01 11/16/16 14:58:19.000 LuImplementation::StartLua running startup code for 838 I_EventWatcher.xml failed <0x772cb520>

The good news is that I understand that the condition that it reports would generate an error, the bad news is I simply cannot understand how that might happen.  I've loaded the same version from GitHub onto both an openLuup development machine and one of my VeraLite machines and they both work perfectly.

There is, I suppose, the remote possibility of a download error.  Can I ask that you re-install from the AltAppStore and try again?

Hi,
I have now followed the exact things you have done here in this thread but i still have the same entries in the luup log as you stated above:
Code: [Select]
50 02/04/17 22:30:21.727 luup_log:353: EventWatcher: Starting Watch service... <0x7755a520>
01 02/04/17 22:30:21.727 LuaInterface::CallFunction_Startup-1 device 353 function init failed [string "ABOUT = {..."]:1158: attempt to index local 'c' (a nil value) <0x7755a520>
01 02/04/17 22:30:21.728 LuImplementation::StartLua running startup code for 353 I_EventWatcher.xml failed <0x7755a520>
50 02/04/17 22:30:22.100 luup_log:351: ALTUI: startupDeferred, called on behalf of device:351 <0x75d5a520>

I seem to  have missed the spot in this thread where you say what exacly fixed the problem?
Could you please point me to how you managed to fix this?

Thank you very much in advance!
regards
Christian

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #24 on: February 04, 2017, 05:21:05 pm »
Are you absolutely sure that you have downloaded and installed the latest version from GitHub?
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 chrugel

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #25 on: February 05, 2017, 09:23:58 am »
Are you absolutely sure that you have downloaded and installed the latest version from GitHub?

Initially i thought you said that earlier in the thread that you had updated the version in the Alternate Appstore in AltUi so i installed that one. But now i have downloaded the GitHub version and installed that one just to be sure, with the same result I'm afraid.
Is it possible that there is something stuck in the system from the first one i installed from the Mios AppStore?

christian

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6340
  • Karma: +288/-70
  • "Less is more"
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #26 on: February 05, 2017, 09:55:25 am »
Initially i thought you said that earlier in the thread that you had updated the version in the Alternate Appstore in AltUi so i installed that one. But now i have downloaded the GitHub version and installed that one just to be sure, with the same result I'm afraid.

They should be similar, if not identical.

Quote
Is it possible that there is something stuck in the system from the first one i installed from the Mios AppStore?

Yes, it must be something like that.   If you look through the files on your system "Apps > Develop Apps > Luup files", do you see any duplicates for any EventWatcher files?  It's possible that you have both compressed and uncompressed versions.  Delete ALL EventWatcher files (D_xxx, S_xxx, I_xxx, L_xxx) and try again.

As I mentioned before, I've done a raw install from the App Store on a clean machine without any issues.
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 chrugel

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #27 on: February 05, 2017, 11:07:27 am »
Initially i thought you said that earlier in the thread that you had updated the version in the Alternate Appstore in AltUi so i installed that one. But now i have downloaded the GitHub version and installed that one just to be sure, with the same result I'm afraid.

They should be similar, if not identical.

Quote
Is it possible that there is something stuck in the system from the first one i installed from the Mios AppStore?

Yes, it must be something like that.   If you look through the files on your system "Apps > Develop Apps > Luup files", do you see any duplicates for any EventWatcher files?  It's possible that you have both compressed and uncompressed versions.  Delete ALL EventWatcher files (D_xxx, S_xxx, I_xxx, L_xxx) and try again.

As I mentioned before, I've done a raw install from the App Store on a clean machine without any issues.


Now i deleted what ever i could find in the /etc/cmh-ludl path i also checked the /etc/cmh-lu path but there was nothing. Restarted the lua engine to make sure de Eventwatcher device was gone. And then transferd the files from github with the Upload button in Develop Apps and created a New device.
The exact same result:
Code: [Select]
50 02/05/17 16:58:31.758 luup_log:357: EventWatcher: Starting Watch service... <0x76dd2520>
01 02/05/17 16:58:31.759 LuaInterface::CallFunction_Startup-1 device 357 function init failed [string "ABOUT = {..."]:1158: attempt to index local 'c' (a nil value) <0x76dd2520>
01 02/05/17 16:58:31.759 LuImplementation::StartLua running startup code for 357 I_EventWatcher.xml failed <0x76dd2520>
50 02/05/17 16:58:32.101 luup_log:351: ALTUI: startupDeferred, called on behalf of device:351 <0x757d2520>


 Any other information i could provide that might help?
I'm currently running the latest version 1.7.2406.

christian

Offline pit

  • Sr. Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
Re: EventWatcher[834] : Startup Lua Failed"
« Reply #28 on: February 18, 2017, 08:19:42 am »
Today I got the same error. I removed and reinstalled eventWatcher (1.20140123) without effekt.
I run eventWatcher on veraEdge since more than a year without problems. Last week I made a vera upgrade to the newest softwarelevel without problems. Yesterday (when eventWatcher still was working) I renamed some devices and I installed the GetLogUtility, popp thermostat and aeon sirene. Maybe one of these changes was initiating the error?