AltUi
-
I reinstalled the AltUi plugin on OpenLuup and I no longer access its web interface
I have the following error:
error in callback [lr_ALTUI_Handler]: ./dkjson.lua:397: bad argument # 1 to 'strfind' (string expected, got nil)
Can someone help me?
OpenLuup version 2021.05.08 -
-
I reinstalled AltUi because it was not working properly the last few days.
When I made changes, it didn't take them into account or else it crashed the interface.
I uninstalled AltUi, the module then the plugin in OpenLuup.
I reinstalled the plugin in OpenLuup and since then I have the above error.
My OpenLuup version is the testing version 2021.05.082021-06-01 13:26:08.426 openLuup.server:: GET /data_request?id=lr_ALTUI_Handler&command=home HTTP/1.1 tcp{client}: 0x1c72bb8 2021-06-01 13:26:08.427 luup.variable_get:: No such device/serviceId/name 26.urn:upnp-org:serviceId:altui1.PluginConfig 2021-06-01 13:26:08.428 openLuup.context_switch:: ERROR: [dev #26] ./dkjson.lua:397: bad argument #1 to 'strfind' (string expected, got nil) 2021-06-01 13:26:08.428 openLuup.servlet:: error in callback [lr_ALTUI_Handler] : ./dkjson.lua:397: bad argument #1 to 'strfind' (string expected, got nil) 2021-06-01 13:26:08.428 openLuup.server:: request completed (224 bytes, 0 chunks, 1 ms) tcp{client}: 0x1c72bb8
-
If I go through AltAppStore.
I have this log2021-06-01 20:31:44.251 openLuup.server:: GET /openLuup?page=app_store HTTP/1.1 tcp{client}: 0x1fee240 2021-06-01 20:31:44.272 openLuup.server:: request completed (20931 bytes, 0 chunks, 19 ms) tcp{client}: 0x1fee240 2021-06-01 20:31:47.649 openLuup.server:: POST /openLuup? HTTP/1.1 tcp{client}: 0x1fee240 2021-06-01 20:31:47.652 luup.call_action:: 4.urn:upnp-org:serviceId:AltAppStore1.update_plugin 2021-06-01 20:31:47.653 luup_log:4: AltAppStore : starting <run> phase... 2021-06-01 20:31:47.655 luup_log:4: AltAppStore : downloading amg0/ALTUI [master] to trash/AltAppStore/ 2021-06-01 20:31:47.655 luup_log:4: AltAppStore : GitHub request: https://api.github.com/repos/amg0/ALTUI/contents?ref=master 2021-06-01 20:31:48.012 luup_log:4: AltAppStore : GitHub request: https://api.github.com/repos/amg0/ALTUI/contentsblockly?ref=master 2021-06-01 20:31:48.285 luup_log:4: AltAppStore : getting contents of version: master 2021-06-01 20:31:48.285 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine1 was: Downloading... now: Downloading... #hooks:0 2021-06-01 20:31:48.285 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI failed now: ALTUI #hooks:0 2021-06-01 20:31:48.285 luup_log:4: AltAppStore : scheduling <job> phase... 2021-06-01 20:31:48.286 openLuup.wsapi.cgi:: /openLuup : {"JobID":"3741"} 2021-06-01 20:31:48.286 openLuup.wsapi.cgi:: /openLuup : 2021-06-01 20:31:48.300 openLuup.server:: request completed (20976 bytes, 0 chunks, 649 ms) tcp{client}: 0x1fee240 2021-06-01 20:31:48.411 luup_log:4: AltAppStore : starting <job> phase... 2021-06-01 20:31:48.411 luup_log:4: AltAppStore : (1 of 32) 5860 D_ALTUI.json 2021-06-01 20:31:48.412 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI now: ALTUI 3% #hooks:0 2021-06-01 20:31:48.413 luup.variable_set:: 10048.urn:micasaverde-com:serviceId:EnergyMetering1.KWHReading was: 1622572282 now: 1622572308 #hooks:0 2021-06-01 20:31:48.526 luup_log:4: AltAppStore : (2 of 32) 1086 D_ALTUI.xml 2021-06-01 20:31:48.527 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI 3% now: ALTUI 6% #hooks:0 2021-06-01 20:31:48.600 luup_log:4: AltAppStore : (3 of 32) 6730 D_ALTUI_UI7.json 2021-06-01 20:31:48.600 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI 6% now: ALTUI 9% #hooks:0 2021-06-01 20:31:48.945 luup_log:4: AltAppStore : (4 of 32) 2425 I_ALTUI.xml 2021-06-01 20:31:48.946 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI 9% now: ALTUI 12% #hooks:0 2021-06-01 20:31:48.982 luup.variable_set:: 10048.urn:micasaverde-com:serviceId:EnergyMetering1.Watts was: 7.89 now: 7.05 #hooks:0 2021-06-01 20:31:48.983 luup.variable_set:: 10048.urn:micasaverde-com:serviceId:EnergyMetering1.Log was: 7,7,8,1622572282,83 now: 7,7,8,1622572308,109 #hooks:0 2021-06-01 20:31:49.232 luup_log:4: AltAppStore : (5 of 32) 15421 J_ALTUI.js 2021-06-01 20:31:49.233 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI 12% now: ALTUI 16% #hooks:0 2021-06-01 20:31:51.337 luup_log:4: AltAppStore : download failed, status: Operation already in progress 2021-06-01 20:31:51.337 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: ALTUI 16% now: ALTUI failed #hooks:0
-
I no longer have a device 26.
it was the old AltUi device that I removed with the AltUi plugin.
After the new installation, the new AltUi device is now 97.
But the error seems to be that it is still looking for device 26.
see log2021-06-02 08:58:07.522 luup.variable_get:: No such device/serviceId/name 26.urn:upnp-org:serviceId:altui1.PluginConfig 2021-06-02 08:58:07.522 openLuup.context_switch:: ERROR: [dev #26] ./dkjson.lua:397: bad argument #1 to 'strfind' (string expected, got nil) 2021-06-02 08:58:07.522 openLuup.servlet:: error in callback [lr_ALTUI_Handler] : ./dkjson.lua:397: bad argument #1 to 'strfind' (string expected, got ni
-
I do not know by what miracle, but after a new start (power cut), I found AltUi (device 26) and functioning normal.
Thank you for your help and for the time spent for your advice.
Kindly