Skip to content

[BUG] 5.2.X - Run external program -> Crash #451

Description

@Bugbavka

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

On 5.2.0 - 5.2.3 enabling Run external program (Run on torrent added) will crash the WebUI when this command is run.
This issue is not present on 5.1.4.

Expected Behavior

Run external program (Run on torrent added) not crashing on 5.2.X.

Steps To Reproduce

  1. Create clean container with with tag :5.2.X
  2. Login to WebUI
  3. Settings - enable Run on torrent added and add legitimate command like (curl -s -X POST --data-urlencode "hashes=%K" "http://127.0.0.1:8888/api/v2/torrents/toggleSequentialDownload" "http://127.0.0.1:8888/api/v2/torrents/toggleFirstLastPiecePrio" or just for testing echo test or touch /config/test)
  4. Add any torrent
  5. Crash - WebUI is no longer responding, docker container log does not produce any new output

Environment

- OS: Debian 13.6
- How docker service was installed: APT - docker.io package (26.1.5+dfsg1-9+b13 amd64)

CPU architecture

x86-64

Docker creation

services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:5.2.3
    container_name: qbittorrent
    #user: "999:996" # root / rootless does not make difference
    volumes:
      - "./config-tst:/config"
      #- "./down:/downloads"
    environment:
      - "TZ=Europe/Prague"
      - "PUID=999"
      - "PGID=996"
      - "WEBUI_PORT=8888"
      - "TORRENTING_PORT=60944"
    ports:
      - 60944:60944/tcp
      - 60944:60944/udp
      - 8888:8888
    labels:
      - "diun.enable=true"
    restart: unless-stopped
    networks:
      docket_net_p2p:
        ipv4_address: X.X.X.X
    stop_grace_period: 65s
    mem_limit: 2g
    cpus: 2
    healthcheck:
      test: curl --fail http://127.0.0.1:$${WEBUI_PORT}/ || exit 1
      interval: 90s
      retries: 5
      start_period: 5s
      timeout: 15s
    logging:
      driver: json-file
      options:
        max-size: "50m"
        max-file: "5"

networks:
  docket_net_p2p:
    external: true

Container logs

qbittorrent  | [migrations] started
qbittorrent  | [migrations] no migrations found
qbittorrent  | usermod: no changes
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  |       ██╗     ███████╗██╗ ██████╗
qbittorrent  |       ██║     ██╔════╝██║██╔═══██╗
qbittorrent  |       ██║     ███████╗██║██║   ██║
qbittorrent  |       ██║     ╚════██║██║██║   ██║
qbittorrent  |       ███████╗███████║██║╚██████╔╝
qbittorrent  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
qbittorrent  | 
qbittorrent  |    Brought to you by linuxserver.io
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  | To support LSIO projects visit:
qbittorrent  | https://www.linuxserver.io/donate/
qbittorrent  | 
qbittorrent  | ───────────────────────────────────────
qbittorrent  | GID/UID
qbittorrent  | ───────────────────────────────────────
qbittorrent  | 
qbittorrent  | User UID:    999
qbittorrent  | User GID:    996
qbittorrent  | ───────────────────────────────────────
qbittorrent  | Linuxserver.io version: 5.2.3_v2.0.13-ls469
qbittorrent  | Build-date: 2026-07-19T09:01:18+00:00
qbittorrent  | ───────────────────────────────────────
qbittorrent  |     
qbittorrent  | [custom-init] No custom files found, skipping...
qbittorrent  | WebUI will be started shortly after internal preparations. Please wait...
qbittorrent  | 
qbittorrent  | ******** Information ********
qbittorrent  | To control qBittorrent, access the WebUI at: http://localhost:8888
qbittorrent  | The WebUI administrator username is: admin
qbittorrent  | The WebUI administrator password was not set. A temporary password is provided for this session: Q6t83nYnB
qbittorrent  | You should set your own password in program preferences.
qbittorrent  | Connection to localhost (::1) 8888 port [tcp/*] succeeded!
qbittorrent  | [ls.io-init] done.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions