Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Endless log error when capcha not used #1008

Open
1 task done
lordraiden opened this issue Jan 18, 2025 · 1 comment
Open
1 task done

[BUG] Endless log error when capcha not used #1008

lordraiden opened this issue Jan 18, 2025 · 1 comment

Comments

@lordraiden
Copy link

lordraiden commented Jan 18, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Name of mod

crowdsec

Name of base container

swag

Current Behavior

Endless log error, I don't want to any captha service anyway

[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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
init_by_lua(http.d/crowdsec_nginx.conf:4):3: 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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
init_by_lua(http.d/crowdsec_nginx.conf:4):3: in main chunk

Expected Behavior

No response

Steps To Reproduce

Just normal setup

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

swag:
    container_name: ${proxydmz_swag_name}
    image: lscr.io/linuxserver/swag
  # cap_add:
  #   - NET_ADMIN
    <<: [*config, *dns]
    networks:
      eth2:
        ipv4_address: ${proxydmz_swag_ip}
      proxydmz-netsocketproxy:
      proxydmz-crowdsec:
    ports:
      - 443:443
      - 80:80
    volumes:
      - ${dockerdir}/WebProxyDMZ/SWAG:/config

    environment:
      - PUID
      - PGID
      - TZ
      - DOCKER_MODS=linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-crowdsec
      - CROWDSEC_API_KEY=${proxydmz_crowdsec_lapi_key}
      - CROWDSEC_LAPI_URL=crowdsec:8080
      - CROWDSEC_MODE=stream
      - CROWDSEC_UPDATE_FREQUENCY=10
      - CROWDSEC_APPSEC_URL=crowdsec:7422
      - URL=fsdfdfsdfsdfsfdsdffd
      - SUBDOMAINS=wildcard
      - VALIDATION=dns
      - DNSPLUGIN=cloudflare

Container logs

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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
	/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
	init_by_lua(http.d/crowdsec_nginx.conf:4):3: 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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
	/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
	init_by_lua(http.d/crowdsec_nginx.conf:4):3: 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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
	/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
	init_by_lua(http.d/crowdsec_nginx.conf:4):3: 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/lua/crowdsec/crowdsec.lua:104: attempt to concatenate field 'APPSEC_HOST' (a nil value)
stack traceback:
	/usr/local/lua/crowdsec/crowdsec.lua:104: in function 'init'
	init_by_lua(http.d/crowdsec_nginx.conf:4):3: in main chunk
@LinuxServer-CI
Copy link

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: Issues
Development

No branches or pull requests

2 participants