linuxserver / docker-deluge

GNU General Public License v3.0
244 stars 90 forks source link

Adding torrent via deluge-console can not start download #165

Closed shuwens closed 1 year ago

shuwens commented 1 year ago

linuxserver.io


Expected Behavior

Adding torrent via deluge-console should be able to download images.

Current Behavior

The torrent job will be stuck 0.0% and not able to download. Running deluge without docker will start the download immediately. I have tried to download download an Ubuntu image and that works. So apparently this weird behavior is related to me peering within a LAN for private torrents.

root@f146d903b816:/# deluge-console -c /config add /torrents/p2p_core_3_image_3.torrent
Attempting to add torrent: /torrents/p2p_core_3_image_3.torrent
Torrent added!
<Deferred at 0x7f7058ef4b50 current result: None>
root@f146d903b816:/# deluge-console -c /config info
[D]     0% p2p_core_3_image_3.img 32c70df1b2245c791bee1435d9ba32f7994fc9d8
    DL: 0 B (0 B) UL: 0 B (0 B) ETA: -

<Deferred at 0x7fa4995b2b60 current result: None>
root@f146d903b816:/# deluge-console -c /config info
[D]     0% p2p_core_3_image_3.img 32c70df1b2245c791bee1435d9ba32f7994fc9d8
    DL: 0 B (0 B) UL: 0 B (0 B) ETA: -

<Deferred at 0x7fb215e44c70 current result: None>

Steps to Reproduce

  1. I have rebuild the docker image and modify the allow remote to true. I know that if I run deluge natively downloading is fine.
  2. The server I have is remote thus I prefer to add torrents via deluge-console -c /config add xxx.torrent
  3. I have tried to use --network=host but that is not downloading either. I am guessing that something has to do with permission of the dir/volumn but since I can download via native run I feel like something else is missing.

Environment

OS: Linux bt2 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux CPU architecture: x86_64 How docker service was installed:**

sudo apt install docker from docker official guide 
Docker version 20.10.18, build b40c2f6

Command used to create docker container (run/create/compose/screenshot)

docker run  \
                --name p2p_builder \
                -p 58846:58846 \
                -p 51765:51765\
                -p 51765:51765/udp \
                -v /home/jethros/data:/downloads \
                -v /home/jethros/torrents:/torrents  \
                lscr.io/linuxserver/deluge:latest

Docker logs

jethros@bt2 in ~ ❯ docker logs p2p_builder
[custom-init] No custom services found, skipping...
[migrations] started
[migrations] no migrations found
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

Brought to you by linuxserver.io
-------------------------------------

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    911
User gid:    911
-------------------------------------

[custom-init] No custom files found, skipping...
13:08:42 [INFO    ][deluge.configmanager:49  ] Setting config directory to: /config
13:08:44 [INFO    ][deluge.core.daemon            :91  ] Deluge daemon 2.1.1
13:08:44 [WARNING ][deluge.core.core              :332 ] Unable to load /config/session.state: [Errno 2] No such file or directory: '/config/session.state'
13:08:44 [WARNING ][deluge.core.core              :332 ] Unable to load /config/session.state.bak: [Errno 2] No such file or directory: '/config/session.state.bak'
13:08:44 [INFO    ][deluge.core.alertmanager      :138 ] Alert Queue Size set to 10000
13:08:44 [INFO    ][deluge.core.rpcserver         :410 ] Starting DelugeRPC server :58846
13:08:45 [INFO    ][deluge.core.daemon            :151 ] Deluge daemon starting...
13:08:45 [INFO    ][deluge.core.authmanager       :224 ] Opening auth for load: /config/auth
13:08:45 [INFO    ][deluge.core.authmanager       :232 ] Successfully loaded auth: /config/auth
13:08:45 [INFO    ][deluge.core.rpcserver         :179 ] Deluge Client connection made from: 127.0.0.1:38103
13:08:45 [INFO    ][deluge.core.torrentmanager    :1616] on_alert_external_ip: 129.10.111.124
13:08:45 [INFO    ][deluge.core.torrentmanager    :811 ] Loading torrent state: /config/state/torrents.state
13:08:45 [INFO    ][deluge.core.torrentmanager    :811 ] Loading torrent state: /config/state/torrents.state.bak
13:08:45 [INFO    ][deluge.core.torrentmanager    :1071] Opening torrents.fastresume for load: /config/state/torrents.fastresume
13:08:45 [INFO    ][deluge.core.torrentmanager    :1071] Opening torrents.fastresume for load: /config/state/torrents.fastresume.bak
13:08:45 [INFO    ][deluge.core.torrentmanager    :1071] Opening torrents.fastresume for load: /config/torrents.fastresume
13:08:45 [INFO    ][deluge.core.torrentmanager    :887 ] Finished loading 0 torrents in 0:00:00.002416
13:08:45 [INFO    ][deluge.core.rpcserver         :205 ] Deluge client disconnected: [('SSL routines', '', 'unexpected eof while reading')]
13:08:45 [INFO    ][deluge.core.torrentmanager    :1616] on_alert_external_ip: 129.10.111.124
13:08:47 [WARNING ][deluge.config              :400 ] Unable to open config file /config/web.conf: [Errno 2] No such file or directory: '/config/web.conf'
13:08:47 [WARNING ][deluge.config              :400 ] Unable to open config file /config/hostlist.conf: [Errno 2] No such file or directory: '/config/hostlist.conf'
13:08:47 [WARNING ][deluge.config              :477 ] Unable to open config file: /config/hostlist.conf because: [Errno 2] No such file or directory: '/config/hostlist.conf'
13:08:47 [WARNING ][deluge.config              :502 ] Unable to backup old config: [Errno 2] No such file or directory: '/config/hostlist.conf'
[ls.io-init] done.
shuwens commented 1 year ago

I have figured out more about my issue. So apparently my private leecher can ping the seeder but not the other way around. It seems like I need to use bridge network and assign static IP to my leecher node.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.