[BUG] deluge-console hangs on "pause *" and "resume *"
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
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
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
HKUDS/CLI-Anything#652 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
Project-N-E-K-O/N.E.K.O#3813 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
ai-driven-dev/framework#1311 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
EveryInc/compound-engineering-plugin#2085 ·
维护者通常 1 天内回复
-
`interface-diff` discards the git error when resolving its default base and reports the wrong cause未关闭
难度 2/5 1-3 小时 新手友好度 82/100
modelcontextprotocol/servers#5636 ·
维护者通常 1 天内回复