[BUG] deluge-console hangs on "pause *" and "resume *"

未关闭
#240 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, python
领域
cli

调研方向

Start by reading the traceback entry point, deluge/ui/console/main.py at exec_args, and compare the pause/resume command with the working status command. Reproduce with the provided deluge-console invocation and check whether the command completes after applying the action. Done means pause and resume return control to the terminal without the TypeError.

由索引模型根据 Issue 内容生成。

描述

no-issue-activity
Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

When attempting to pause (or resume) all torrents from CLI via docker exec deluge /bin/bash -c 'deluge-console -d 127.0.0.1 -p 58846 -U myuser -P mypass "pause *"' the command simply hangs. The torrents ARE correctly paused, but the exec never returns. Aborting with CTRL-C gives:

Unhandled error in Deferred:

Traceback (most recent call last):
File "/lsiopy/lib/python3.12/site-packages/twisted/internet/defer.py", line 1838, in _inlineCallbacks
result = context.run(gen.send, result)
File "/lsiopy/lib/python3.12/site-packages/deluge/ui/console/main.py", line 209, in exec_args
await commander.exec_command(cmd)
builtins.TypeError: object NoneType can't be used in 'await' expression

Note that (for example) docker exec deluge /bin/bash -c 'deluge-console -d 127.0.0.1 -p 58846 -U myuser -P mypass "status"' returns cleanly, as expected.

Expected Behavior

Torrents should be paused or resumed, and control released to the controlling terminal.

Steps To Reproduce

Standard install, no modifications. Running the exec as documented above on the host - Linux 6.8.0-146-generic - Ubuntu 24.04

Environment
- OS: Ubuntu 24.04
- How docker service was installed: packages from docker.com repo - Package: docker-ce-cli Version: 5:29.8.2-1~ubuntu.22.04~jammy
CPU architecture

x86-64

Docker creation
---
services:
  deluge:
    image: lscr.io/linuxserver/deluge:latest
    container_name: deluge
    environment:
      - PUID=<hidden>
      - PGID=<hidden>
      - TZ=<hidden>
    volumes:
      - ./config:/config
      - /data/downloads:/downloads
    ports:
      - <several-hidden>
      - 58846:58846
    restart: unless-stopped
Container logs
Nothing is logged during the action.
主要语言
Dockerfile
星标
296
派生
89
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。