URGENT HELP ! OH **** PLEG just died

UPDATE:

PLEG Version 9.1 was published on 27th of October unfortunately there is a problem with this plugin version and it beaks PLEG, resulting in a “Error Reading Data” message.

The 3rd party developer of PLEG is aware and is working on a fix to be published.
Vera support are also aware.

You can downgrade to the previous version of PLEG by following these instructions, once downgraded you need to uncheck auto update on the PLEG apps.

The previous app version were these:

Program Logic Core (PLC) = 8.23
Program Logic Event Generator (PLEG) = 8.11

OK, for those you using PLEG here are the two URLs you need to request to downgrade (without restoring Vera from a backup) to version 8.

You request these in your browser (not via remote access – must be local). Put your Vera local IP in where indicated. Vera will reload after each request, so give it time between requests to do that. After each request, run to Apps > My apps and turn off auto-update for the PLEG apps.

http://vera-ip:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=3086&Version=36632

http://vera-ip:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=3066&Version=31846

If you use PLTS, you will also need to do this one:

http://192.168.0.21:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=3018&Version=31866

THANKS to @rigpapa for figuring out how to find the version numbers we needed in order to be able to downgrade the PLEG apps.

Also THANKS to @shallowearth and @cadwizzard for their contributions.

END OF UPDATE

UPDATE 2

It looks like a version 9.5 fix has been published and is working see here.

END OF UPDATE

I can’t load any of my PLEG devices in Vera it says “Error Reading Data”

This has happened on both my Vera Plus 1.7.5186 (7.31) and Vera Edge 1.7.5245 (7.32) .

In the log for the Vera Plus I am seeing these which are my three PLEG devices:

LuImplementation::StartLua skipping device 86 implementation valid 1 <0x76b50520>
LuImplementation::StartLua skipping device 104 implementation valid 1 <0x76b50520>
LuImplementation::StartLua skipping device 191 implementation valid 1 <0x76b50520>

On the Vera Edge in My Apps I tried “updating” the PLEG apps to download / install the plugin files again and then reloaded the LUUP Engine but its still the same.

For this to happen on two Vera controllers at the same time is highly unusual and suggests I don’t have corruption issues etc.

Anyone else’s PLEG died ?

I think it was working this morning OK as my window coverings opened themselves via PLEG schedules.

5 Likes

Vera Plus log here:

	LZO::Decompress corrupt LZO is too big 646590488 <0x776a1320>
