linuxserver / docker-swag

Nginx webserver and reverse proxy with php support and a built-in Certbot (Let's Encrypt) client. It also contains fail2ban for intrusion prevention.
https://docs.linuxserver.io/general/swag
GNU General Public License v3.0
2.91k stars 246 forks source link

[BUG] Swag cannot download LinuxMods #505

Open Proximus888 opened 2 months ago

Proximus888 commented 2 months ago

Is there an existing issue for this?

Current Behavior

Using linuxmods results in long startup time and (ERROR) linuxserver/mods:swag-auto-reload digest could not be fetched from lscr.io error.

This setup was working perfectly until yesterday.

Expected Behavior

I expect the swag container to download the mods and start up.

Steps To Reproduce

Start container with `docker compose up -d'.

Container takes a lot of time to startup and doesn't load the mods.

Environment

- OS:
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:    24.04
Codename:   noble

- How docker service was installed:
docker --version
Docker version 27.2.1, build 9e34c9b

CPU architecture

x86-64

Docker creation

Docker compose:

services:
  swag:
    image: ghcr.io/linuxserver/swag
    container_name: swag
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Amsterdam
      - URL=<sensitive>
      - SUBDOMAINS=wildcard
      - DNSPLUGIN=cloudflare
      - EMAIL='<sensitive>'
      - VALIDATION=dns
      - DOCKER_MODS=linuxserver/mods:swag-maxmind|linuxserver/mods:swag-dashboard|linuxserver/mods:swag-auto-reload
      - DOCKER_MODS_DEBUG=true
      - MAXMINDDB_LICENSE_KEY=<sensitive>
      - MAXMINDDB_USER_ID=<sensitive>
    volumes:
      - ./config:/config
    network_mode: host
    ports:
      - 443:443
      - 80:80
      - 81:81
    restart: unless-stopped
    labels:
      - com.centurylinklabs.watchtower.monitor-only=true

### Container logs

```bash
[mod-init] Running Docker Modification Logic
[mod-init] (DEBUG) Running in debug mode
[mod-init] (DEBUG) Mod script version 3.20240626
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-maxmind'
[mod-init] Adding linuxserver/mods:swag-maxmind to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:swag-maxmind digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-dashboard'
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:swag-dashboard digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-auto-reload'
[mod-init] Adding linuxserver/mods:swag-auto-reload to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:swag-auto-reload digest could not be fetched from lscr.io
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 2.11.0-ls324
Build-date: 2024-09-14T03:24:47+00:00
───────────────────────────────────────

using keys found in /config/keys
Variables set:
PUID=1000
PGID=1000
TZ=Europe/Amsterdam
URL=<sensitive>
SUBDOMAINS=wildcard
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=cloudflare
EMAIL='<sensitive>'
STAGING=

Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for <sensitive> will be requested
E-mail address entered: '<sensitive>'
dns validation via cloudflare plugin is selected
Certificate exists; parameters unchanged; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
[pkg-install-init] (DEBUG) Package install script version 1.20240608
[pkg-install-init] (DEBUG) No pip packages defined for install, skipping.
[pkg-install-init] (DEBUG) No os packages defined for install, skipping.
[pkg-install-init] (DEBUG) Deleting temporary install lists for os and pip packages.
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Server ready
github-actions[bot] commented 2 months ago

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

LinuxServer-CI commented 1 month ago

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.