Giter Club home page Giter Club logo

Comments (4)

zhixiangjoy avatar zhixiangjoy commented on August 23, 2024

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.

buixor avatar buixor commented on August 23, 2024

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.

buixor avatar buixor commented on August 23, 2024

@zhixiangjoy any update on this ?

from cs-nginx-bouncer.

zhixiangjoy avatar zhixiangjoy commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.