Skip to content

[BUG] Container restarting, Catching signal: SIGTERM #409

@M0ssTee

Description

@M0ssTee

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

What is the problem?

After an unknown amount of time, the Docker container from Linuxserver.io will crash/exit with the following logs from docker logs qbittorrent:


───────────────────────────────────────
Linuxserver.io version: 5.1.2-r3-ls420
Build-date: 2025-10-12T06:54:18+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!
[ls.io-init] done.
Catching signal: SIGTERM
Exiting cleanly

Additional context

This is similar to issues 19817, 23023, and 22956 in the qbittorrent/qBittorrent repo. I originally posted the issue there as 23383 and was redirected here.

Log(s) & preferences file(s)

qBittorrent.conf

[Application]
FileLogger\Age=1
FileLogger\AgeType=1
FileLogger\Backup=true
FileLogger\DeleteOld=true
FileLogger\Enabled=true
FileLogger\MaxSizeBytes=66560
FileLogger\Path=/config/qBittorrent/logs

[AutoRun]
enabled=false
program=

[BitTorrent]
Session\AddTorrentStopped=false
Session\DefaultSavePath=/downloads/downloads
Session\ExcludedFileNames=
Session\Port=6881
Session\QueueingSystemEnabled=false
Session\SSL\Port=52062
Session\ShareLimitAction=Stop
Session\TempPath=/downloads/incomplete/
Session\TorrentExportDirectory=/downloads/torrents
Session\UseAlternativeGlobalSpeedLimit=true

[Core]
AutoDeleteAddedTorrentFile=Never

[LegalNotice]
Accepted=true

[Meta]
MigrationVersion=8

[Network]
Cookies=@Invalid()
PortForwardingEnabled=false
Proxy\HostnameLookupEnabled=false
Proxy\Profiles\BitTorrent=true
Proxy\Profiles\Misc=true
Proxy\Profiles\RSS=true

[Preferences]
Connection\PortRangeMin=6881
Connection\UPnP=false
Downloads\SavePath=/downloads/
Downloads\TempPath=/downloads/incomplete/
General\Locale=en
MailNotification\req_auth=true
WebUI\Address=*
WebUI\Password_PBKDF2="@ByteArray(MnapLIRF0Jh+h/ymR8IL2g==:VUnP/M5d2uVe2GIs9lyBKQE/xuRwIxjHXC4rNMQjyuN4hZ+iA8xwflTNs57Zbs2cX4TgnSSOF9HJuizKWiMhIA==)"
WebUI\Port=8081
WebUI\ServerDomains=*

[RSS]
AutoDownloader\DownloadRepacks=true
AutoDownloader\SmartEpisodeFilter=s(\\d+)e(\\d+), (\\d+)x(\\d+), "(\\d{4}[.\\-]\\d{1,2}[.\\-]\\d{1,2})", "(\\d{1,2}[.\\-]\\d{1,2}[.\\-]\\d{4})"

Steps To Reproduce

Start the container with docker compose up -d.
Wait.
Attempt to access via webui
Check logs

Environment

qBittorrent: 5.1.2
Operating system: Ubuntu 24.04.3 LTS VM on top of Proxmox pve-manager/8.4.1
Qt: 6.9.3
libtorrent: 2.0.111.0
How docker service was installed: I do not recall

CPU architecture

x86-64

Docker creation

services:
        qbittorrent:
               container_name: qbittorrent
               restart: unless-stopped
               ports:
                       - 6881:6881
                       - 6881:6881/udp
                       - 8081:8081
                       - 8118:8118
               volumes:
                       - /home/mosstee/config/qbittorrent:/config
                       - /home/mosstee/mnt/media/torrents:/downloads
               environment:
                       - WEBUI_PORT=8081
                       - TORRENTING_PORT=6881
                       - TZ=Etc/UTC
                       - PUID=1000
                       - PGID=1000
               image: lscr.io/linuxserver/qbittorrent:latest

Container logs

qbittorrent.log


(N) 2025-10-14T20:00:03 - qBittorrent termination initiated
(N) 2025-10-14T20:00:04 - Saving resume data completed.
(N) 2025-10-14T20:00:05 - BitTorrent session successfully finished.
(N) 2025-10-14T20:00:05 - qBittorrent is now ready to exit
(N) 2025-10-14T22:04:09 - qBittorrent v5.1.2 started. Process ID: 147
(N) 2025-10-14T22:04:09 - Using config directory: /config/qBittorrent
(N) 2025-10-14T22:04:09 - Trying to listen on the following list of IP addresses: "0.0.0.0:6881,[::]:6881"
(I) 2025-10-14T22:04:10 - Peer ID: "-qB5120-"
(I) 2025-10-14T22:04:10 - HTTP User-Agent: "qBittorrent/5.1.2"
(I) 2025-10-14T22:04:10 - Distributed Hash Table (DHT) support: ON
(I) 2025-10-14T22:04:10 - Local Peer Discovery support: ON
(I) 2025-10-14T22:04:10 - Peer Exchange (PeX) support: ON
(I) 2025-10-14T22:04:10 - Anonymous mode: OFF
(I) 2025-10-14T22:04:10 - Encryption support: ON
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "127.0.0.1". Port: "TCP/6881"
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "127.0.0.1". Port: "UTP/6881"
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "172.18.0.4". Port: "TCP/6881"
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "172.18.0.4". Port: "UTP/6881"
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "::1". Port: "TCP/6881"
(I) 2025-10-14T22:04:10 - Successfully listening on IP. IP: "::1". Port: "UTP/6881"


docker logs qbittorrent


───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 5.1.2-r3-ls420
Build-date: 2025-10-12T06:54:18+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!
[ls.io-init] done.
Catching signal: SIGTERM
Exiting cleanly
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 5.1.2-r3-ls420
Build-date: 2025-10-12T06:54:18+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!
[ls.io-init] done.
Catching signal: SIGTERM
Exiting cleanly
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 5.1.2-r3-ls420
Build-date: 2025-10-12T06:54:18+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!
[ls.io-init] done.
Catching signal: SIGTERM
Exiting cleanly
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 5.1.2-r3-ls420
Build-date: 2025-10-12T06:54:18+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8081
Connection to localhost (::1) 8081 port [tcp/tproxy] succeeded!
[ls.io-init] done.
Catching signal: SIGTERM
Exiting cleanly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions