Skip to content

sigterm not being caught on reboot #2954

@darmach

Description

@darmach

Is there a pinned issue for this?

  • I have read the pinned issues and could not find my issue

Is there an existing or similar issue/discussion for this?

  • I have searched the existing issues
  • I have searched the existing discussions

Is there any comment in the documentation for this?

  • I have read the documentation, especially the FAQ and Troubleshooting parts

Is this related to a provider?

  • I have checked the provider repo for issues
  • My issue is NOT related to a provider

Are you using the latest release?

  • I am using the latest release

Have you tried using the dev branch latest?

  • I have tried using dev branch

Docker run config used

services:
    transmission-openvpn:
        container_name: transmission-openvpn
        restart: always
        cap_add:
            - NET_ADMIN
        volumes:
            - './shares:/shares'
            - './config:/config'
            - './openvpn:/etc/openvpn/custom'
        environment:
            - TZ=Europe/Berlin
            - PUID=982
            - PGID=1001
            - OPENVPN_PROVIDER=vpnprovider
            - OPENVPN_USERNAME=redacted
            - OPENVPN_PASSWORD=redacted
            - OPENVPN_CONFIG=poland
            - LOCAL_NETWORK=192.168.0.0/22,10.0.0.0/22
            - TRANSMISSION_DOWNLOAD_DIR=/shares
            - TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
            - TRANSMISSION_RPC_USERNAME=redacted
            - TRANSMISSION_RPC_PASSWORD=redacted
            - TRANSMISSION_RPC_WHITELIST=127.0.0.1,192.168.1.2
            - TRANSMISSION_RPC_ENABLED=true
        logging:
            driver: json-file
            options:
                max-size: 10m
        ports:
            - '9091:9091'
        image: haugene/transmission-openvpn

Current Behavior

This is a reopen of an issue created by @lucserre user: #2246 as the issue still persist and causes reboot of my hypervisor to take about 5 minutes longer - impacting all the other services deployed there, i.e. CCTV

Everything works, until I try to reboot. It
hangs at shutdown for several (5+) minutes.
Seems not to be listening to the SIGTERM or SIGKILL signals being sent to it.
Using Debian 11.
When I reboot or shutdown the system, while the docker container is running:
I get this first one for about 3-4 minutes
systemd-shutdown[1]: Waiting for process: containerd-shim, dumb-init
and then this one for an other 3-4 minutes.
systemd-shutdown[1]: Waiting for process: dumb-init

Expected Behavior

SIGTERM signal to gracefully terminate the container

How have you tried to solve the problem?

updated to latest version
tried on new OS (new debian11 vm)

In my case - it's Ubuntu Noble

Log output

systemd-shutdown[1]: Waiting for process: containerd-shim, dumb-init
and then this one for an other 3-4 minutes.
systemd-shutdown[1]: Waiting for process: dumb-init

HW/SW Environment

- OS: Ubuntu 24.04 Noble
- Docker: Docker version 28.0.4, build b8034c0

Anything else?

Reopen of #2246
Impact - long hypervisor reboots, causing wider service unavailability

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions