Frequent disconnects from WebUI and crashes in docker

General support for problems installing or using Deluge
Post Reply
Daedalus911
New User
New User
Posts: 2
Joined: Wed Nov 22, 2023 5:16 am

Frequent disconnects from WebUI and crashes in docker

Post by Daedalus911 »

So I'm new to docker I used the instructions (https://docs.linuxserver.io/images/docker-deluge/#usage) to install deluge in docker. I have 2 instances one that works just fine but the volumes are all local, and the other instance has a volume that is on my share (this is the one that is having issues). I have also mapped the ports of each container so that they are different. I have very little experience with Linux and even less experience with docker. I'm hoping someone can point me in the right direction.

Context:
Deluge 2.1.1 installed on docker in Windows 10, with a volume pointing at a NAS running TrueNas.

I'm getting the following errors:

Code: Select all

2023-11-20 22:09:08 03:09:08 [WARNING ][deluge.core.rpcserver         :1622] An exception occurred while sending RPC_ERROR to client. Wrapping it and resending. Error to send(causing exception goes next):
2023-11-20 22:09:08 Traceback (most recent call last):
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/rpcserver.py", line 334, in dispatch
2023-11-20 22:09:08     ret = self.factory.methods[method](*args, **kwargs)
2023-11-20 22:09:08           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/core.py", line 1243, in get_free_space
2023-11-20 22:09:08     return deluge.common.free_space(path)
2023-11-20 22:09:08            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/common.py", line 905, in free_space
2023-11-20 22:09:08     disk_data = os.statvfs(path.encode('utf8'))
2023-11-20 22:09:08                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08 BlockingIOError: [Errno 11] Resource temporarily unavailable: b'/Downloads/download'
2023-11-20 22:09:08 
2023-11-20 22:09:08 03:09:08 [ERROR   ][deluge.core.rpcserver         :1622] Exception calling RPC request: [Errno 11] Resource temporarily unavailable: b'/Downloads/download'
2023-11-20 22:09:08 Traceback (most recent call last):
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/rpcserver.py", line 334, in dispatch
2023-11-20 22:09:08     ret = self.factory.methods[method](*args, **kwargs)
2023-11-20 22:09:08           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/core.py", line 1243, in get_free_space
2023-11-20 22:09:08     return deluge.common.free_space(path)
2023-11-20 22:09:08            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/common.py", line 905, in free_space
2023-11-20 22:09:08     disk_data = os.statvfs(path.encode('utf8'))
2023-11-20 22:09:08                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08 BlockingIOError: [Errno 11] Resource temporarily unavailable: b'/Downloads/download'
2023-11-20 22:09:08 03:09:08 [ERROR   ][deluge.ui.client           :1622] RPCError Message Received!
2023-11-20 22:09:08 --------------------------------------------------------------------------------
2023-11-20 22:09:08 RPCRequest: core.get_free_space(/Downloads/download)
2023-11-20 22:09:08 --------------------------------------------------------------------------------
2023-11-20 22:09:08 BlockingIOError
2023-11-20 22:09:08 [Errno 11] Resource temporarily unavailable: b'/Downloads/download': Traceback (most recent call last):
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/rpcserver.py", line 334, in dispatch
2023-11-20 22:09:08     ret = self.factory.methods[method](*args, **kwargs)
2023-11-20 22:09:08           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/core/core.py", line 1243, in get_free_space
2023-11-20 22:09:08     return deluge.common.free_space(path)
2023-11-20 22:09:08            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08   File "/usr/lib/python3.11/site-packages/deluge/common.py", line 905, in free_space
2023-11-20 22:09:08     disk_data = os.statvfs(path.encode('utf8'))
2023-11-20 22:09:08                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-11-20 22:09:08 BlockingIOError: [Errno 11] Resource temporarily unavailable: b'/Downloads/download'
2023-11-20 22:09:08 
2023-11-20 22:09:08 --------------------------------------------------------------------------------
and also get these quite a bit as well:

Code: Select all

2023-11-20 19:32:10 00:32:10 [INFO    ][deluge.ui.web.auth         :1622] Login success (ClientIP 172.19.0.1)
2023-11-20 19:32:11 00:32:11 [INFO    ][deluge.core.rpcserver         :1622] Deluge Client connection made from: 127.0.0.1:47586
2023-11-20 19:32:11 00:32:11 [INFO    ][deluge.core.rpcserver         :1622] Deluge Client connection made from: 127.0.0.1:47592
2023-11-20 19:32:11 00:32:11 [INFO    ][deluge.core.rpcserver         :1622] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
2023-11-20 19:32:11 00:32:11 [INFO    ][deluge.core.rpcserver         :1622] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
2023-11-20 19:32:13 00:32:13 [INFO    ][deluge.core.rpcserver         :1622] Deluge Client connection made from: 127.0.0.1:47604
2023-11-20 19:32:13 00:32:13 [INFO    ][deluge.core.rpcserver         :1622] Deluge client disconnected: Connection to the other side was lost in a non-clean fashion: Connection lost.
2023-11-20 19:32:13 00:32:13 [INFO    ][deluge.core.rpcserver         :1622] Deluge Client connection made from: 127.0.0.1:47620
2023-11-20 19:32:13 00:32:13 [INFO    ][deluge.pluginmanagerbase   :1622] Plugin Label enabled...
2023-11-20 19:32:51 00:32:51 [INFO    ][deluge.pluginmanagerbase   :1622] Plugin Label disabled...
2023-11-20 19:32:51 Caught SIGTERM signal!
2023-11-20 19:32:51 Tell Deluged to shut down.
User avatar
ambipro
Moderator
Moderator
Posts: 445
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Frequent disconnects from WebUI and crashes in docker

Post by ambipro »

It seems like the container is expecting a mount named /Downloads/download (host path is whatever, but container path is /Downloads) - Did you mount a /Downloads - if not whatever you mounted for the torrent downloads, you might have to edit the config files, or change the mounts (at least temporarily)

Try posting your compose for this container if that doesn't help you in any way...

https://trash-guides.info/compose
Daedalus911
New User
New User
Posts: 2
Joined: Wed Nov 22, 2023 5:16 am

Re: Frequent disconnects from WebUI and crashes in docker

Post by Daedalus911 »

So I mounted the docker to /Downloads and then just made the download folder a subfolder, that way I can keep the active downloads in one folder and the library in the other. I should also mention that Deluge is actively downloading as I eventually get the files but I can't connect to the web UI to make any changes, and there seems to be frequent restarts.

My docker compose:

Code: Select all

---
version: "2.1"

volumes: 
  TrueNAS_TV: 
    driver_opts: 
      type: cifs 
      o: "username=XXXXX,password=XXXXXXX,uid=1000,gid=1000"
      device: "//192.168.1.2/Plex_TV_Shows" 
services:
  delugeTV:
    image: lscr.io/linuxserver/deluge:latest
    container_name: delugeTV
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - DELUGE_LOGLEVEL=info #optional
    volumes:
      - C:/Deluge/Deluge_TV:/config
      - TrueNAS_TV:/Downloads
    ports:
      - 8110:8112
      - 6882:6881
      - 6882:6881/udp
    restart: unless-stopped
Post Reply