Comments (4)
Final I try to install openresty ,but still get errors:
Dec 11 11:21:49 nginx-proxy03 systemd[1]: Starting The OpenResty Application Platform...
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: nginx: [error] init_by_lua error: /usr/local/lua/crowdsec/lrucache.lua:49: attempt to redefine 'lrucache_queue_s' at line 2
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: stack traceback:
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: [C]: in function 'cdef'
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: /usr/local/lua/crowdsec/lrucache.lua:49: in main chunk
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: [C]: in function 'require'
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: /usr/local/lua/crowdsec/CrowdSec.lua:4: in main chunk
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: [C]: in function 'require'
Dec 11 11:21:49 nginx-proxy03 nginx[4326]: init_by_lua:2: in main chunk
Dec 11 11:21:49 nginx-proxy03 systemd[1]: openresty.service: Control process exited, code=exited, status=1/FAILURE
Dec 11 11:21:49 nginx-proxy03 systemd[1]: openresty.service: Failed with result 'exit-code'.
Dec 11 11:21:49 nginx-proxy03 systemd[1]: Failed to start The OpenResty Application Platform.
from cs-nginx-bouncer.
Hello,
Thanks for the report !
You shouldn't have to use openresty, nginx mod lua should do the trick.
The error nginx: [emerg] unknown directive "lua_package_path" in /etc/nginx/conf.d/crowdsec_nginx.conf:1
looks like lua was actually not installed as a nginx module (this directive is one of nginx).
Can you check if lua is correctly enabled at nginx level ?
Thanks,
from cs-nginx-bouncer.
@zhixiangjoy any update on this ?
from cs-nginx-bouncer.
Thanks for your reply, It's my fault。I had modify the nginx.conf which had delete the line :
include /etc/nginx/modules-enabled/*.conf;
In that situation, nginx can't loading the lua lib.
from cs-nginx-bouncer.
Related Issues (20)
- Lua mod directory not found HOT 1
- Update sources before dependency installation
- No license? HOT 2
- APT installation broken when using Nginx's APT repository. HOT 3
- Bug/ crowdsec-nginx-bouncer: is looking for lua 5.1 files instead 5.3 HOT 5
- Plesk panel configration files messged up after installing crowdsec-nginx-bouncer HOT 3
- No Ubuntu 22 (Jammy) support HOT 2
- crowdsec-nginx-bouncer conflict with nginx-common HOT 3
- can't return 403 HOT 6
- Unable to locate package crowdsec-nginx-bouncer HOT 1
- Installing crowdsec-nginx-bouncer failed with lua.h issue HOT 11
- Documentation needs to be updated to include other captcha methods HOT 1
- Lua runtime error: no request found HOT 1
- CentOS/Almalinux 8 support HOT 1
- certbot nginx plugin does not support lua HOT 3
- Error install crowdsec-nginx-bouncer HOT 4
- Nginx Error - Module 'resty.string' not found HOT 5
- [deps] Pin version via install.sh
- Unable to install nginx bouncer HOT 2
- [install] Scripts states generation of key failed and must manually set it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs-nginx-bouncer.