auto-ssl / auto-ssl/lua-resty-auto-ssl
lua_package_path configuration fails
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Description
Getting the following error when trying to start / restart nginx
```
init_by_lua error: init_by_lua:2: module 'resty.auto-ssl' not found:
no field package.preload['resty.auto-ssl']
no file './resty/auto-ssl.lua'
no file '/usr/share/lua/5.1/resty/auto-ssl.lua'
no file '/usr/share/lua/5.1/resty/auto-ssl/init.lua'
no file '/usr/lib/lua/5.1/resty/auto-ssl.lua'
no file '/usr/lib/lua/5.1/resty/auto-ssl/init.lua'
no file './resty/auto-ssl.so'
no file '/usr/local/lib/lua/5.1/resty/auto-ssl.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
```
This is what was configured for lua_package_path in nginx conf file
```
lua_package_path './?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.lua;/usr/lib/lua/5.1/?/init.lua';
lua_package_cpath './?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so';
```
Please advice.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the nginx configuration containing lua_package_path and lua_package_cpath, then reproduce the startup or restart failure involving the missing resty.auto-ssl module. Compare the configured search paths with the module location and verify that nginx can load the module successfully; the issue provides no repository file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100