Deluge not functional - seems like perms problem

General support for problems installing or using Deluge
Post Reply
plasma
New User
New User
Posts: 1
Joined: Sun Jan 28, 2024 8:38 pm

Deluge not functional - seems like perms problem

Post by plasma »

I have been running deluge via docker compose for around 7 months now but have recently replaced my homeserver and went with a fresh install. I have a config.sh that sets everything up for me, so no real changes since last time I ran it.

The docker-compose.yml is:

Code: Select all

  # DelugeVPN
  deluge:
    image: binhex/arch-delugevpn:latest
    container_name: deluge
    restart: unless-stopped
    privileged: true
    volumes:
      - /home/homeserver/config/deluge:/config
      - /home/homeserver/data:/downloads
    ports:
      - 8112:8112
      - 8118:8118
      - 58846:58846
      - 58946:58946
    environment:
      - TZ=America/Los_Angeles
      - UMASK=022
      - PUID=1000
      - PGID=1000
      # VPN Config
      - VPN_ENABLED=yes
      - VPN_CLIENT=wireguard
      - VPN_PROV=custom
      - ENABLE_PRIVOXY=no
      - LAN_NETWORK=192.168.50.0/24
      - NAME_SERVERS=8.8.8.8,8.8.4.4
      - DELUGE_DAEMON_LOG_LEVEL=garbage
      - DELUGE_WEB_LOG_LEVEL=garbage
      - DELUGE_ENABLE_WEBUI_PASSWORD=no
    cap_add:
      - NET_ADMIN
After booting the docker, logs seem to be correct. Running docker compose logs deluge nothing stands out, grepping for errors don't show anything.

However, when I open the UI via 8112 and connect to the server, nothing on the status bar loads. The HD icon shows "Error", if I hover it says "Free space in download folder". Looking at preferences, everything is blank.

If I try to add a torrent I see the following error:

Code: Select all

deluge  | 2024-01-28 12:47:01,464 DEBG 'watchdog-script' stderr output:
deluge  | Unhandled error in Deferred:
deluge  | 
deluge  | 2024-01-28 12:47:01,465 DEBG 'watchdog-script' stderr output:
deluge  | 
deluge  | Traceback (most recent call last):
deluge  |   File "/usr/lib/python3.11/site-packages/twisted/internet/defer.py", line 892, in _runCallbacks
deluge  |     current.result = callback(  # type: ignore[misc]
deluge  |   File "/usr/lib/python3.11/site-packages/twisted/internet/defer.py", line 1371, in _cbDeferred
deluge  |     self.callback(cast(_DeferredListResultListT, self.resultList))
deluge  |   File "/usr/lib/python3.11/site-packages/twisted/internet/defer.py", line 696, in callback
deluge  |     self._startRunCallbacks(result)
deluge  |   File "/usr/lib/python3.11/site-packages/twisted/internet/defer.py", line 798, in _startRunCallbacks
deluge  |     self._runCallbacks()
deluge  | --- <exception caught here> ---
deluge  |   File "/usr/lib/python3.11/site-packages/twisted/internet/defer.py", line 892, in _runCallbacks
deluge  |     current.result = callback(  # type: ignore[misc]
deluge  |   File "/usr/lib/python3.11/site-packages/deluge/ui/web/json_api.py", line 187, in _on_rpc_request_failed
deluge  |     return self._send_response(request, response)
deluge  |   File "/usr/lib/python3.11/site-packages/deluge/ui/web/json_api.py", line 229, in _send_response
deluge  |     response = json.dumps(response)
deluge  |   File "/usr/lib/python3.11/json/__init__.py", line 231, in dumps
deluge  |     return _default_encoder.encode(obj)
deluge  |   File "/usr/lib/python3.11/json/encoder.py", line 200, in encode
deluge  |     chunks = self.iterencode(o, _one_shot=True)
deluge  |   File "/usr/lib/python3.11/json/encoder.py", line 258, in iterencode
deluge  |     return _iterencode(o, 0)
deluge  |   File "/usr/lib/python3.11/json/encoder.py", line 180, in default
deluge  |     raise TypeError(f'Object of type {o.__class__.__name__} '
deluge  | builtins.TypeError: Object of type Failure is not JSON serializable
deluge  | 
deluge  | Unhandled error in Deferred:
deluge  | 
deluge  | 2024-01-28 12:47:01,465 DEBG 'watchdog-script' stderr output:
deluge  | 
deluge  | Traceback (most recent call last):
deluge  | Failure: deluge.error.NotAuthorizedError: Auth level too low: 0 < 5
It seems like a permission issue but I can access bash for Deluge container to create and read files normally from both config and downloads folder.

Edit: Running Ubuntu 22.04
User avatar
ambipro
Moderator
Moderator
Posts: 445
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Deluge not functional - seems like perms problem

Post by ambipro »

Have you tried clicking on the connection manager and making sure you are connected to the RPC server for your Deluge instance?

It seems like that may be what's going on.
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge not functional - seems like perms problem

Post by mhertz »

Bro above correct, unsurprisingly. I tested this, because thought was connected, but to a non-admin account(test:test:5 etc, in auth), based on last line's log, but was instead exactly as ambipro stated, and little confusing the UI still let you add a torrent, and neither don't show the actual specific error on UI, though does in terminal/logging. Thought might as well echo this, when tested it anyways, thanks ambipro.
Post Reply