fititnt / ap-application-load-balancer

AP Application Load Balancer (AP-ALB). Sophisticated monolithic Ansible role to manage standalone and clusters of cross-platform and multicloud load balancers. Abstract HAProxy + OpenResty + On-the-fly auto HTTPS. Dedicated to Public Domain.
https://ap-application-load-balancer.etica.ai/
The Unlicense
1 stars 0 forks source link

RHEL/CentOS 8 and missing lua/luarocks base repositories for OpenResty #39

Closed fititnt closed 4 years ago

fititnt commented 4 years ago

Related:

RHEL/CentOS 8 is so new that some base repositories that are strong requisite, like luarocks for GUI/lua-resty-auto-ssl are not available for imediate use. This may need some work that very likely would need to be disabled later.

As for the OpenResty itself, from https://openresty.org/en/linux-packages.html we're setting as base the RHEL 8.x x86_64 (instead of the hardcoded CentOS 7.x x86_64).

fititnt commented 4 years ago
root@vmi321960 ~]# journalctl -xe
-- 
-- Unit openresty.service has begun starting up.
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3427]: nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3427]: nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test is successful
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]: nginx: [error] init_by_lua error: init_by_lua:2: module 'resty.auto-ssl' not found:
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no field package.preload['resty.auto-ssl']
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/site/lualib/resty/auto-ssl.ljbc'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.ljbc'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/lualib/resty/auto-ssl.ljbc'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/lualib/resty/auto-ssl/init.ljbc'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/site/lualib/resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/lualib/resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/lualib/resty/auto-ssl/init.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file './resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/share/lua/5.1/resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/share/lua/5.1/resty/auto-ssl/init.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl/init.lua'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/site/lualib/resty/auto-ssl.so'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/lualib/resty/auto-ssl.so'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file './resty/auto-ssl.so'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/lib/lua/5.1/resty/auto-ssl.so'
Dec 14 13:51:54 vmi321960.contaboserver.net nginx[3428]:         no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/auto-ssl.so'
lines 2552-2576/2597 99%
-- 
[root@vmi321960 /]# find / -iname "auto-ssl"
/usr/local/share/lua/5.3/resty/auto-ssl
[root@vmi321960 /]# 
fititnt commented 4 years ago

hotfix for this issue on RHEL/CentOS 8 (since they do not have luarocks even on epel, just for RHEL/CentOS 7) was implemented.

Eventually the hotfixes should be removed.