01	10/29/20 14:25:48.664	FileUtils::ReadCompressedFileIntoBuffer delete corrupt LZO: /etc/cmh-ludl//S_ProgramLogicEG.xml.lzo <0x776a1320>
02	10/29/20 14:25:48.665	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicEG.xml <0x776a1320>
01	10/29/20 14:25:48.665	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicEG.xml for 86/Home Security <0x776a1320>
01	10/29/20 14:25:48.666	Device_LuaUPnP::CreateServices removing incomplete service from 86 <0x776a1320>
01	10/29/20 14:25:48.666	LZO::Decompress corrupt LZO is too big 646588919 <0x776a1320>
01	10/29/20 14:25:48.666	FileUtils::ReadCompressedFileIntoBuffer delete corrupt LZO: /etc/cmh-ludl//S_ProgramLogicC.xml.lzo <0x776a1320>
02	10/29/20 14:25:48.667	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicC.xml <0x776a1320>
01	10/29/20 14:25:48.667	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicC.xml for 86/Home Security <0x776a1320>
01	10/29/20 14:25:48.667	Device_LuaUPnP::CreateServices removing incomplete service from 86 <0x776a1320>
02	10/29/20 14:25:48.670	Device_LuaUPnP::CreateServices device 88 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.671	Device_LuaUPnP::CreateServices device 95 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.672	Device_LuaUPnP::CreateServices device 96 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.672	Device_LuaUPnP::CreateServices device 99 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.673	Device_LuaUPnP::CreateServices device 100 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.674	Device_LuaUPnP::CreateServices device 103 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.675	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicEG.xml <0x776a1320>
01	10/29/20 14:25:48.675	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicEG.xml for 104/Heating and Lighting <0x776a1320>
01	10/29/20 14:25:48.675	Device_LuaUPnP::CreateServices removing incomplete service from 104 <0x776a1320>
02	10/29/20 14:25:48.676	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicC.xml <0x776a1320>
01	10/29/20 14:25:48.676	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicC.xml for 104/Heating and Lighting <0x776a1320>
01	10/29/20 14:25:48.676	Device_LuaUPnP::CreateServices removing incomplete service from 104 <0x776a1320>
02	10/29/20 14:25:48.691	Device_LuaUPnP::CreateServices device 140 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.692	Device_LuaUPnP::CreateServices device 156 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.693	Device_LuaUPnP::CreateServices device 157 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.694	Device_LuaUPnP::CreateServices device 160 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.697	Device_LuaUPnP::CreateServices device 161 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.697	Device_LuaUPnP::CreateServices device 162 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.705	Device_LuaUPnP::CreateServices device 176 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.713	Device_LuaUPnP::CreateServices device 183 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.732	Device_LuaUPnP::CreateServices device 189 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.751	Device_LuaUPnP::CreateServices device 190 doesn't have interface, using topmost device interface <0x776a1320>
02	10/29/20 14:25:48.756	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicEG.xml <0x776a1320>
01	10/29/20 14:25:48.756	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicEG.xml for 191/AV Devices <0x776a1320>
01	10/29/20 14:25:48.756	Device_LuaUPnP::CreateServices removing incomplete service from 191 <0x776a1320>
02	10/29/20 14:25:48.757	JobHandler_LuaUPnP::m_sMissingFile_set /etc/cmh-lu//S_ProgramLogicC.xml <0x776a1320>
01	10/29/20 14:25:48.757	Device_LuaUPnP::CreateService can't load /etc/cmh-lu//S_ProgramLogicC.xml for 191/AV Devices <0x776a1320>
01	10/29/20 14:25:48.757	Device_LuaUPnP::CreateServices removing incomplete service from 191 <0x776a1320>
01	10/29/20 14:25:49.287	LuImplementation::Parse can't parse xml /etc/cmh-ludl//I_ProgramLogicEG.xml <0x776a1320>
01	10/29/20 14:25:49.288	JobHandler_LuaUPnP::ParseAllImplementations failed to parse I_ProgramLogicEG.xml <0x776a1320>
01	10/29/20 14:26:24.349	LuImplementation::StartLua skipping device 86 implementation valid 1 <0x773d4520>
01	10/29/20 14:26:24.350	LuImplementation::StartLua skipping device 104 implementation valid 1 <0x773d4520>
01	10/29/20 14:26:24.503	LuImplementation::StartLua skipping device 191 implementation valid 1 <0x773d4520>
01	10/29/20 14:26:24.539	luup_require can't find cjson <0x773d4520>

On my Vera Edge which is a test box, I’ve uninstalled the PLEG apps and installed them again from the App store.

I can still see a PLEG device #105 in the devices view but it still says “Error Reading Data”

I see this in the Vera Edge log:

01	10/29/20 14:43:13.844	luvd_get_info /etc/cmh-ludl/S_ProgramLogicEG.xml.lzo doesn't exist <0x6b512520>
01	10/29/20 14:43:13.867	luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x73538520>
01	10/29/20 14:44:51.817	luvd_get_info /etc/cmh-ludl/S_ProgramLogicEG.xml.lzo doesn't exist <0x6c112520>
01	10/29/20 14:44:51.819	luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x6bb12520>
01	10/29/20 14:45:42.852	luvd_get_info /etc/cmh-ludl/S_ProgramLogicEG.xml.lzo doesn't exist <0x6bf12520>
01	10/29/20 14:45:42.854	luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x6bd12520>

I’ve just restored a backup from yesterday from the Vera cloud for this Vera Edge…

And my original PLEG device #27 is back and I can now get in to it and see my rules.

I then rebooted the unit, now looking in the LuaUpnp Log for this Vera Edge, I am still seeing this however:

