Ubuntu Server 20.04 Docker Deluge

General support for problems installing or using Deluge
Post Reply
ddoable
New User
New User
Posts: 1
Joined: Fri Feb 04, 2022 4:51 am

Ubuntu Server 20.04 Docker Deluge

Post by ddoable »

Running Ubuntu server, Docker, Deluge. I will also have plex, radarr, sonarr. So far I've stopped those containers to work on deluge.

I believe I'm having an issue with permissions as the download of ubuntu torrent from their site begins and then the download speed drops to 0. I downloaded the deluge app on my windows pc and mac laptop and tested the ubuntu torrent and was successfully able to download it. So I ruled out the firewall, but please correct me if i'm wrong about that.

I'm also accessing deluge through my ip 192.168.1.173:8112 through my windows pc and adding the ubuntu torrent through the webui.

In the webui, my download path is /mnt/media/torrents/incomplete. I have changed the completed setting to /mnt/media/torrents/completed. I've also changed the outgoing ports to 49152 to 65535. Still nothing.

I also have plex, jackett, radarr, sonarr, ombi. Plex works. I believe my jackett works as I was able to test TPB and receive an ok. I haven't gotten to radarr or sonarr yet.

Running linux server

Operating System: Ubuntu 20.04.3 LTS

Kernel: Linux 5.4.0-96-generic

Architecture: x86-64

within /etc/fstab

UUID=EC2053F62053C5EC /mnt/media ntfs-3g defaults,exec,uid=1000,gid=1000,dmask=022,umask=000,fmask=133 0 0

lsblk -f

sdc

└─sdc1 ntfs Memories EC2053F62053C5EC 3.6T 1% /mnt/media

docker

Server: Docker Engine - Community

Engine:

Version: 20.10.12

API version: 1.41 (minimum version 1.12)

deluge

docker run -d \
--name=deluge \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=America/New_York \
-e DELUGE_LOGLEVEL=error `#optional` \
-p 8112:8112 \
-p 6881:6881 \
-p 6881:6881/udp \
-v /mnt/media/appdata/deluge:/config \
-v /mnt/media/torrents:/downloads \
--restart unless-stopped \
lscr.io/linuxserver/deluge

I ran sudo chmod 777 -r /mnt/media. I get this when I run ls -la

(redacted)@media:/mnt/media$ ls -la

total 1284

drwxrwxrwx 1 root root 1310720 Feb 1 23:19 .

drwxrwxrwx 3 root root 4096 Feb 1 19:12 ..

drwxrwxrwx 1 root root 0 Jan 5 2021 '$RECYCLE.BIN'

drwxrwxrwx 1 root root 0 Feb 1 23:30 appdata

drwxrwxrwx 1 root root 0 Jan 31 23:03 Movies

drwxrwxrwx 1 root root 0 Jan 31 23:14 Photos

drwxrwxrwx 1 root root 0 Feb 1 01:56 Shows

drwxrwxrwx 1 root root 0 Feb 1 21:08 torrents

(redacted)@media:/mnt/media/torrents$ ls -la

total 1280

drwxrwxrwx 1 root root 0 Feb 1 21:08 .

drwxrwxrwx 1 root root 1310720 Feb 1 23:19 ..

drwxrwxrwx 1 root root 0 Jan 31 23:29 completed

drwxrwxrwx 1 root root 0 Feb 1 22:03 incomplete

(redacted)@media:/mnt/media/torrents/completed$ ls -la

total 0

drwxrwxrwx 1 root root 0 Jan 31 23:29 .

drwxrwxrwx 1 root root 0 Feb 1 21:08 ..
pvi25
New User
New User
Posts: 2
Joined: Sun Feb 06, 2022 1:41 pm

Re: Ubuntu Server 20.04 Docker Deluge

Post by pvi25 »

I have the same setup as you over here and also same problem. I tried a lot (different users, with and without PUID/PGID, port forwarding from router, recreated docker, restarted, ...), but still download speed drops to 0. I dont think its a permission problem on my side, because files in the config directory are created properly. I have searched several forums and people reported that somehow it magically started working at some point in time, but this has not happened with me (not succeeded for two weeks to get something downloaded, also not the ubuntu image for example).

You could try to remove the DELUGE_LOGLEVEL entry to the docker container, then it defaults to info/warning, maybe you can see some error messages in the log file (config/deluged.log), but no errors in there for me:

Code: Select all

12:22:37 [INFO    ][deluge.configmanager:52  ] Setting config directory to: /config
12:22:43 [INFO    ][deluge.core.daemon            :94  ] Deluge daemon 2.0.5-0-202112151848-ubuntu20.04.1
12:22:44 [INFO    ][deluge.core.core              :339 ] Successfully loaded session.state: /config/session.state
12:22:44 [INFO    ][deluge.core.core              :339 ] Successfully loaded session.state: /config/session.state.bak
12:22:44 [INFO    ][deluge.core.alertmanager      :148 ] Alert Queue Size set to 10000
12:22:46 [INFO    ][deluge.core.rpcserver         :402 ] Starting DelugeRPC server :58846
12:22:46 [INFO    ][deluge.core.daemon            :154 ] Deluge daemon starting...
12:22:46 [WARNING ][deluge.core.preferencesmanager:473 ] Unable to find GeoIP database file: /usr/share/GeoIP/GeoIP.dat
12:22:46 [INFO    ][deluge.core.authmanager       :228 ] Opening auth for load: /config/auth
12:22:46 [INFO    ][deluge.core.authmanager       :236 ] Successfully loaded auth: /config/auth
12:22:46 [INFO    ][deluge.core.torrentmanager    :1630] on_alert_external_ip: xxx.xxx.xxx.xxx
12:22:46 [INFO    ][deluge.core.torrentmanager    :818 ] Loading torrent state: /config/state/torrents.state
12:22:46 [INFO    ][deluge.core.torrentmanager    :834 ] Successfully loaded /config/state/torrents.state
12:22:46 [INFO    ][deluge.core.torrentmanager    :1081] Opening torrents.fastresume for load: /config/state/torrents.fastresume
12:22:46 [INFO    ][deluge.core.torrentmanager    :1092] Successfully loaded torrents.fastresume: /config/state/torrents.fastresume
12:22:47 [INFO    ][deluge.core.torrentmanager    :680 ] Torrent ubuntu-21.10-live-server-amd64.iso from user "localclient" loaded
12:22:47 [INFO    ][deluge.core.torrentmanager    :897 ] Finished loading 4 torrents in 0:00:00.687289
12:23:07 [INFO    ][deluge.core.rpcserver         :171 ] Deluge Client connection made from: 127.0.0.1:35054 
pvi25
New User
New User
Posts: 2
Joined: Sun Feb 06, 2022 1:41 pm

Re: Ubuntu Server 20.04 Docker Deluge

Post by pvi25 »

Ok, clear now what was wrong (stupid thing). My downloads folder in preferences was 'downloads', but it has to be '/downloads'. Weird that it doesnt generate some error somewhere, but with the slash it works now.
@ddoable, you should omit the '/mnt/media/torrents' in the webui preferences (the docker mount is the path you should refer to in the preferences)
Post Reply