Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG] Swag doesn't start on latest version with mods #517

Open
1 task done
Eirikr70 opened this issue Nov 2, 2024 · 8 comments
Open
1 task done

[BUG] Swag doesn't start on latest version with mods #517

Eirikr70 opened this issue Nov 2, 2024 · 8 comments

Comments

@Eirikr70
Copy link

Eirikr70 commented Nov 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Swag can't reach stable state and doesn't work.

Expected Behavior

Sserver ready

Steps To Reproduce

Debian 12 Bookworm
Swag version 2.11.0-ls333 installed with Docker-compose
Mods Crowdsec, Maxmind, auto-reload

Environment

- OS:Debian 12 Bookworm
- How docker service was installed: Docker-compose

CPU architecture

x86-64

Docker creation

services:
  swag:
    image: lscr.io/linuxserver/swag:latest
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - TZ=Europe/Paris
      - URL=beta.tld
      - VALIDATION=http
      - SUBDOMAINS=xx,xx,xx,xx
      - DOCKER_MODS=linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-maxmind|linuxserver/mods:swag-crowdsec
      - CROWDSEC_API_KEY=verysecret
      - CROWDSEC_LAPI_URL=http://192.168.1.102:8081
      - MAXMINDDB_LICENSE_KEY=alsoverysecret
      - MAXMINDDB_USER_ID=xx
      - EMAIL= [email protected]
      - ONLY_SUBDOMAINS=false #optional
    volumes:
      - ./config:/config
      - /srv/nas/logs:/config/log
      - ./.htpasswd:/etc/nginx/.htpasswd
    ports:
      - xx.xx.xx.xx:443:443
      - xx.xx.xx.xx:80:80 #optional
    restart: on-failure:5
    cpu_shares: 4096

Container logs

...
swag  | **** Configuring CrowdSec nginx Bouncer ****
swag  | **** Adding swag-auto-reload deps to package install list ****
swag  | **** adding libmaxminddb to package install list ****
swag  | **** Successfully configured CrowdSec nginx Bouncer  ****
swag  | [pkg-install-init] **** Installing all mod packages ****
swag  | fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
swag  | fetch http://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
swag  | WARNING: fetching http://dl-cdn.alpinelinux.org/alpine/v3.20/main: IO ERROR
swag  | ERROR: unable to select packages:
swag  |   gettext (no such package):
swag  |     required by: world[gettext]
swag  |   inotify-tools (no such package):
swag  |     required by: world[inotify-tools]
swag  |   libmaxminddb (no such package):
swag  |     required by: world[libmaxminddb]
swag  |   lua-sec (no such package):
swag  |     required by: world[lua-sec]
swag  |   lua5.1 (no such package):
swag  |     required by: world[lua5.1]
swag  |   lua5.1-cjson (no such package):
swag  |     required by: world[lua5.1-cjson]
swag  |   nginx-mod-http-lua (no such package):
swag  |     required by: world[nginx-mod-http-lua]
swag  |                  lua-resty-string-0.15-r0[nginx-mod-http-lua]
swag  |   lua (no such package):
swag  |     required by: lua-resty-http-0.17.2-r0[lua]
swag  | Applying the maxmind mod...
swag  | sed: /etc/libmaxminddb.cron.conf: No such file or directory
swag  | sed: /etc/libmaxminddb.cron.conf: No such file or directory
swag  | Applied the maxmind mod
swag  | [custom-init] No custom files found, skipping...
swag  | MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
swag  | /config/nginx
swag  | ./run: line 15: inotifywait: command not found
swag  | [ls.io-init] done.
swag  | nginx: [emerg] unknown directive "lua_package_path" in /etc/nginx/http.d/crowdsec_nginx.conf:1
swag  | Server ready
swag  | MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
swag  | /config/nginx
swag  | ./run: line 15: inotifywait: command not found
swag  | nginx: [emerg] unknown directive "lua_package_path" in /etc/nginx/http.d/crowdsec_nginx.conf:1
swag  | MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
swag  | /config/nginx
swag  | ./run: line 15: inotifywait: command not found
swag  | nginx: [emerg] unknown directive "lua_package_path" in /etc/nginx/http.d/crowdsec_nginx.conf:1
swag  | MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
swag  | /config/nginx
Copy link

github-actions bot commented Nov 2, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

j0nnymoe commented Nov 2, 2024

Test without the maxmind mod

@Eirikr70
Copy link
Author

Eirikr70 commented Nov 2, 2024

Test without the maxmind mod

It runs flawlessly.

@j0nnymoe
Copy link
Member

j0nnymoe commented Nov 2, 2024

It could be an issue alpines end, as that's the repo it's having an issue with.

@Eirikr70
Copy link
Author

Eirikr70 commented Nov 2, 2024

I have reverted to previous version while waiting for the resolution. It runs fine although it took Swag a while to start.

@axionman
Copy link

axionman commented Nov 6, 2024

Hello,

I get the same message since updating SWAG to latest docker image today.
Without Crowdsec MOD, it works flawlessly though.

@j0nnymoe
Copy link
Member

j0nnymoe commented Nov 6, 2024

@axionman open a new thread please.

@LinuxServer-CI
Copy link
Contributor

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.

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

No branches or pull requests

4 participants