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 cannot download LinuxMods #505

Open
1 task done
Proximus888 opened this issue Sep 16, 2024 · 4 comments
Open
1 task done

[BUG] Swag cannot download LinuxMods #505

Proximus888 opened this issue Sep 16, 2024 · 4 comments

Comments

@Proximus888
Copy link

Proximus888 commented Sep 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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
Copy link

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
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.

@fistwho
Copy link

fistwho commented Nov 27, 2024

I have the same issue. The container start but need about 40 Minutes. I activate the debug mode and try the repo force env, but no difference. I check the DNS Server, reboot etc.. still the same problem

Edit 1: I also reinstall my VPS and setup swag again. Still same problem!

VPS with 80GB SSD 4 Cores & 8 GB RAM
Operating System: Ubuntu 24.04.1 LTS
Kernel: Linux 6.8.0-49-generic
Architecture: x86-64
Docker version 27.3.1, build ce12230
services:
  swag:
    image: ghcr.io/linuxserver/swag:latest
    restart: always
    container_name: swag
    hostname: XXXXXXXX
    cap_add:
      - NET_ADMIN
    depends_on:
      - mariadb
      - redis
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - URL=XXXXXX
      - VALIDATION=dns
      - SUBDOMAINS=wildcard
      - DNSPLUGIN=cloudflare
      - PROPAGATION=60
      - ONLY_SUBDOMAINS=false
      - EXTRA_DOMAINS=XXXXX
      - STAGING=false
      - UMASK=022
      - MAXMINDDB_LICENSE_KEY=XXXXXX
      - MAXMINDDB_USER_ID=XXXXXX
      - DOCKER_MODS=linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-cloudflare-real-ip|linuxserver/mods:swag-imagemagick|linuxserver/mods:swag-maxmind
      - DOCKER_MODS_DEBUG=true
      - DOCKER_MODS_FORCE_REGISTRY=false
    volumes:
      - ./swag-config:/config
    ports:
      - 443:443
      - 80:80

Logs from swag start:

[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-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
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-cloudflare-real-ip'
[mod-init] Adding linuxserver/mods:swag-cloudflare-real-ip 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-cloudflare-real-ip digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-imagemagick'
[mod-init] Adding linuxserver/mods:swag-imagemagick 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-imagemagick digest could not be fetched from lscr.io
[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
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

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

   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: 3.0.1-ls338
Build-date: 2024-11-16T03:32:33+00:00
───────────────────────────────────────

using keys found in /config/keys
Variables set:
PUID=1000
PGID=1000
TZ=Europe/Berlin
URL=xxxxxxxxxxxxxx
SUBDOMAINS=wildcard
EXTRA_DOMAINS=xxxxxxxxxxxx
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=cloudflare
EMAIL=
STAGING=false

Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for xxxxxxxxxxxxxxxx will be requested
EXTRA_DOMAINS entered, processing
Extra domains processed are: xxxxxxxxxxxx
No e-mail address entered or address invalid
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

After the start container is not accessible over port 443 or 80

I dont know what is wrong.

@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

3 participants