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

Đang mở
#240 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Dockerfile
Star
296
Fork
89
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.