Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fititnt opened this issue Dec 14, 2019 · 2 comments
Closed

Comments

@fititnt
Copy link
Owner

fititnt commented Dec 14, 2019

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 added a commit that referenced this issue Dec 14, 2019
@fititnt
Copy link
Owner Author

fititnt commented Dec 14, 2019

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 added a commit that referenced this issue Dec 14, 2019
fititnt added a commit that referenced this issue Dec 14, 2019
…itories ( {{ ansible_lsb.codename }} instead of bugged $(lsb_release -sc) ); other fixes related to dependencies
@fititnt
Copy link
Owner Author

fititnt commented Dec 24, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant