Skip to content

Don't work nginx bouncer #6

@DimitryVo

Description

@DimitryVo

Describe the bug
Can't run NGINX, I see some errors (in screen area).

Current environment

  • Architecture: amd64
  • Container Version: 'nginx 1.25.4'
  • Docker/Kubernetes Version: '25.0.4.'
  • Alpine: 3.19

To Reproduce
nginx -c /config/nginx/nginx.conf

Expected behavior
run nginx

Screenshots
nginx: [warn] [lua] http_connect.lua:21: failed to load module resty.openssl.*, mTLS isn't supported without lua-resty-openssl:
/usr/local/lib/lua/resty/openssl/x509/chain.lua:6: module 'resty.openssl.x509' not found:
no field package.preload['resty.openssl.x509']
no file '/usr/local/lib/lua/resty/openssl/x509.lua'
no file '/usr/local/lib/lua/crowdsec/resty/openssl/x509.lua'
no file '/usr/local/lib/lua/resty/openssl/x509/resty/openssl/x509.lua'
no file './resty/openssl/x509.lua'
no file '/usr/local/share/luajit-2.1/resty/openssl/x509.lua'
no file '/usr/local/share/lua/5.1/resty/openssl/x509.lua'
no file '/usr/local/share/lua/5.1/resty/openssl/x509/init.lua'
no file './resty/openssl/x509.lua'
no file './resty/openssl/x509.so'
no file '/usr/local/lib/lua/5.1/resty/openssl/x509.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'
stack traceback:
[C]: in function 'require'
/usr/local/lib/lua/resty/openssl/x509/chain.lua:6: in main chunk
[C]: in function 'require'
/usr/local/lib/lua/resty/http_connect.lua:15: in function </usr/local/lib/lua/resty/http_connect.lua:14>
[C]: in function 'xpcall'
/usr/local/lib/lua/resty/http_connect.lua:14: in main chunk
[C]: in function 'require'
/usr/local/lib/lua/resty/http.lua:166: in main chunk
[C]: in function 'require'
/usr/local/lib/lua/crowdsec/CrowdSec.lua:5: in main chunk
[C]: in function 'require'
/usr/local/lib/lua/crowdsec_nginx.lua:2: in main chunk
[C]: in function 'require'
init_by_lua(conf.d/lua.conf:23):8: in main chunk
nginx: [error] [lua] CrowdSec.lua:62: init(): error loading captcha plugin: no recaptcha site key provided, can't use recaptcha
nginx: [error] init_by_lua error: /usr/local/lib/lua/crowdsec/CrowdSec.lua:65: attempt to index field 'cache' (a nil value)
stack traceback:
/usr/local/lib/lua/crowdsec/CrowdSec.lua:65: in function 'init'
/usr/local/lib/lua/crowdsec_nginx.lua:3: in main chunk
[C]: in function 'require'
init_by_lua(conf.d/lua.conf:23):8: in main chunk

Log files
Add log files and console output related to the bug.

Additional context
Add any other context about the problem here.

Could you recommend anything? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions