Compare commits

...

18 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
c7a116e968 refactor(qbittorrent): simplify vpn endpoint route to single-IP helpers
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/c4801bc4-9748-4959-986c-8459fd6d52cd

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-05-13 08:52:26 +00:00
copilot-swe-agent[bot]
eb7b1dc102 fix(qbittorrent): harden endpoint route-state file setup
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a71578b6-156a-4604-a66d-695af500d883

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-05-13 08:03:58 +00:00
copilot-swe-agent[bot]
abb8d046bb chore(qbittorrent): use explicit route-state file truncation
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a71578b6-156a-4604-a66d-695af500d883

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-05-13 08:03:18 +00:00
copilot-swe-agent[bot]
c8e220d493 chore(qbittorrent): simplify openvpn remote host parsing
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a71578b6-156a-4604-a66d-695af500d883

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-05-13 08:02:44 +00:00
copilot-swe-agent[bot]
fcacdadf39 fix(qbittorrent): pin vpn endpoint host routes to main table
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/a71578b6-156a-4604-a66d-695af500d883

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
2026-05-13 08:02:00 +00:00
copilot-swe-agent[bot]
978fe06478 Initial plan 2026-05-13 07:57:42 +00:00
github-actions
53109170ca GitHub bot: changelog [nobuild] 2026-05-13 07:19:57 +00:00
Alexandre
9b9157092c Update config.yaml 2026-05-13 09:15:28 +02:00
Alexandre
12e141eacf Update run 2026-05-13 09:15:16 +02:00
github-actions
9a0c7cea5f GitHub bot: changelog [nobuild] 2026-05-11 18:48:18 +00:00
Alexandre
15d14ca9b0 Merge pull request #2705 from ToledoEM/manyfold
Update version Manyfold3D to 0.139.3
2026-05-11 20:46:13 +02:00
Enrique
098f04781b Update version to 0.139.3 in config.yaml
version bump of manyfold
2026-05-11 19:26:52 +01:00
github-actions
575ff2264f Github bot : issues linked to readme 2026-05-11 16:09:06 +00:00
Alexandre
9e6ecedbc1 Merge pull request #2702 from alexbelgium/claude/fix-qbittorrent-arm64-startup-zFYXB
Fix qbittorrent startup loop on aarch64: drop s6-notifyoncheck
2026-05-11 07:19:43 +02:00
Claude
f5328b6d66 Fix aarch64 startup loop: /proc/1/fd/1 + notification-fd guard
Two independent failure modes can cause the restart loop on arm64:

1. /dev/stdout may be inaccessible in some ARM container runtimes; replaced
   with /proc/1/fd/1 which LSIO images already use for direct container stdout.

2. s6-notifyoncheck writes to fd 3 on check success, but s6-rc only opens
   that fd when notification-fd exists in the service directory. LSIO arm64
   images ship svc-qbittorrent without it, so s6-notifyoncheck exits with
   EBADF and s6 restarts the service in a loop. Guard with a file check and
   fall back to exec'ing qbittorrent-nox directly when the file is absent.

https://claude.ai/code/session_01F16ThtZyfXj6ZKFPkrSAAq
2026-05-11 05:19:13 +00:00
Claude
862097d6bd Fix aarch64 startup loop: use /proc/1/fd/1 instead of /dev/stdout
/dev/stdout resolves via /proc/self/fd/1 and can be inaccessible in some
ARM container runtimes, causing the exec redirect to fail and s6 to restart
the service in a loop. /proc/1/fd/1 is the path LSIO images already use
for direct container stdout (see nginx silent-mode handling) and is reliable
across architectures.

https://claude.ai/code/session_01F16ThtZyfXj6ZKFPkrSAAq
2026-05-11 05:17:32 +00:00
Claude
e5048aa378 Fix aarch64 startup loop: use s6-notifyoncheck only when notification-fd exists
s6-rc opens fd 3 for a longrun service only when a notification-fd file is
present in the service directory. The LSIO aarch64 image ships svc-qbittorrent
without that file, so fd 3 is never opened. s6-notifyoncheck exits with EBADF
after its readiness check passes, s6 treats the supervised process as dead and
immediately restarts it — producing the infinite "Starting qBittorrent..." loop.

Check for the notification-fd file at runtime: use the full s6-notifyoncheck
path when it is present (amd64, preserving existing behaviour), and fall back
to exec'ing qbittorrent-nox directly when it is absent (aarch64).

https://claude.ai/code/session_01F16ThtZyfXj6ZKFPkrSAAq
2026-05-11 05:16:13 +00:00
Claude
8bdb3897da Fix qbittorrent startup loop on aarch64: drop s6-notifyoncheck
s6-notifyoncheck writes to fd 3 when its readiness check passes, but
the LSIO aarch64 image's svc-qbittorrent service has no notification-fd
file so s6-rc never opens fd 3. s6-notifyoncheck exits with EBADF, s6
sees the supervised process die and immediately restarts it, producing
the infinite "Starting qBittorrent..." loop seen on odroid-c2 and other
aarch64 boards.

Drop s6-notifyoncheck entirely and exec qbittorrent-nox directly under
s6-setuidgid so s6 supervises the real process. Silent mode is handled
by redirecting the shell's fds before exec rather than passing a
/dev/stdout path (avoids a separate class of ARM container fd issues).

https://claude.ai/code/session_01F16ThtZyfXj6ZKFPkrSAAq
2026-05-10 16:30:23 +00:00
7 changed files with 65 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
## 0.139.3 (11-05-2026)
- Minor bugs fixed
## 0.138.0 (24-04-2026)
- Minor bugs fixed
## 0.137.0 (13-04-2026)

View File

@@ -1,7 +1,7 @@
name: "Manyfold"
slug: manyfold
description: "Manyfold 3D model manager as a Home Assistant add-on, using the upstream image with configurable library/index paths."
version: "0.138.0"
version: "0.139.3"
url: "https://github.com/alexbelgium/hassio-addons/tree/master/manyfold"
image: ghcr.io/alexbelgium/manyfold-{arch}
arch:

View File

@@ -1,3 +1,14 @@
## 5.2.0-18 (13-05-2026)
- Simplify VPN endpoint route pinning to minimal helpers (single endpoint, no tracking list).
## 5.2.0-17 (13-05-2026)
- Fix VPN endpoint routing by pinning OpenVPN/WireGuard server IPs to the pre-VPN main route, preventing recursive tunnel routing drops.
## 5.2.0-16 (13-05-2026)
- Minor bugs fixed
## 5.2.0-2 (2026-05-10)
- Fix startup loop on aarch64: drop s6-notifyoncheck wrapper so s6 supervises qbittorrent-nox directly (LSIO arm64 image has no notification-fd, causing EBADF restart loop)
## 5.2.0-1 (2026-05-10)
- Fix qbittorrent-nox path (/usr/bin → /app) after LSIO image update

View File

@@ -143,4 +143,4 @@ schema:
slug: qbittorrent
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "5.2.0-1"
version: "5.2.0-18"

View File

@@ -37,13 +37,18 @@ fi
# --- Launch qBittorrent ---
# Determine log output based on silent mode
QB_OUTPUT="/dev/stdout"
QB_OUTPUT="/proc/1/fd/1"
if bashio::config.true 'silent'; then
QB_OUTPUT="/dev/null"
fi
bashio::log.info "Starting qBittorrent..."
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
if [ -f /etc/s6-overlay/s6-rc.d/svc-qbittorrent/notification-fd ]; then
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
else
sleep 10
exec s6-setuidgid abc /app/qbittorrent-nox --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}"
fi

View File

