OpenLuup installation
-
Hi, I have been trying to install OpenLuup on MacOS but I am failing, so far.
Is there a step-by-step instruction (for MacOS) to follow?After installing LuaRocks, luasec, luafilesystem and luasocket I then try to run lua5.1 openLuup_install.lua and then get the messages below.
Any ideas and proposals are appreciated.
Regards
JanopenLuup_install 2019.02.15 @akbooer
lua5.1: openLuup_install.lua:18: module ‘socket.http’ not found:
no field package.preload[‘socket.http’]
no file ‘./socket/http.lua’
no file ‘/usr/local/share/lua/5.1/socket/http.lua’
no file ‘/usr/local/share/lua/5.1/socket/http/init.lua’
no file ‘/usr/local/lib/lua/5.1/socket/http.lua’
no file ‘/usr/local/lib/lua/5.1/socket/http/init.lua’
no file ‘./socket/http.so’
no file ‘/usr/local/lib/lua/5.1/socket/http.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
no file ‘./socket.so’
no file ‘/usr/local/lib/lua/5.1/socket.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
stack traceback:
[C]: in function ‘require’
openLuup_install.lua:18: in main chunk -
Your best bet is to try brew
-
This I was going to suggest
Brew rock in so many ways. Be patient, though, some of these things seem to take a long old time with very little indication of progress
C
-
Thanks, I will try the Homebrew
-
Hi akbooer,
I'm trying to install openluup on Debian 11 but I receive the following error :
root@becomonitor:/etc/cmh-ludl# root@becomonitor:/etc/cmh-ludl# lua5.1 openLuup_install.lua
openLuup_install 2019.02.15 @akbooer
getting openLuup version tar file from GitHub branch master...
un-zipping download files...
getting dkjson.lua...
creating required files and folders
initialising...
downloading and installing AltUI...
sh: 1: curl: not found
lua5.1: ./openLuup/L_AltAppStore.lua:567: attempt to call upvalue 'next_file' (a nil value)
stack traceback:
./openLuup/L_AltAppStore.lua:567: in function 'update_plugin_job'
openLuup/init.lua:254: in main chunk
[C]: ?
openLuup downloaded, installed, and running...
visit http://80.211.41.230:3480 to start using the system
root@becomonitor:/etc/cmh-ludl# Wed Jun 1 11:34:46 2022 device 2 ' openLuup' requesting reloadAny suggestion ?
tnks donato
-
So clearly the curl instruction failed. This may mean that you’re not running in the right shell environment.
Also, it seems that openLuup is actually running, so what can you see when looking at its console? I imagine that AltUI has failed to install. What files are in the home directory?
-
As you suggested the curl environment was not installed . Peharps in previous Debian version curl was pre-installed.
Tnks for your support
donato
-
Yes, curl is deprecated in Bullseye. Found this out when setting MSR myself but was unable to post to help
C
-
Hi akbooer,
I'm trying to add a variable to a device (Multistring) with your openluup console but doesn't work .
this is the log :
2022-07-12 20:03:17.991 openLuup.server:: GET /console?page=create_variable HTTP/1.1 tcp{client}: 0x55b1282118
2022-07-12 20:03:18.003 openLuup.server:: request completed (7334 bytes, 0 chunks, 11 ms) tcp{client}: 0x55b1282118
2022-07-12 20:03:29.675 openLuup.server:: POST /console? HTTP/1.1 tcp{client}: 0x55b1282118
2022-07-12 20:03:29.687 openLuup.server:: request completed (7340 bytes, 0 chunks, 11 ms) tcp{client}: 0x55b1282118
2022-07-12 20:03:31.662 openLuup.server:: GET /console?page=log HTTP/1.1 tcp{client}: 0x55b1282118any suggestion ? In the past was ok..
-
OK, thanks. I'll take a look.
-
I'm running openluup on Debian 11 bullseye on rpi
-
...in the meantime you can, I presume, do this manually from Lua Test with a luup.variable_set() call.
-
Thanks you akbooer for your support .
-
Hi,
I am trying to install openLuup on a new Debian 11 server. It is a clean install Debian 11 running as a VM on Proxmox.
I have installed lua 5.1, lua-socket, lua-filesystem and lua-sec.
When installing openLuup with "# lua5.1 openLuup_install.lua" I get the following response:
debian-pve:~/cmh-ludl$ lua5.1 openLuup_install.lua openLuup_install 2019.02.15 @akbooer getting openLuup version tar file from GitHub branch master... un-zipping download files... getting dkjson.lua... creating required files and folders initialising... downloading and installing AltUI... sh: 1: curl: not found lua5.1: ./openLuup/L_AltAppStore.lua:567: attempt to call upvalue 'next_file' (a nil value) stack traceback: ./openLuup/L_AltAppStore.lua:567: in function 'update_plugin_job' openLuup/init.lua:254: in main chunk [C]: ? openLuup downloaded, installed, and running... visit http://192.168.1.210:3480 to start using the system olsson@debian-pve:~/cmh-ludl$ Sat Aug 27 13:35:31 2022 device 2 ' openLuup' requesting reload
When I try to go to the url "http://192.168.1.210:3480" I get the following response:
No handler for data_request?id=lr_ALTUI_Handler
In other words it seems as if there is a problem starting AltUI.
If I instead go to the Console (http://192.168.1.210:3480/console) openLuup is up and running.
The startup_log in the Console reads:
2022-08-27 13:35:31.488 :: openLuup STARTUP :: /home/olsson/cmh-ludl 2022-08-27 13:35:31.488 openLuup.init:: version 2021.06.14 @akbooer 2022-08-27 13:35:31.489 openLuup.scheduler:: version 2021.03.19 @akbooer 2022-08-27 13:35:31.510 openLuup.io:: version 2021.03.27 @akbooer 2022-08-27 13:35:31.510 openLuup.mqtt:: version 2021.06.08 @akbooer 2022-08-27 13:35:31.511 openLuup.wsapi:: version 2019.08.12 @akbooer 2022-08-27 13:35:31.511 openLuup.servlet:: version 2021.04.30 @akbooer 2022-08-27 13:35:31.511 openLuup.client:: version 2019.10.14 @akbooer 2022-08-27 13:35:31.512 openLuup.server:: version 2020.03.26 @akbooer 2022-08-27 13:35:31.518 openLuup.scenes:: version 2021.06.02 @akbooer 2022-08-27 13:35:31.520 openLuup.chdev:: version 2021.05.04 @akbooer 2022-08-27 13:35:31.521 openLuup.userdata:: version 2021.04.30 @akbooer 2022-08-27 13:35:31.521 openLuup.requests:: version 2021.02.20 @akbooer 2022-08-27 13:35:31.521 openLuup.gateway:: version 2021.05.08 @akbooer 2022-08-27 13:35:31.522 openLuup.smtp:: version 2018.04.12 @akbooer 2022-08-27 13:35:31.523 openLuup.historian:: version 2021.06.12 @akbooer 2022-08-27 13:35:31.523 openLuup.luup:: version 2021.05.14 @akbooer 2022-08-27 13:35:31.524 openLuup.pop3:: version 2018.04.23 @akbooer 2022-08-27 13:35:31.524 openLuup.compression:: version 2016.06.30 @akbooer 2022-08-27 13:35:31.524 openLuup.timers:: version 2021.05.23 @akbooer 2022-08-27 13:35:31.524 openLuup.logs:: version 2018.03.25 @akbooer 2022-08-27 13:35:31.524 openLuup.json:: version 2021.05.01 @akbooer 2022-08-27 13:35:31.524 luup.create_device:: [1] D_ZWaveNetwork.xml / / () 2022-08-27 13:35:31.525 openLuup.chdev:: ERROR: unable to read XML file I_ZWave.xml 2022-08-27 13:35:31.530 luup.create_device:: [2] D_openLuup.xml / I_openLuup.xml / D_openLuup.json (openLuup) 2022-08-27 13:35:31.530 openLuup.init:: loading configuration user_data.json 2022-08-27 13:35:31.530 openLuup.userdata:: loading user_data json... 2022-08-27 13:35:31.532 luup.variable_set:: 2.openLuup.HouseMode was: EMPTY now: 1 #hooks:0 2022-08-27 13:35:31.532 openLuup.userdata:: loading rooms... 2022-08-27 13:35:31.532 openLuup.userdata:: ...room loading completed 2022-08-27 13:35:31.532 openLuup.userdata:: loading devices... 2022-08-27 13:35:31.532 luup.create_device:: [1] D_ZWaveNetwork.xml / / () 2022-08-27 13:35:31.532 openLuup.chdev:: ERROR: unable to read XML file I_ZWave.xml 2022-08-27 13:35:31.534 luup.create_device:: [3] D_AltAppStore.xml / I_AltAppStore.xml / D_AltAppStore.json (urn:schemas-upnp-org:device:AltAppStore:1) 2022-08-27 13:35:31.534 openLuup.userdata:: loading scenes... 2022-08-27 13:35:31.534 openLuup.userdata:: number of scenes = 0 2022-08-27 13:35:31.534 openLuup.userdata:: ...scene loading completed 2022-08-27 13:35:31.534 openLuup.userdata:: loading installed plugin info... 2022-08-27 13:35:31.534 openLuup.userdata:: [openLuup] openLuup (21.7.25) 2022-08-27 13:35:31.534 openLuup.userdata:: [AltAppStore] Alternate App Store (20.3.30) 2022-08-27 13:35:31.534 openLuup.userdata:: [VeraBridge] VeraBridge (not.installed) 2022-08-27 13:35:31.534 openLuup.userdata:: [8246] Alternate UI (not.installed) 2022-08-27 13:35:31.534 openLuup.userdata:: [Z-Way] Z-Way (not.installed) 2022-08-27 13:35:31.534 openLuup.userdata:: [Arduino] MySensors (not.installed) 2022-08-27 13:35:31.534 openLuup.userdata:: ...user_data loading completed 2022-08-27 13:35:31.534 openLuup.init:: running _openLuup_STARTUP_ 2022-08-27 13:35:31.534 luup_log:0: startup code completed 2022-08-27 13:35:31.534 openLuup.init:: init phase completed 2022-08-27 13:35:31.534 :: openLuup LOG ROTATION :: (runtime 0.0 days)
Any ideas on what could be wrong and why AltUI does not work?
-
Looks like it couldn't download the AltUI package because
curl
is missing. It was deprecated in some version of Debian I forget (10?)This should help
C
-
Yes, I was just looking for the previous posting of this issue. Thanks.
https://smarthome.community/topic/93/openluup-installation/8?
-
-
Yeah, Debian is a bit of a fight to get working these days with Lua and curl missing. Curl is becoming increasingly uncommon and I wonder when we will see openLuup move away (or is it just the app store?)
Or am I utterly mistaken
C
-
There used to be no dependency in openLuup on curl, but updates from GitHub became too hard to support from within openLuup itself, so I switched to using that. Perhaps another way is possible. My openLuup installations these days all run under Docker using Alpine, which seems to work fine. (I have even done the same under Windows, abandoning the native version where compatibility was becoming difficult too.)
Time, perhaps, to discuss openLuup’s future development needs more widely? Perhaps a new thread…