From b42f9fabe1392bb71997b434bad25c15cc9863f3 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 5 Jan 2026 14:59:30 +0100 Subject: [PATCH] Fix NPM API health issues on Debian 13 with certbot-dns-multi On Debian 13 Trixie, NPM shows 'API isn't healthy' after upgrade. Install certbot-dns-multi with golang dependencies to fix this. Changes: - Install golang, build-essential, git on Debian 13 - Install setuptools-golang==2.9.0 in certbot venv - Set CGO_ENABLED=1 and GO111MODULE=on for pip install - Install certbot-dns-multi with --no-build-isolation flag - Applied to both fresh install and update_script() Credit: @i4mr000t and @CrazyWolf13 Source: https://v64.tech/t/nginx-proxy-manager-dnschallenge-ipv64-debian-13-fail/4177/7 Fixes: #7489 - NPM Web UI broken after Debian 13 upgrade --- ct/nginxproxymanager.sh | 11 +++++++++++ install/nginxproxymanager-install.sh | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index adb1e9493..de41e876e 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -177,6 +177,17 @@ EOF if [ -d /opt/certbot ]; then $STD /opt/certbot/bin/pip install --upgrade pip setuptools wheel $STD /opt/certbot/bin/pip install --upgrade certbot certbot-dns-cloudflare + + # Fix for Debian 13 Trixie - certbot-dns-multi needed to prevent "API isn't healthy" error + if [[ $(grep -E '^VERSION_ID=' /etc/os-release) == *"13"* ]]; then + msg_info "Applying Debian 13 Certbot Fix" + $STD apt-get install -y golang build-essential git + $STD /opt/certbot/bin/pip install --no-cache-dir setuptools-golang==2.9.0 + export CGO_ENABLED=1 + export GO111MODULE=on + $STD /opt/certbot/bin/pip install --no-build-isolation --no-cache-dir certbot-dns-multi + msg_ok "Applied Debian 13 Certbot Fix" + fi fi msg_ok "Updated Certbot" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index afe1723a2..93227a101 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -36,6 +36,18 @@ msg_info "Setting up Certbot" $STD python3 -m venv /opt/certbot $STD /opt/certbot/bin/pip install --upgrade pip setuptools wheel $STD /opt/certbot/bin/pip install certbot certbot-dns-cloudflare + +# Fix for Debian 13 Trixie - certbot-dns-multi needed to prevent "API isn't healthy" error +if [[ $(grep -E '^VERSION_ID=' /etc/os-release) == *"13"* ]]; then + msg_info "Applying Debian 13 Certbot Fix" + $STD apt-get install -y golang build-essential git + $STD /opt/certbot/bin/pip install --no-cache-dir setuptools-golang==2.9.0 + export CGO_ENABLED=1 + export GO111MODULE=on + $STD /opt/certbot/bin/pip install --no-build-isolation --no-cache-dir certbot-dns-multi + msg_ok "Applied Debian 13 Certbot Fix" +fi + ln -sf /opt/certbot/bin/certbot /usr/local/bin/certbot msg_ok "Set up Certbot"