linuxserver / docker-deluge

GNU General Public License v3.0
251 stars 89 forks source link

[BUG] Deluge webui password keeps resetting to `deluge` - other settings remain persisted. #205

Closed troykelly closed 1 month ago

troykelly commented 4 months ago

Is there an existing issue for this?

Current Behavior

The deluge web ui randomly (not after a restart) resets the password to deluge. This does not occur specifically after a restart, and force restarting does not exhibit the issue. Other configuration changes are persisted - it appears to just be the webui password that is being reset to the default.

Expected Behavior

Once set, the password should remain and not be reset to the default

Steps To Reproduce

  1. Ubuntu 24.04 LTS, x86_64
  2. With this config:
{
    "file": 2,
    "format": 1
}{
    "base": "/",
    "cert": "ssl/daemon.cert",
    "default_daemon": "",
    "enabled_plugins": [],
    "first_login": true,
    "https": false,
    "interface": "0.0.0.0",
    "language": "",
    "pkey": "ssl/daemon.pkey",
    "port": 8112,
    "pwd_salt": "[REDACTED]",
    "pwd_sha1": "[REDACTED]",
    "session_timeout": 3600,
    "sessions": {
        "[REDACTED]": {
            "expires": 172152DDDD.0,
            "level": 10,
            "login": "admin"
        }
    },
    "show_session_speed": false,
    "show_sidebar": true,
    "sidebar_multiple_filters": true,
    "sidebar_show_zero": false,
    "theme": "gray"
}
  1. Leave deluge running
  2. After some time return
  3. be unable to log in

Environment

- OS: Ubuntu 24.04 LTS
- How docker service was installed: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

CPU architecture

x86-64

Docker creation

deluge:
    image: lscr.io/linuxserver/deluge:latest
    <<: *x-logging
    container_name: deluge
    extra_hosts:
      - "host.docker.internal:host-gateway"
    networks:
      - proxy
      - backend
    labels:
      - autoheal=true
      - purpose=deluge
      - site=${DOMAIN_NAME}
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.constraint-label=traefik-public
      #----------------------------------------------- routers for: deluge --------------------------------------------------
      # http
      - traefik.http.routers.deluge-http.rule=(Host(`deluge.${DOMAIN_NAME}`))
      - traefik.http.routers.deluge-http.entrypoints=http
      - traefik.http.routers.deluge-http.middlewares=servicests
      - traefik.http.routers.deluge-http.middlewares=https-redirect
      - traefik.http.routers.deluge-http.service=deluge
      # https
      - traefik.http.routers.deluge-https.rule=(Host(`deluge.${DOMAIN_NAME}`))
      - traefik.http.routers.deluge-https.entrypoints=http3
      - traefik.http.routers.deluge-https.service=deluge
      - traefik.http.routers.deluge-https.tls.certresolver=${DOMAIN_RESOLVER}
      - traefik.http.routers.deluge-https.middlewares=gzip,limit
      #====================================================== services ===========================================================
      - traefik.http.services.deluge.loadbalancer.server.port=8112
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - DELUGE_LOGLEVEL=error
    tmpfs:
      - "/tmp"
    volumes:
      - "./deluge:/config"
      - "[REDACTED]:/media/[REDACTED]"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "[REDACTED]:/media/[REDACTED]:rw"
      - "./torrents/${MEDIA_USERNAME}/download:/downloads"
      - "./torrents/${MEDIA_USERNAME}/watch:/watch"
    ports:
      - "127.0.0.1:8112:8112"
      - "127.0.0.1:58846:58846"
      - "127.0.0.1:58846:58846/udp"
      - ${MEDIA_PORT_DELUGE:-6882}:${MEDIA_PORT_DELUGE:-6882}
      - ${MEDIA_PORT_DELUGE:-6882}:${MEDIA_PORT:-6882}/udp
    healthcheck:
      test:
        [
          "CMD-SHELL",
          "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:8112 | grep -E '^(401|200)$' || exit 1",
        ]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 600s
    deploy:
      resources:
        limits:
          cpus: "4.00"
          memory: ${MEMORY_LIMIT}
      restart_policy:
        condition: unless-stopped
        delay: 5s
    restart: unless-stopped
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: ${MEMORY_LIMIT}

Container logs

