Deluge disconnects from all peers

General support for problems installing or using Deluge
Jimmy
New User
New User
Posts: 6
Joined: Wed Aug 07, 2019 2:55 am

Deluge disconnects from all peers

Post by Jimmy »

Whenever a torrent is added or resumed from a paused state, it successfully finds peers to connect to. However, the download speed is 0 kb/s for all peers, and Deluge disconnects from all of them within a few seconds. It attempts to reconnect but immediately disconnects again. This cycles a couple of times before giving up.

I am using Deluge in a Docker container on Debian Linux.
I am downloading a torrent for GIMP image editor (since I know this torrent will work).
I am connected to a VPN using OpenVPN.
All other containers that use the VPN have no problems.
The same torrent will work just find on my Windows machine with BitTorrent without a VPN.

I have looked everywhere to find a solution to the problem.
Any help is appreciated!
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge disconnects from all peers

Post by gderf »

Do all torrents behave this way, or just the one for GIMP?

Have you looked at the container log?

I suspect that you may have a permissions problem and Deluge is unable to write to the location where your downloads are going to.
Jimmy
New User
New User
Posts: 6
Joined: Wed Aug 07, 2019 2:55 am

Re: Deluge disconnects from all peers

Post by Jimmy »

All torrents are behaving like this.
The only error I see is this at startup:

Code: Select all

IOError when loading translations: [Errno 2] No translation file found for domain: 'deluge'
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge disconnects from all peers

Post by gderf »

Post your docker run command that you used to create the container or otherwise provide the complete container configuration.
Jimmy
New User
New User
Posts: 6
Joined: Wed Aug 07, 2019 2:55 am

Re: Deluge disconnects from all peers

Post by Jimmy »

Deluge:
image: linuxserver/deluge
restart: always
network_mode: service:vpn
volumes:
- /etc/localtime:/etc/localtime:ro
- /Docker/docker-deluge/config/:/config
- /Docker/docker-media/downloads/ongoing/:/downloads
environment:
- PUID=1001
- PGID=999
- TZ=US/Central
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge disconnects from all peers

Post by gderf »

In your Deluge Preferences | Downloads | Folders what exact paths do you have there?
Jimmy
New User
New User
Posts: 6
Joined: Wed Aug 07, 2019 2:55 am

Re: Deluge disconnects from all peers

Post by Jimmy »

For "Download to" I have: "/downloads"

"Move completed to" and "Copy of .torrent files to" are not enabled
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge disconnects from all peers

Post by gderf »

Are you sure that /Docker/docker-media/downloads/ongoing can be written to by the user that Deluge runs as (1001)?

I would set UMASK_SET to 022 in the environment variables.
Jimmy
New User
New User
Posts: 6
Joined: Wed Aug 07, 2019 2:55 am

Re: Deluge disconnects from all peers

Post by Jimmy »

I'm not very good with file permissions. I set the UMASK_SET to 022, and I ran chmod 777 /Docker/docker-media/downloads/ongoing/ -R. It is still acting the same way, though it is connecting to a lot more peers before giving up.
User avatar
gderf
Seeder
Seeder
Posts: 155
Joined: Sat Jun 18, 2016 1:32 am

Re: Deluge disconnects from all peers

Post by gderf »

What is in the deluged log file? It should be in the directory pointed to by /config

There is also a deluge docker log file but I do not know its location.

One suggestion I do have is to change the network to Host and try downloading a torrent (legal one). If it works, then it's a VPN problem. If it doesn't I am still suspicious that deluge does not have the proper permissions to write to the areas it needs to.
Post Reply