From f241470906e66c60aa7f84f699a29278c73d221a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 05:03:48 +0000 Subject: [PATCH 1/6] Fix qBittorrent restart loop: dynamic binary discovery and remove s6-notifyoncheck s6-notifyoncheck exits with EBADF when notification-fd 3 isn't opened by s6-rc (can happen depending on LSIO image layer order), killing the supervised qBittorrent process and causing the 2-second restart loop. Dropping it lets s6 supervise qBittorrent directly without the fragile fd notification path. Also probe /app, /usr/bin, and /usr/local/bin for the binary so the addon works across LSIO image builds that place qbittorrent-nox in different spots. https://claude.ai/code/session_015eiGSjWjSVtKbBFhBHUeDt --- qbittorrent/CHANGELOG.md | 3 +++ qbittorrent/config.yaml | 2 +- .../etc/s6-overlay/s6-rc.d/svc-qbittorrent/run | 18 +++++++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/qbittorrent/CHANGELOG.md b/qbittorrent/CHANGELOG.md index 68bb71478c..333fb837c6 100644 --- a/qbittorrent/CHANGELOG.md +++ b/qbittorrent/CHANGELOG.md @@ -1,4 +1,7 @@ +## 5.2.0-2 (2026-05-10) +- Fix qBittorrent restart loop: remove s6-notifyoncheck (avoids notification-fd EBADF crash) and discover binary path dynamically across LSIO image layouts + ## 5.2.0-1 (2026-05-10) - Fix qbittorrent-nox path (/usr/bin → /app) after LSIO image update diff --git a/qbittorrent/config.yaml b/qbittorrent/config.yaml index 559a7ad4f0..9b987cc09b 100644 --- a/qbittorrent/config.yaml +++ b/qbittorrent/config.yaml @@ -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-2" diff --git a/qbittorrent/rootfs/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run b/qbittorrent/rootfs/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run index 3f9c6b71f5..23110a2c61 100644 --- a/qbittorrent/rootfs/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run +++ b/qbittorrent/rootfs/etc/s6-overlay/s6-rc.d/svc-qbittorrent/run @@ -42,8 +42,20 @@ if bashio::config.true 'silent'; then QB_OUTPUT="/dev/null" fi +# Find qbittorrent-nox binary across different LSIO image layouts +QB_BIN="" +for candidate in /app/qbittorrent-nox /usr/bin/qbittorrent-nox /usr/local/bin/qbittorrent-nox; do + if [[ -x "${candidate}" ]]; then + QB_BIN="${candidate}" + break + fi +done + +if [[ -z "${QB_BIN}" ]]; then + bashio::log.fatal "qbittorrent-nox binary not found" + exit 1 +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}" +exec s6-setuidgid abc "${QB_BIN}" --webui-port="${WEBUI_PORT}" > "${QB_OUTPUT}" From 4e9901a957cdeea1f980b29512bf839849b7650b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 May 2026 14:24:20 +0000 Subject: [PATCH 3/6] fix: remove duplicate panel_admin key in mealie config.yaml, bump to v3.17.0-1 Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/73909b31-3e8e-4835-8d3e-3650650d4399 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- mealie/CHANGELOG.md | 3 +++ mealie/config.yaml | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mealie/CHANGELOG.md b/mealie/CHANGELOG.md index 4a2af1d445..a600e14194 100644 --- a/mealie/CHANGELOG.md +++ b/mealie/CHANGELOG.md @@ -1,4 +1,7 @@ +## v3.17.0-1 (2026-05-10) +- Fix sidebar panel not visible to non-admin HA users (remove duplicate panel_admin key, keep panel_admin: false) + ## v3.17.0 (2026-05-09) - Update to latest version from mealie-recipes/mealie (changelog : https://github.com/mealie-recipes/mealie/releases) diff --git a/mealie/config.yaml b/mealie/config.yaml index 8d3d79a503..966056eb0f 100644 --- a/mealie/config.yaml +++ b/mealie/config.yaml @@ -94,7 +94,6 @@ options: ssl: false panel_admin: false panel_icon: mdi:silverware-fork-knife -panel_admin: false ports: 9001/tcp: 9090 ports_description: @@ -115,4 +114,4 @@ schema: slug: mealie udev: true url: https://github.com/alexbelgium/hassio-addons -version: "v3.17.0" +version: "v3.17.0-1" From 19d7ab3b1be5c0b0ff06042d065642736010be8a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 10 May 2026 14:30:01 +0000 Subject: [PATCH 4/6] fix(seafile): seed admin credentials so first-run setup completes Seafile's check_init_admin.py looks for SEAFILE_ADMIN_EMAIL/PASSWORD in the env, then falls back to conf/admin.txt, and only prompts interactively if neither is available. The upstream init.sh writes admin.txt, but it is skipped when conf/ccnet.conf or conf/revision already exist (e.g. after a partial previous install) and the env vars do not always reach the seahub subprocess via su. Write admin.txt directly and inject the values into seafile.env so admin creation succeeds (#2685). https://claude.ai/code/session_01EwuoFH7aHJMySr9J775XQP --- seafile/CHANGELOG.md | 3 ++ seafile/config.yaml | 2 +- seafile/rootfs/etc/cont-init.d/99-run.sh | 37 ++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/seafile/CHANGELOG.md b/seafile/CHANGELOG.md index 48b98f2d96..a0a709eaca 100644 --- a/seafile/CHANGELOG.md +++ b/seafile/CHANGELOG.md @@ -1,4 +1,7 @@ +## 12.0.18-4 (2026-05-10) +- Fix admin account creation by writing `conf/admin.txt` and seeding `seafile.env` with `SEAFILE_ADMIN_EMAIL`/`SEAFILE_ADMIN_PASSWORD` so the upstream `check_init_admin.py` no longer falls back to an interactive prompt (#2685) + ## 12.0.18-3 (2026-05-10) - Fix MariaDB connection on HAOS >=17.3 by forcing IPv4 host resolution (#2688) diff --git a/seafile/config.yaml b/seafile/config.yaml index 2dc5ab8b2e..c016c9a733 100644 --- a/seafile/config.yaml +++ b/seafile/config.yaml @@ -128,5 +128,5 @@ services: slug: seafile udev: true url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile -version: "12.0.18-3" +version: "12.0.18-4" webui: http://[HOST]:[PORT:8000] diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 242504217d..af9baecfa9 100755 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -94,6 +94,43 @@ sed -i "s|/shared|$DATA_LOCATION|g" /docker_entrypoint.sh sed -i "s|/shared|$DATA_LOCATION|g" /home/seafile/*.sh #sed -i "s=cp -r ./media $DATA_LOCATION/=chown -R seafile:seafile $DATA_LOCATION/* && chmod -R 777 $DATA_LOCATION/media && cp -rnf ./media/. $DATA_LOCATION/media ||true=g" /home/seafile/*.sh +##################### +# Admin credentials # +##################### + +# Seafile's check_init_admin.py looks for SEAFILE_ADMIN_EMAIL and +# SEAFILE_ADMIN_PASSWORD in the env, then falls back to conf/admin.txt, and +# only prompts interactively if neither is available. The upstream init.sh +# writes admin.txt, but it is skipped when conf/ccnet.conf or conf/revision +# already exist (e.g. after a partial previous install) and the env vars do +# not always reach the seahub subprocess via su. Write admin.txt directly and +# inject the values into seafile.env so admin creation succeeds (#2685). +ADMIN_EMAIL_VAL="$(bashio::config 'SEAFILE_ADMIN_EMAIL')" +ADMIN_PASSWORD_VAL="$(bashio::config 'SEAFILE_ADMIN_PASSWORD')" + +if [[ -n "${ADMIN_EMAIL_VAL}" && "${ADMIN_EMAIL_VAL}" != "null" \ + && -n "${ADMIN_PASSWORD_VAL}" && "${ADMIN_PASSWORD_VAL}" != "null" ]]; then + bashio::log.info "Seeding admin credentials" + + mkdir -p "${DATA_LOCATION}/conf" + + ADMIN_FILE="${DATA_LOCATION}/conf/admin.txt" + jq -n --arg email "${ADMIN_EMAIL_VAL}" --arg password "${ADMIN_PASSWORD_VAL}" \ + '{email: $email, password: $password}' > "${ADMIN_FILE}" + chown seafile:seafile "${ADMIN_FILE}" + chmod 600 "${ADMIN_FILE}" + + SEAFILE_ENV_FILE="${DATA_LOCATION}/conf/seafile.env" + touch "${SEAFILE_ENV_FILE}" + sed -i '/^SEAFILE_ADMIN_EMAIL=/d' "${SEAFILE_ENV_FILE}" + sed -i '/^SEAFILE_ADMIN_PASSWORD=/d' "${SEAFILE_ENV_FILE}" + { + printf 'SEAFILE_ADMIN_EMAIL=%q\n' "${ADMIN_EMAIL_VAL}" + printf 'SEAFILE_ADMIN_PASSWORD=%q\n' "${ADMIN_PASSWORD_VAL}" + } >> "${SEAFILE_ENV_FILE}" + chown seafile:seafile "${SEAFILE_ENV_FILE}" +fi + ############################################# # Configure service URL and file server root # ############################################# From b6fb882ef388886949cbc172e1c6d449102d7d12 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 10 May 2026 16:37:41 +0200 Subject: [PATCH 5/6] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- seafile/rootfs/etc/cont-init.d/99-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index af9baecfa9..5ca2c0a71e 100755 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -129,6 +129,7 @@ if [[ -n "${ADMIN_EMAIL_VAL}" && "${ADMIN_EMAIL_VAL}" != "null" \ printf 'SEAFILE_ADMIN_PASSWORD=%q\n' "${ADMIN_PASSWORD_VAL}" } >> "${SEAFILE_ENV_FILE}" chown seafile:seafile "${SEAFILE_ENV_FILE}" + chmod 600 "${SEAFILE_ENV_FILE}" fi ############################################# From df2cd8c40b2dfdf310736114b9719d640707e2ce Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 10 May 2026 16:37:50 +0200 Subject: [PATCH 6/6] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- seafile/rootfs/etc/cont-init.d/99-run.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 5ca2c0a71e..287c8a78e5 100755 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -124,9 +124,22 @@ if [[ -n "${ADMIN_EMAIL_VAL}" && "${ADMIN_EMAIL_VAL}" != "null" \ touch "${SEAFILE_ENV_FILE}" sed -i '/^SEAFILE_ADMIN_EMAIL=/d' "${SEAFILE_ENV_FILE}" sed -i '/^SEAFILE_ADMIN_PASSWORD=/d' "${SEAFILE_ENV_FILE}" + + case "${ADMIN_EMAIL_VAL}" in + *$'\n'*|*$'\r'*) + bashio::exit.nok "SEAFILE_ADMIN_EMAIL must not contain newlines" + ;; + esac + + case "${ADMIN_PASSWORD_VAL}" in + *$'\n'*|*$'\r'*) + bashio::exit.nok "SEAFILE_ADMIN_PASSWORD must not contain newlines" + ;; + esac + { - printf 'SEAFILE_ADMIN_EMAIL=%q\n' "${ADMIN_EMAIL_VAL}" - printf 'SEAFILE_ADMIN_PASSWORD=%q\n' "${ADMIN_PASSWORD_VAL}" + printf 'SEAFILE_ADMIN_EMAIL=%s\n' "${ADMIN_EMAIL_VAL}" + printf 'SEAFILE_ADMIN_PASSWORD=%s\n' "${ADMIN_PASSWORD_VAL}" } >> "${SEAFILE_ENV_FILE}" chown seafile:seafile "${SEAFILE_ENV_FILE}" chmod 600 "${SEAFILE_ENV_FILE}"