Docker image not working properly

General support for problems installing or using Deluge
JLC_UK
New User
New User
Posts: 6
Joined: Sun Feb 23, 2025 4:05 pm

Docker image not working properly

Post by JLC_UK »

Have pulled and started the docker version of Deluge. WebUI works fine. Daemon is running OK.

When adding a torrent, it stalls after downloading the file list.

However a Windows machine running the Deluge application on the same network pulls the same torrent down at full speed.

Clearly I am missing something in the docker config ?
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Docker image not working properly

Post by ambipro »

Sounds like permissions issues, are you sure your permissions are properly set? Typically when it stalls like that but the tracker returns valid peers/seeds its just the issue of being unable to write to disk.
JLC_UK
New User
New User
Posts: 6
Joined: Sun Feb 23, 2025 4:05 pm

Re: Docker image not working properly

Post by JLC_UK »

I can run bash inside the container and from there have full access to the download directory.

Despite the fact the standalone windows client is working fine, I also port-mapped 58846 via my router to the host machine after https://www.canyouseeme.org/ said it couldn't see it. But that made no difference.
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Docker image not working properly

Post by ambipro »

Being able to "see" or read is not the same as being able to write, I would suggest you post your compose for deluge and an `ls -al` from the directory you are trying to write to and I will take a look.
JLC_UK
New User
New User
Posts: 6
Joined: Sun Feb 23, 2025 4:05 pm

Re: Docker image not working properly

Post by JLC_UK »

Many thanks

Here's what I see after I did ls > ls.txt

Code: Select all

root@902d0fc63931:/downloads# ls -al
total 12
drwxr-xr-x 2 abc  users 4096 Feb 24 14:54 .
drwxr-xr-x 1 root root  4096 Dec 22 15:54 ..
-rw-r--r-- 1 root root    81 Feb 24 14:53 ls.txt
root@902d0fc63931:/downloads#
Then just for completeness I deleted and checked and resumed a torrent and saw this:

Code: Select all

root@902d0fc63931:/downloads# ls -al
total 812
drwxr-xr-x 2 abc  users    4096 Feb 24 15:02 .
drwxr-xr-x 1 root root     4096 Dec 22 15:54 ..
-rw-r--r-- 1 abc  users 1032192 Feb 24 15:02 .c16fbc6d6b0f1f4e68e51bcf3cdc21a7d91a644b.parts
-rw-r--r-- 1 root root       81 Feb 24 14:53 ls.txt


rather verbose config (slightly edited)