01	10/29/20 15:02:23.339	LuImplementation::Parse can't parse xml /etc/cmh-ludl//I_ProgramLogicEG.xml <0x77438000>
01	10/29/20 15:02:23.339	JobHandler_LuaUPnP::ParseAllImplementations failed to parse I_ProgramLogicEG.xml <0x77438000>
01	10/29/20 15:02:37.563	luup_require can't find cjson <0x76e1f520>
01	10/29/20 15:02:40.595	LuImplementation::StartLua skipping device 27 implementation valid 1 <0x76e1f520>
01	10/29/20 15:03:30.618	luvd_get_info /etc/cmh-ludl/S_ProgramLogicEG.xml.lzo doesn't exist <0x72fc4520>
01	10/29/20 15:03:30.620	luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x72fc4520>
01	10/29/20 15:03:32.567	luvd_get_info /etc/cmh-ludl/S_ProgramLogicEG.xml.lzo doesn't exist <0x6b949520>
01	10/29/20 15:03:32.569	luvd_get_info /etc/cmh-ludl/S_ProgramLogicC.xml.lzo doesn't exist <0x737c4520>

And I am getting the “Error Reading Data” again on the PLEG device and cannot get in to it again and see my rules

What the heck is going on?

I then restored the same backup again for a second time.

After the restore I can access my original PLEG device #27 again OK and see my rules OK.

I then rebooted the unit and this time I can still access PLEG device #27 and its rules OK.

I then reloaded the engine instead and I can still access PLEG device #27 OK.

So seems to have stayed fixed this time.

I then installed LUAView plugin again as its gone and bang PLEG has died “Error Reading Data”

image

So seems to happen after I have installed LUAView plugin as I did that after the first restore as well. Although I can’t imagine that is really the cause and likely a red herring.

I then uninstalled LUAView off the Vera Edge and reloaded but still get “Error Reading Data” on the PLEG device.

I then restored the same backup for a third time, but this time I haven’t installed LUAView plugin straight after.

I reloaded the engine several times and also rebooted the unit twice

So don’t know what is going on?

Looking in the LuaUpnp log now in the browser without LUAView plugin installed, I cannot see any errors about PLEG and I can still load the PLEG device and see my rules OK.

So I installed the LUAView plugin again now and bang PLEG has died again.

Full log file off this Vera Edge here.

Any Vera support staff seeing this my ticket number is: 235391

Same thing happened to me today! I posted hour ago, not so experienced, but I can’t open any PLEG device with same error. I have noticed that PLEG plugin had been updated 23rd October to version 9.1 so it can have some connection. Until now I did nothing, because in Variable screen of PLEG device threre are all data, so all the logic is not gone, only PLEG can’t open it.

Do you have the LUAView plugin installed by any chance ?

No… I have updated my post above.

paging @rigpapa. (I took a look at luaview to modify the format in which it’s exporting the scripts and this seems very strange to me).

I didn’t know this that PLEG was recently updated ?

I thought PLEG was dead as far as further development was concerned as Richard has left the forums.

My Vera says in Apps section that plugin updated 2020-10-23 19:41.

I’ve just uninstalled LUAView off my production Vera Plus and restored a backup from yesterday and my PLEG rules are back again.

Taking a backup now of each of the PLEG devices and their rules.

So you suppose to restore complete Vera to backup for example from yesterday? I don’t have that LuaView plugin you are referring to. And PLEG worked without a flaw for past 3 years for me until today :flushed:

What do you mean by this ?

Has the LUAView plugin also been recently updated ?

I cannot see this on my Vera. Can you post a screen shot please.

Are you using AltUI ?

Yes that seems to have worked for me, but I have also had to uninstall this LUAView plugin.

But if you are not also using that plugin then there is more at play here.

Like a PLEG update you are suggesting also happened.

I would make sure you have turned all auto-update for all associated PLEG apps. It is probably the fact that you are installing another plug-in that is triggering PLEG to auto-update…

1 Like

Possibly, problem is I don’t know what version of PLEG my system had before this problem started. And I think Auto Update has always been turned on for PLEG.

BTW: I also have Auto update ON for PLEG…

I don’t think so. LuaView is made by @rigpapa. As I said, I doubt it’s the cause and as @shallowearth is suggesting it’s more easily related to the plugin updating itself.

Correct, restore a backup prior to 10/23 than immediately go in and turn PLEG auto updates OFF. (for both Apps related to PLEG)

1 Like

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules