From f344b69617ddcb12c0a1b7123810ef15509953d6 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sat, 4 Apr 2026 22:15:20 +0200 Subject: [PATCH] fix(lobehub,otbr): increase heap limit and fix bind9 enable - lobehub: bump --max-old-space-size from 4096 to 8192 (build OOMs at ~6GB) - openthread-br: handle linked unit file bind9.service on Debian 13 --- ct/lobehub.sh | 2 +- install/lobehub-install.sh | 2 +- install/openthread-br-install.sh | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ct/lobehub.sh b/ct/lobehub.sh index 3f52e758..16921a14 100644 --- a/ct/lobehub.sh +++ b/ct/lobehub.sh @@ -47,7 +47,7 @@ function update_script() { msg_info "Building Application" cd /opt/lobehub - export NODE_OPTIONS="--max-old-space-size=4096" + export NODE_OPTIONS="--max-old-space-size=8192" $STD pnpm install $STD pnpm run build:docker unset NODE_OPTIONS diff --git a/install/lobehub-install.sh b/install/lobehub-install.sh index cacc8bac..c79da182 100644 --- a/install/lobehub-install.sh +++ b/install/lobehub-install.sh @@ -43,7 +43,7 @@ fetch_and_deploy_gh_release "lobehub" "lobehub/lobehub" "tarball" msg_info "Building Application" cd /opt/lobehub -export NODE_OPTIONS="--max-old-space-size=4096" +export NODE_OPTIONS="--max-old-space-size=8192" export DATABASE_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}" export DATABASE_DRIVER="node" export KEY_VAULTS_SECRET="$(openssl rand -base64 32)" diff --git a/install/openthread-br-install.sh b/install/openthread-br-install.sh index 1c124e50..af712317 100644 --- a/install/openthread-br-install.sh +++ b/install/openthread-br-install.sh @@ -77,7 +77,8 @@ cat </etc/default/otbr-agent # TCP example: spinel+hdlc+uart://192.168.1.100:9999 OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0" EOF -systemctl enable -q dbus rsyslog bind9 otbr-agent otbr-web +systemctl enable -q dbus rsyslog otbr-agent otbr-web +systemctl enable -q bind9 2>/dev/null || systemctl enable -q named 2>/dev/null || true systemctl start -q dbus rsyslog bind9 msg_ok "Configured Services"