Code: Select all

    {
        "Id": "902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e",
        "Created": "2024-12-22T15:54:43.300961342Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 1882,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2025-01-15T11:12:33.138378508Z",
            "FinishedAt": "2025-01-15T11:11:52.76681995Z"
        },
        "Image": "sha256:bd3235615cbc466d23000ab88b2210d560a87c6360e125e9b2c873a41557adb7",
        "ResolvConfPath": "/var/lib/docker/containers/902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e/hostname",
        "HostsPath": "/var/lib/docker/containers/902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e/hosts",
        "LogPath": "/var/lib/docker/containers/902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e/902d0fc63931d13a73795d9d0b7f6b2bed0a2a553337ca24db2b70829d5b6c3e-json.log",
        "Name": "/deluge",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": [
            "8ad50176e1ac078ed4d56e09bb507833b3debe32fb555b4c76c41328f66b5765"
        ],
        "HostConfig": {
            "Binds": [
                "/home/xxxxxxxx/deluge:/config",
                "/mnt/MediaRAID/Deluge:/downloads"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "58846/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "58846"
                    }
                ],
                "58946/udp": [
                    {
                        "HostIp": "",
                        "HostPort": "58946"
                    }
                ],
                "6881/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "6881"
                    }
                ],
                "6881/udp": [
                    {
                        "HostIp": "",
                        "HostPort": "6881"
                    }
                ],
                "8112/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8112"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/762bbe31aeb55f951c63f37408aa4e0a87a3aedd4d32f12b9b48559a19a34e76-init/diff:/var/lib/docker/overlay2/8e07b3e5c8a9e3472a9eb32dc2925644b7379d1d9c1f3b76897c555cd9e7f0f5/diff:/var/lib/docker/overlay2/1b51b3bf4612f1b7941f767ee423138472f3529f2160737aa59b3b8e22934cc3/diff:/var/lib/docker/overlay2/6178ae685ee84af4d751ea2143b726dadcbcf1b9b0d8c780c0589e564e3278f8/diff:/var/lib/docker/overlay2/2e4da48d5b4eb918bd08ba6208e6134bc87d686c67c6df0030a1191c86144b29/diff:/var/lib/docker/overlay2/440f7b1d160737d0a179aa5e571f7b0d1e9ca6f8d2cce3f60da0337bfbb28284/diff:/var/lib/docker/overlay2/99318cb5f5643c8f40bfb6be41cbb644304c39019ed5b46693ce34f697958cd8/diff:/var/lib/docker/overlay2/9959a459d23b454b3e1171fe7b77c68486d938819221c1d5325fafa016d77ab6/diff:/var/lib/docker/overlay2/a01cc20f8121740be7d8f7e077ab30f59d0d12864d63206ff2e19567b9e431c9/diff",
                "MergedDir": "/var/lib/docker/overlay2/762bbe31aeb55f951c63f37408aa4e0a87a3aedd4d32f12b9b48559a19a34e76/merged",
                "UpperDir": "/var/lib/docker/overlay2/762bbe31aeb55f951c63f37408aa4e0a87a3aedd4d32f12b9b48559a19a34e76/diff",
                "WorkDir": "/var/lib/docker/overlay2/762bbe31aeb55f951c63f37408aa4e0a87a3aedd4d32f12b9b48559a19a34e76/work"
            },
            "Name": "overlay2"
        },
        "SizeRw": 25663,
        "SizeRootFs": 144297056,
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/home/xxxxxxx/deluge",
                "Destination": "/config",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mnt/MediaRAID/Deluge",
                "Destination": "/downloads",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "902d0fc63931",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "58846/tcp": {},
                "58946/tcp": {},
                "58946/udp": {},
                "6881/tcp": {},
                "6881/udp": {},
                "8112/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PUID=1000",
                "PGID=1000",
                "TZ=Europe/London",
                "PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "PS1=$(whoami)@$(hostname):$(pwd)\\$ ",
                "HOME=/root",
                "TERM=xterm",
                "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
                "S6_VERBOSITY=1",
                "S6_STAGE2_HOOK=/docker-mods",
                "VIRTUAL_ENV=/lsiopy",
                "LSIO_FIRST_PARTY=true",
                "PYTHON_EGG_CACHE=/config/plugins/.python-eggs"
            ],
            "Cmd": null,
            "Image": "linuxserver/deluge",
            "Volumes": {
                "/config": {}
            },
            "WorkingDir": "/",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "build_version": "Linuxserver.io version:- 2.1.1-r8-ls241 Build-date:- 2023-11-27T15:33:06+00:00",
                "maintainer": "aptalca",
                "org.opencontainers.image.authors": "linuxserver.io",
                "org.opencontainers.image.created": "2023-11-27T15:33:06+00:00",
                "org.opencontainers.image.description": "[Deluge](http://deluge-torrent.org/) is a lightweight, Free Software, cross-platform BitTorrent client.    * Full Encryption  * WebUI  * Plugin System  * Much more...  ",
                "org.opencontainers.image.documentation": "https://docs.linuxserver.io/images/docker-deluge",
                "org.opencontainers.image.licenses": "GPL-3.0-only",
                "org.opencontainers.image.ref.name": "4999d426a848573b5c6d9cffc08eb3246275ebc6",
                "org.opencontainers.image.revision": "4999d426a848573b5c6d9cffc08eb3246275ebc6",
                "org.opencontainers.image.source": "https://github.com/linuxserver/docker-deluge",
                "org.opencontainers.image.title": "Deluge",
                "org.opencontainers.image.url": "https://github.com/linuxserver/docker-deluge/packages",
                "org.opencontainers.image.vendor": "linuxserver.io",
                "org.opencontainers.image.version": "2.1.1-r8-ls241"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "e68ca55ee6748c29e11e1fbc68e4207336ccda316d8c306ec1f9b8b255e6fe8b",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "58846/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "58846"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "58846"
                    }
                ],
                "58946/tcp": null,
                "58946/udp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "58946"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "58946"
                    }
                ],
                "6881/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "6881"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "6881"
                    }
                ],
                "6881/udp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "6881"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "6881"
                    }
                ],
                "8112/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8112"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "8112"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/e68ca55ee674",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "f2fd5ff04f93a95cafe6072f9a7dd206cbc8cd24a277ac8d387d2aa428f5a216",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "348d13187dfc4c1847d87e648068d433793fd05c69f6b166bf31cf724ccc41e0",
                    "EndpointID": "f2fd5ff04f93a95cafe6072f9a7dd206cbc8cd24a277ac8d387d2aa428f5a216",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }
            }
        }
    }





User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Docker image not working properly

Post by ambipro »

Where is that config from?

Can you run

sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose deluge

Replace "deluge" at the end with your container name (run from the host system) - this will generate a compose.

As far as the /downloads path goes, it looks like the permissions for that folder are set properly, assuming your user ID's and groups are set correctly.

Will need to see the compose to really tell you more, but can you do the ls -al from the host system on that path? Seeing it from inside the container is a little difficult...

If you can ls -al from /mnt/MediaRAID/Deluge and /mnt/MediaRAID/ - that would be useful.
JLC_UK
New User
New User
Posts: 6
Joined: Sun Feb 23, 2025 4:05 pm

Re: Docker image not working properly

Post by JLC_UK »