@@ -149,6 +149,28 @@ _resolve_hostname() {
echo "${ips[@]}"
}
_endpoint_route_add() {
local ip="$1"
local rt via dev
rt="$(ip route get "${ip}" 2>/dev/null | head -n1)"
via="$(awk '{for(i=1;i<=NF;i++) if($i=="via"){print $(i+1);exit}}' <<< "${rt}")"
dev="$(awk '{for(i=1;i<=NF;i++) if($i=="dev"){print $(i+1);exit}}' <<< "${rt}")"
[ -z "${dev}" ] && { bashio::log.error "No route to VPN endpoint ${ip}."; return 1; }
if [ -n "${via}" ]; then
ip route replace "${ip}" via "${via}" dev "${dev}" || return 1
else
ip route replace "${ip}" dev "${dev}" || return 1
fi
bashio::log.info "Pinned VPN endpoint ${ip} to pre-VPN route (dev ${dev})."
}
_endpoint_route_del() {
local ip
ip="$(cat "${config["EndpointIPFile"]}" 2>/dev/null)"
[ -n "${ip}" ] && ip route del "${ip}" 2>/dev/null || true
rm -f "${config["EndpointIPFile"]}" || true
}
_routing_add() {
bashio::log.info "Adding routing rules for VPN interface ${config["Interface"]}..."
@@ -344,6 +366,8 @@ _wireguard_up() {
fi
_cmd "ip link set ${config["Interface"]} up" || return 1
_endpoint_route_add "${config["EndpointIP"]}" || return 1
echo "${config["EndpointIP"]}" > "${config["EndpointIPFile"]}"
# Add routing rules for VPN interface and DNS servers
_routing_add || return 1
@@ -358,6 +382,7 @@ _wireguard_up() {
}
_wireguard_down() {
_endpoint_route_del || true
# Update resolv.conf to remove VPN DNS servers
_resolvconf "reset" || true
# Remove routing rules for VPN interface and DNS servers
@@ -399,6 +424,7 @@ wireguard() {
config["Interface"]="${interface}"
config["ConfigFile"]="${config_file}"
config["Table"]="${config["Table"]:-1000}"
config["EndpointIPFile"]="${WIREGUARD_STATE_DIR}/endpoint-ip"
config["ListenPort"]="${config["ListenPort"]:-51820}"
config["EndpointHost"]="${config["Endpoint"]%:*}"
config["EndpointPort"]="${config["Endpoint"]##*:}"
@@ -485,6 +511,8 @@ _openvpn_check() {
}
_openvpn_up() {
local endpoint_ip result=0
bashio::log.warning "This script force OpenvPN to ignore any routes and DNS settings pushed by the server."
bashio::log.warning "Default route will be inserted into custom routing table: ${config["Table"]}"
bashio::log.warning "This routing table will be used for traffic from the VPN interface and to the configured DNS servers."
@@ -498,6 +526,15 @@ _openvpn_up() {
echo "${config["MySelf"]} openvpn postdown" >> ${config["PostDownScript"]}
chmod 755 ${config["PostDownScript"]}
endpoint_ip="$(awk '/^[[:space:]]*remote[[:space:]]/ {print $2; exit}' "${config["ConfigFile"]}")"
if [ -n "${endpoint_ip}" ]; then
_check_host "${endpoint_ip}" || result=$?
[ "${result}" -eq 3 ] && endpoint_ip="$(_resolve_hostname "${endpoint_ip}" | awk '{print $1}')"
if [ -n "${endpoint_ip}" ]; then
_endpoint_route_add "${endpoint_ip}" && echo "${endpoint_ip}" > "${config["EndpointIPFile"]}"
fi
fi
# Define logging
declare -A verbosity=(
["fatal"]=1
@@ -533,6 +570,7 @@ _openvpn_up() {
_openvpn_down() {
# Terminate OpenVPN process
pkill -f "openvpn --config ${config["ConfigFile"]}" || true
_endpoint_route_del || true
# Safety-net cleanup in case the --down callback was never invoked
_routing_del || true
}
@@ -557,6 +595,7 @@ _openpvn_postdown() {
if bashio::config.true 'vpn_upnp_enabled'; then
_firewall_del || true
fi
_endpoint_route_del || true
}
openvpn() {
@@ -586,6 +625,7 @@ openvpn() {
config["Interface"]="${interface}"
config["ConfigFile"]="${config_file}"
config["Table"]="${config["Table"]:-1000}"
config["EndpointIPFile"]="${OPENVPN_STATE_DIR}/endpoint-ip"
config["PostUpScript"]="${OPENVPN_STATE_DIR}/up.sh"
config["PostDownScript"]="${OPENVPN_STATE_DIR}/down.sh"

View File

@@ -1,4 +1,5 @@
## &#9888; Open Issue : [🐛 Cloudcommander New Directory (opened 2026-03-19)](https://github.com/alexbelgium/hassio-addons/issues/2594) by [@pgitsov](https://github.com/pgitsov)
## &#9888; Open Issue : [🐛 [Qbittorent] qbittorrent-nox (opened 2026-05-09)](https://github.com/alexbelgium/hassio-addons/issues/2690) by [@BrainDeLook](https://github.com/BrainDeLook)
# Hass.io Add-ons: Tor with bridges
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)