Fix Seerr OOM crash by setting default Node.js memory limit (512MB)

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/9948a07a-8ef8-4cb0-b0b2-a116cf6fdb18
This commit is contained in:
copilot-swe-agent[bot]
2026-03-22 16:12:18 +00:00
parent 169eeccc28
commit dd0fed1bd8
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
## 3.1.0-2 (22-03-2026)
- Set default Node.js memory limit (512MB) to prevent OOM kills that caused the addon to stop responding
## 3.1.0 (2026-02-28)
- Update to latest version from seerr-team/seerr (changelog : https://github.com/seerr-team/seerr/releases)

View File

@@ -4,5 +4,11 @@ set -e
cd /app || exit 1
# Set default Node.js memory limit to prevent OOM kills
# Users can override this via the addon's env_vars option (NODE_OPTIONS)
if [[ "${NODE_OPTIONS:-}" != *"max-old-space-size"* ]] && [[ "${NODE_OPTIONS:-}" != *"max_old_space_size"* ]]; then
export NODE_OPTIONS="${NODE_OPTIONS:+${NODE_OPTIONS} }--max-old-space-size=512"
fi
bashio::log.info "Starting Seerr..."
exec npm start