➜  ~ docker compose -f ~/torrent/docker-compose.yaml logs deluge              
deluge  | [migrations] started
deluge  | [migrations] no migrations found
deluge  | ───────────────────────────────────────
deluge  | 
deluge  |       ██╗     ███████╗██╗ ██████╗
deluge  |       ██║     ██╔════╝██║██╔═══██╗
deluge  |       ██║     ███████╗██║██║   ██║
deluge  |       ██║     ╚════██║██║██║   ██║
deluge  |       ███████╗███████║██║╚██████╔╝
deluge  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
deluge  | 
deluge  |    Brought to you by linuxserver.io
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | To support LSIO projects visit:
deluge  | https://www.linuxserver.io/donate/
deluge  | 
deluge  | ───────────────────────────────────────
deluge  | GID/UID
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | User UID:    1000
deluge  | User GID:    1000
deluge  | ───────────────────────────────────────
deluge  | Linuxserver.io version: 2.1.1-r10-ls279
deluge  | Build-date: 2024-07-15T15:39:39+00:00
deluge  | ───────────────────────────────────────
deluge  |     
deluge  | [custom-init] No custom files found, skipping...
deluge  | Connection to 127.0.0.1 58846 port [tcp/*] succeeded!
deluge  | Connection to 127.0.0.1 8112 port [tcp/*] succeeded!
deluge  | [ls.io-init] done.
deluge  | Caught SIGTERM signal!
deluge  | Tell Deluged to shut down.
deluge  | [migrations] started
deluge  | [migrations] no migrations found
deluge  | usermod: no changes
deluge  | ───────────────────────────────────────
deluge  | 
deluge  |       ██╗     ███████╗██╗ ██████╗
deluge  |       ██║     ██╔════╝██║██╔═══██╗
deluge  |       ██║     ███████╗██║██║   ██║
deluge  |       ██║     ╚════██║██║██║   ██║
deluge  |       ███████╗███████║██║╚██████╔╝
deluge  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
deluge  | 
deluge  |    Brought to you by linuxserver.io
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | To support LSIO projects visit:
deluge  | https://www.linuxserver.io/donate/
deluge  | 
deluge  | ───────────────────────────────────────
deluge  | GID/UID
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | User UID:    1000
deluge  | User GID:    1000
deluge  | ───────────────────────────────────────
deluge  | Linuxserver.io version: 2.1.1-r10-ls279
deluge  | Build-date: 2024-07-15T15:39:39+00:00
deluge  | ───────────────────────────────────────
deluge  |     
deluge  | [custom-init] No custom files found, skipping...
deluge  | Connection to 127.0.0.1 58846 port [tcp/*] succeeded!
deluge  | Connection to 127.0.0.1 8112 port [tcp/*] succeeded!
deluge  | [ls.io-init] done.
deluge  | [migrations] started
deluge  | [migrations] no migrations found
deluge  | usermod: no changes
deluge  | ───────────────────────────────────────
deluge  | 
deluge  |       ██╗     ███████╗██╗ ██████╗
deluge  |       ██║     ██╔════╝██║██╔═══██╗
deluge  |       ██║     ███████╗██║██║   ██║
deluge  |       ██║     ╚════██║██║██║   ██║
deluge  |       ███████╗███████║██║╚██████╔╝
deluge  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
deluge  | 
deluge  |    Brought to you by linuxserver.io
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | To support LSIO projects visit:
deluge  | https://www.linuxserver.io/donate/
deluge  | 
deluge  | ───────────────────────────────────────
deluge  | GID/UID
deluge  | ───────────────────────────────────────
deluge  | 
deluge  | User UID:    1000
deluge  | User GID:    1000
deluge  | ───────────────────────────────────────
deluge  | Linuxserver.io version: 2.1.1-r10-ls279
deluge  | Build-date: 2024-07-15T15:39:39+00:00
deluge  | ───────────────────────────────────────
deluge  |     
deluge  | [custom-init] No custom files found, skipping...
deluge  | Connection to 127.0.0.1 58846 port [tcp/*] succeeded!
deluge  | 09:12:20 [ERROR   ][deluge.core.torrentmanager    :1672] on_alert_fastresume_rejected: [REDACTED] fast resume rejected. file_stat(/downloads/[REDACTED]/[REDACTED]): mismatching file size
deluge  | 09:12:29 [ERROR   ][deluge.config              :410 ] a bytes-like object is required, not 'str'
deluge  | Traceback (most recent call last):
deluge  |   File "/usr/lib/python3.12/site-packages/deluge/config.py", line 408, in load
deluge  |     self.__config.update(pickle.loads(data))
deluge  |                          ^^^^^^^^^^^^^^^^^^
deluge  | TypeError: a bytes-like object is required, not 'str'
deluge  | Connection to 127.0.0.1 8112 port [tcp/*] succeeded!
deluge  | [ls.io-init] done.
deluge  | 09:12:47 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.2)
deluge  | 09:12:52 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.2)
deluge  | 09:13:10 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.11)
deluge  | 09:13:16 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.7)
deluge  | 09:13:16 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.11)
deluge  | 09:13:22 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.7)
deluge  | 09:13:28 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.18.0.8)
deluge  | 09:13:42 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.18.0.8)
deluge  | 09:13:57 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.18.0.8)
deluge  | 09:14:46 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.18.0.8)
deluge  | 09:16:15 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.5)
deluge  | 09:16:16 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.5)
deluge  | 09:16:23 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.18.0.8)
deluge  | 09:16:27 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.10)
deluge  | 09:16:33 [ERROR   ][deluge.ui.web.auth         :1672] Login failed (ClientIP 172.19.0.10)
github-actions[bot] commented 4 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 3 months 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.

github-actions[bot] commented 2 weeks ago

This issue is locked due to inactivity