From 8d824b3e19bedbe89e4c8e82ea5dc48dbd644f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Fri, 26 Jun 2026 22:25:25 +0100 Subject: [PATCH] fix(infra): pin MongoDB to 8.0 LTS to avoid ARM64 segfault mongo:8 resolves to 8.2 which uses tcmalloc-google. That allocator segfaults (exit 139) when transparent hugepages are disabled, which is the default on Hetzner kernels. MongoDB 8.0 LTS uses jemalloc and does not have this issue. PVC must be deleted before applying since FCV 8.2 data files can't be opened by 8.0. Finance API seeds admin on startup so no data is lost. Co-Authored-By: Claude Sonnet 4.6 --- infrastructure/terraform/mongodb.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/terraform/mongodb.tf b/infrastructure/terraform/mongodb.tf index c961599..6cd6a75 100644 --- a/infrastructure/terraform/mongodb.tf +++ b/infrastructure/terraform/mongodb.tf @@ -76,7 +76,7 @@ resource "kubernetes_stateful_set" "mongodb" { spec { container { name = "mongodb" - image = "mongo:8" + image = "mongo:8.0" env { name = "MONGO_INITDB_ROOT_USERNAME"