From f99965da0a2b26c6a66d919d488160d320f93b97 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sat, 11 Apr 2026 08:24:19 -0500 Subject: [PATCH] media: fix natpmpc-helper OOM and API call format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase memory limit 32→64Mi (apk install was hitting the 32Mi ceiling). Fix qBittorrent setPreferences call: use form-encoded json= not json body nesting. --- servers/legion/k8s/media/gluetun-qbittorrent.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/legion/k8s/media/gluetun-qbittorrent.yaml b/servers/legion/k8s/media/gluetun-qbittorrent.yaml index cb9c58f..61770a7 100644 --- a/servers/legion/k8s/media/gluetun-qbittorrent.yaml +++ b/servers/legion/k8s/media/gluetun-qbittorrent.yaml @@ -85,11 +85,11 @@ spec: echo "$(date): Got forwarded port $PORT" # Also request TCP mapping for the same port natpmpc -a "$PORT" "$PORT" tcp 60 -g 10.2.0.1 >/dev/null 2>&1 - # Update qBittorrent listen port + # Update qBittorrent listen port (form-encoded: json=) SID=$(curl -s -c /tmp/qbt.txt -X POST http://localhost:8080/api/v2/auth/login \ -d "username=admin&password=adminadmin" 2>/dev/null) curl -s -b /tmp/qbt.txt -X POST http://localhost:8080/api/v2/app/setPreferences \ - -d "{\"json\":{\"listen_port\":$PORT,\"random_port\":false}}" >/dev/null 2>&1 + -d "json={\"listen_port\":$PORT,\"random_port\":false}" >/dev/null 2>&1 echo "$(date): qBittorrent listen port set to $PORT" else echo "$(date): NAT-PMP failed: $OUT" @@ -98,10 +98,10 @@ spec: done resources: requests: - memory: 16Mi + memory: 32Mi cpu: 10m limits: - memory: 32Mi + memory: 64Mi cpu: 50m # qBittorrent — shares gluetun's network namespace, all traffic through VPN