This is what I got :

Code: Select all

xxxxx@debian-12:~$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose deluge
Unable to find image 'ghcr.io/red5d/docker-autocompose:latest' locally
latest: Pulling from red5d/docker-autocompose
f18232174bc9: Pull complete
25025a4218ee: Pull complete
d1403b238159: Pull complete
b6b6003920d8: Pull complete
8f8c664807cd: Pull complete
cf86a067b414: Pull complete
459e7a3cb5c8: Pull complete
030f51e30236: Pull complete
df9d2649d01e: Pull complete
Digest: sha256:7a293a8bbfedb47caa3eb5210457f5685867f02d05e896d88c9b3b6feb2a9210
Status: Downloaded newer image for ghcr.io/red5d/docker-autocompose:latest
services:
  deluge:

    container_name: "deluge"

    entrypoint:
      - "/init"

    environment:
      - "PUID=1000"
      - "PGID=1000"
      - "TZ=Europe/London"
      - "PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      - "PS1=$$(whoami)@$$(hostname):$$(pwd)\\$$ "
      - "HOME=/root"
      - "TERM=xterm"
      - "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0"
      - "S6_VERBOSITY=1"
      - "S6_STAGE2_HOOK=/docker-mods"
      - "VIRTUAL_ENV=/lsiopy"
      - "LSIO_FIRST_PARTY=true"
      - "PYTHON_EGG_CACHE=/config/plugins/.python-eggs"

    hostname: "902d0fc63931"

    image: "linuxserver/deluge"

    ipc: "private"

    labels:
      build_version: "Linuxserver.io version:- 2.1.1-r8-ls241 Build-date:- 2023-11-27T15:33:06+00:00"
      maintainer: "aptalca"
      org.opencontainers.image.authors: "linuxserver.io"
      org.opencontainers.image.created: "2023-11-27T15:33:06+00:00"
      org.opencontainers.image.description: "[Deluge](http://deluge-torrent.org/) is a lightweight, Free\
        \ Software, cross-platform BitTorrent client.    * Full Encryption  * WebUI  * Plugin System \
        \ * Much more...  "
      org.opencontainers.image.documentation: "https://docs.linuxserver.io/images/docker-deluge"
      org.opencontainers.image.licenses: "GPL-3.0-only"
      org.opencontainers.image.ref.name: "4999d426a848573b5c6d9cffc08eb3246275ebc6"
      org.opencontainers.image.revision: "4999d426a848573b5c6d9cffc08eb3246275ebc6"
      org.opencontainers.image.source: "https://github.com/linuxserver/docker-deluge"
      org.opencontainers.image.title: "Deluge"
      org.opencontainers.image.url: "https://github.com/linuxserver/docker-deluge/packages"
      org.opencontainers.image.vendor: "linuxserver.io"
      org.opencontainers.image.version: "2.1.1-r8-ls241"

    logging:
      driver: "json-file"
      options: {}

    mac_address: "02:42:ac:11:00:02"

    network_mode: "bridge"

    ports:
      - "58846:58846/tcp"
      - "58946:58946/udp"
      - "6881:6881/tcp"
      - "6881:6881/udp"
      - "8112:8112/tcp"

    restart: "unless-stopped"

    volumes:
      - "/home/xxxxx/deluge:/config"
      - "/mnt/MediaRAID/Deluge:/downloads"

    working_dir: "/"

version: "3.6"
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Docker image not working properly

Post by ambipro »

OK, and from the host system (not from inside the container) can you show me a `ls -al` when you are in /mnt/MediaRAID/Deluge as well as /mnt/MediaRAID

and what user is PUID 1000?
JLC_UK
New User
New User
Posts: 6
Joined: Sun Feb 23, 2025 4:05 pm

Re: Docker image not working properly

Post by JLC_UK »

Code: Select all

xxxxx@debian-12:/mnt/MediaRAID/Deluge$ ls -al
total 812
drwxr-xr-x  2 xxxxx    xxxxx    4096 Feb 24 15:02 .
drwxr-xr-x 11 root  root     4096 Dec  3  2023 ..
-rw-r--r--  1 xxxxx xxxxx    1032192 Feb 24 15:02 .c16fbc6d6b0f1f4e68e51bcf3cdc21a7d91a644b.parts
-rw-r--r--  1 root  root       81 Feb 24 14:53 ls.txt
and

Code: Select all

xxxxx@debian-12:/mnt/MediaRAID/Deluge$ id
uid=1000(xxxxx) gid=1000(xxxxx) groups=1000(xxxxx),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),106(netdev),110(docker)
j
User avatar
ambipro
Moderator
Moderator
Posts: 672
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Docker image not working properly

Post by ambipro »

it does look like you could be dealing with bad permissions.

Code: Select all

chown -R 1000:1000 /mnt/MediaRAID/Deluge
chmod -R 774 /mnt/MediaRAID/Deluge
This should correct the permissions
Post Reply