Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] s6-notifyoncheck SIGKILL #279

Open
1 task done
bacontrees opened this issue May 28, 2024 · 8 comments
Open
1 task done

[BUG] s6-notifyoncheck SIGKILL #279

bacontrees opened this issue May 28, 2024 · 8 comments

Comments

@bacontrees
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Every few minutes, Transmission reloads with the following logged:

./run: line 8:  8259 Killed                  s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT:-9091}" s6-setuidgid abc /usr/bin/transmission-daemon -g /config -f
s6-supervise svc-transmission: warning: finish script lifetime reached maximum value - sending it a SIGKILL
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!

When this happens, download data is frequently corrupted (needs local verify or even says no data found). This system has been running its current configuration for approximately a month without issue and only became problematic recently.

Expected Behavior

Transmission stays alive, does not SIGKILL.

Steps To Reproduce

In Mint 21.3 environment with Docker's official apt repository installed, run Transmission connected to in-service VPN. After a few minutes, s6 kills/restarts Transmission, causing download data corruption (needs local verify or even says no data found).

Environment

- OS: Mint 21.3 (Ubuntu 22.04 jammy)
- How docker service was installed: Docker's apt repository
- How Transmission reaches internet: In-service VPN container to prevent IP leakage

CPU architecture

x86-64

Docker creation

services:

  vpn:
        image: thrnz/docker-wireguard-pia
        volumes:
            - /mnt/SATA_SSD/docker-appdata/transmission/pia-dat:/pia
            - /mnt/SATA_SSD/docker-appdata/transmission/pia-port:/pia-shared
        ports:
            - "9091:9091/tcp"
        cap_add:
            - NET_ADMIN
        environment:
            - LOCAL_NETWORK=LOCAL_SUBNET/24
            - LOC=REDACTED
            - USER=REDACTED
            - PASS=REDACTED
            - PORT_FORWARDING=1
            - PORT_PERSIST=1
        sysctls:
            - net.ipv4.conf.all.src_valid_mark=1
        restart: unless-stopped

  transmission:
    image: linuxserver/transmission:latest
    network_mode: "service:vpn"
    depends_on:
      - vpn
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=REDACTED
    env_file:
      - /mnt/SATA_SSD/docker-appdata/transmission/transmission.env
    volumes:
      - /mnt/SATA_SSD/docker-appdata/transmission/transmission-config:/config
      - /mnt/SATA_SSD/docker-appdata/transmission/downloads:/downloads
      - /mnt/SATA_SSD/docker-appdata/transmission/watch:/watch
      - /mnt/SMB_Synology:/mnt/SMB_Synology
      - /mnt/SMB_Synology:/data
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

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

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

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

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

User UID:    1000
User GID:    1000
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
[ls.io-init] done.
./run: line 8:   173 Killed                  s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${PORT:-9091}" s6-setuidgid abc /usr/bin/transmission-daemon -g /config -f
s6-supervise svc-transmission: warning: finish script lifetime reached maximum value - sending it a SIGKILL
Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@bacontrees
Copy link
Author

Issue persists on fresh Debian 12 installation as well.

@6cUbi57z
Copy link

6cUbi57z commented Jul 3, 2024

I'm experiencing this without the VPN. It seems that transmission is becoming a zombie process.

In my k8s cluster, this is preventing the pod from closing. The only way I've found to resolve the issue is to restart the host.

@6cUbi57z
Copy link

6cUbi57z commented Jul 3, 2024

I noticed some log messages in the terminal of the host possibly indicating this: transmission/transmission#1007

I've changed the preallocation to 0 and have restarted.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@6cUbi57z
Copy link

6cUbi57z commented Aug 3, 2024

Still an issue although preallocation 0 may help improve stability.

@PHLAK
Copy link

PHLAK commented Aug 8, 2024

I just noticed this issue in the last day or two. Rolling back to the 4.0.5 tag seems to be working without issue for me for now.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

4 participants