auto-ssl / lua-resty-auto-ssl

On the fly (and free) SSL registration and renewal inside OpenResty/nginx with Let's Encrypt.
MIT License
1.93k stars 182 forks source link

After Installation on Ubuntu 20.04. I am getting following error message to start openresty service #261

Closed securewebsite closed 3 years ago

securewebsite commented 3 years ago

ul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.ljbc' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty/auto-ssl.ljbc' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty/auto-ssl/init.ljbc' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty/auto-ssl/init.lua' Jul 21 19:07:09 abto nginx[5215]: no file './resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/share/lua/5.1/resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/share/lua/5.1/resty/auto-ssl/init.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl/init.lua' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty/auto-ssl.so' Jul 21 19:07:09 abto nginx[5215]: no file './resty/auto-ssl.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/lib/lua/5.1/resty/auto-ssl.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/auto-ssl.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/lib/lua/5.1/loadall.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/site/lualib/resty.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/lualib/resty.so' Jul 21 19:07:09 abto nginx[5215]: no file './resty.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/lib/lua/5.1/resty.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so' Jul 21 19:07:09 abto nginx[5215]: no file '/usr/local/lib/lua/5.1/loadall.so' Jul 21 19:07:09 abto nginx[5215]: stack traceback: Jul 21 19:07:09 abto nginx[5215]: [C]: in function 'require' Jul 21 19:07:09 abto nginx[5215]: init_by_lua:2: in main chunk

Which file should I change to give proper path of files?

securewebsite commented 3 years ago

this is more information

nginx: [error] init_by_lua error: init_by_lua:2: module 'resty.auto-ssl' not found: no field package.preload['resty.auto-ssl'] no file '/usr/local/openresty/site/lualib/resty/auto-ssl.ljbc' no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.ljbc' no file '/usr/local/openresty/lualib/resty/auto-ssl.ljbc' no file '/usr/local/openresty/lualib/resty/auto-ssl/init.ljbc' no file '/usr/local/openresty/site/lualib/resty/auto-ssl.lua' no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.lua' no file '/usr/local/openresty/lualib/resty/auto-ssl.lua' no file '/usr/local/openresty/lualib/resty/auto-ssl/init.lua' no file './resty/auto-ssl.lua' no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/auto-ssl.lua' no file '/usr/local/share/lua/5.1/resty/auto-ssl.lua' no file '/usr/local/share/lua/5.1/resty/auto-ssl/init.lua' no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl.lua' no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl/init.lua' no file '/usr/local/openresty/site/lualib/resty/auto-ssl.so' no file '/usr/local/openresty/lualib/resty/auto-ssl.so' no file './resty/auto-ssl.so' no file '/usr/local/lib/lua/5.1/resty/auto-ssl.so' no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/auto-ssl.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file '/usr/local/openresty/site/lualib/resty.so' no file '/usr/local/openresty/lualib/resty.so' no file './resty.so' no file '/usr/local/lib/lua/5.1/resty.so' no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' init_by_lua:2: in main chunk

securewebsite commented 3 years ago

After reinstallation I am getting following error message

/usr/local/lib/luarocks/rocks# luarocks install lua-resty-auto-ssl Installing https://luarocks.org/lua-resty-auto-ssl-0.13.1-1.src.rock sh: 1: make: not found

Error: Build error: Failed building.

securewebsite commented 3 years ago

Jul 22 11:54:20 abto nginx[31287]: no field package.preload['resty.auto-ssl'] Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl.ljbc' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.ljbc' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty/auto-ssl.ljbc' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty/auto-ssl/init.ljbc' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl/init.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty/auto-ssl/init.lua' Jul 22 11:54:20 abto nginx[31287]: no file './resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/share/lua/5.1/resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/share/lua/5.1/resty/auto-ssl/init.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/luajit/share/lua/5.1/resty/auto-ssl/init.lua' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty/auto-ssl.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty/auto-ssl.so' Jul 22 11:54:20 abto nginx[31287]: no file './resty/auto-ssl.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/lib/lua/5.1/resty/auto-ssl.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/luajit/lib/lua/5.1/resty/auto-ssl.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/lib/lua/5.1/loadall.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/site/lualib/resty.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/lualib/resty.so' Jul 22 11:54:20 abto nginx[31287]: no file './resty.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/lib/lua/5.1/resty.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so' Jul 22 11:54:20 abto nginx[31287]: no file '/usr/local/lib/lua/5.1/loadall.so' Jul 22 11:54:20 abto nginx[31287]: stack traceback: Jul 22 11:54:20 abto nginx[31287]: [C]: in function 'require' Jul 22 11:54:20 abto nginx[31287]: init_by_lua:2: in main chunk Jul 22 11:54:20 abto systemd[1]: openresty.service: Control process exited, code=exited, status=1/FAILURE

securewebsite commented 3 years ago

Issue has been solved now. I have to add lua_package_path in nginx.conf to resolve the issue. Thanks :)