vwout / docker-openluup

Dockerized openLuup environment with AltUI
https://hub.docker.com/r/vwout/openluup/
Apache License 2.0
3 stars 2 forks source link

Lua files missing #4

Closed RHCPNG closed 4 years ago

RHCPNG commented 4 years ago

Hi vwout,

I’m enjoying your docker very much, but I’m getting errors of lua files that are missing. Like this:

2020-07-07 14:48:00.056 luup.create_device:: [69] D_Harmony.xml / I_Harmony.xml / D_Harmony.json (urn:schemas-rboer-com:device:Harmony:1) 2020-07-07 14:48:00.056 openLuup.chdev:: [string "L_Harmony.lua"]:212: module 'cjson' not found: no field package.preload['cjson'] no file './cjson.lua' no file '/usr/local/share/lua/5.1/cjson.lua' no file '/usr/local/share/lua/5.1/cjson/init.lua' no file '/usr/local/lib/lua/5.1/cjson.lua' no file '/usr/local/lib/lua/5.1/cjson/init.lua' no file '../cmh-lu/cjson.lua' no file 'files/cjson.lua' no file 'openLuup/cjson.lua' no file './cjson.so' no file '/usr/local/lib/lua/5.1/cjson.so' no file '/usr/local/lib/lua/5.1/loadall.so' 2020-07-07 14:48:00.061 luup.create_device:: [71] D_HarmonyDevice.xml / X / D_HarmonyDevice.json (urn:schemas-rboer-com:device:HarmonyDevice:1) 2020-07-07 14:48:00.061 luup.create_device:: [72] D_HarmonyDevice.xml / X / D_HarmonyDevice.json (urn:schemas-rboer-com:device:HarmonyDevice:1) 2020-07-07 14:48:00.062 luup.create_device:: [75] D_HarmonyDevice.xml / X / D_HarmonyDevice.json (urn:schemas-rboer-com:device:HarmonyDevice:1) 2020-07-07 14:48:00.075 luup.create_device:: [76] D_SiteSensor1.xml / I_SiteSensor1.xml / D_SiteSensor1.json (urn:schemas-toggledbits-com:device:SiteSensor:1) 2020-07-07 14:48:00.087 luup.create_device:: [77] D_Reactor.xml

Can you tell me what to do about it?

RHCPNG commented 4 years ago

BTW I’ve tried both the slim and debian version to no success. I guess the cjson module is missing in the docker?

RHCPNG commented 4 years ago

I've installed cjson in my container and that resolved the issue. Could you add cjson to your docker please?

vwout commented 4 years ago

The docker images indeed only contain openluup with a few lua libraries that are required for its operation. I have added several additional libraries for json (fixing this issue) and mqtt.

An updated image is available on Docker Hub.