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.66k stars 231 forks source link

[BUG] SWAG dashboard: blank page #447

Closed berthomejulien closed 5 months ago

berthomejulien commented 5 months ago

Is there an existing issue for this?

Current Behavior

When I tried to connect to the SWAG dashboard I got a blank page. I tried in several browsers to see if the problem comes from there but the result is the same.

Expected Behavior

The SWAG dashboard page.

Steps To Reproduce

  1. Go to dashboard.mydomain.duckdns.org.
  2. Login via authelia.
  3. Redirect to dashboard.mydomain.duckdns.org.
  4. Show a blank page.

Environment

- OS:OMV 6.9.11-4 (Shaitan)
- How docker service was installed: From OMV interface with docker-compose.

CPU architecture

x86-64

Docker creation

---
# https://github.com/linuxserver/docker-swag
version: "2.1"
services:
  swag:
    image: lscr.io/linuxserver/swag:latest
    container_name: swag
    labels:
      - homepage.group=Services
      - homepage.name=Dashboard
      - homepage.icon=linuxserver-io.svg
      - homepage.href=https://dashboard.mydomain.duckdns.org/
      - homepage.ping=https://dashboard.mydomain.duckdns.org/
      - homepage.description=Swag dashboard
      - diun.enable=true
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=998
      - PGID=100
      - TZ=Europe/Paris
      - URL=mydomain.duckdns.org
      - VALIDATION=duckdns
      - DUCKDNSTOKEN=XXX
      - SUBDOMAINS=wildcard
      - EMAIL=email@gmail.com
      - DOCKER_MODS=linuxserver/mods:swag-dbip|linuxserver/mods:swag-dashboard
    volumes:
      - /srv/dev-disk-by-uuid-0d2d7228-ba79-465a-92d4-e89016951f22/system/appdata/swag/config:/config
      - /srv/dev-disk-by-uuid-0d2d7228-ba79-465a-92d4-e89016951f22/system/appdata/authelia/config/authelia.log:/authelia/authelia.log:ro
      - /srv/dev-disk-by-uuid-0d2d7228-ba79-465a-92d4-e89016951f22/system/appdata/jellyfin/log:/jellyfin/log:ro
    ports:
      - 443:443
    restart: unless-stopped
    extra_hosts:
      - nas.host:192.168.1.254
    networks:
      - swag
      - authelia
      - portainer
      - homepage
      - jellyfin
      - filebrowser
      - duplicati

networks:
  swag:
    name: swag
  portainer:
    name: portainer
    external: true
  homepage:
    name: homepage
    external: true
  jellyfin:
    name: jellyfin
    external: true
  filebrowser:
    name: filebrowser
    external: true
  duplicati:
    name: duplicati
    external: true
  authelia:
    name: authelia
    external: true

Container logs

Server ready
[mod-init] Attempting to run Docker Modification Logic
[mod-init] Adding linuxserver/mods:swag-dbip to container
[mod-init] linuxserver/mods:swag-dbip at sha256:030971d1da84c696a68f83198102981bef5c9a37aa54666e48915723ecd50a70 has been previously applied skipping
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] linuxserver/mods:swag-dashboard at sha256:594c67a6b598c080f019ef64b7978d4408e451f88530293646e395d8324460a7 has been previously applied skipping
[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:    998
User GID:    100
───────────────────────────────────────
using keys found in /config/keys
Variables set:
PUID=998
PGID=100
TZ=Europe/Paris
URL=mydomain.duckdns.org
SUBDOMAINS=wildcard
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=duckdns
CERTPROVIDER=
DNSPLUGIN=
EMAIL=email@gmail.com
STAGING=
the resulting certificate will only cover the subdomains due to a limitation of duckdns, so it is advised to set the root location to use www.subdomain.duckdns.org
Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
Wildcard cert for mydomain.duckdns.org will be requested
E-mail address entered: email@gmail.com
dns validation via duckdns 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).
Applying the dbip mod...
**** Applying the SWAG dashboard mod... ****
Applied the dbip mod
**** goaccess already installed, skipping ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Server ready
github-actions[bot] commented 5 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.