From b8c0afaf29726a7ac0cc7ae7cd70437d952676db Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 2 Sep 2026 17:30:53 +0200 Subject: [PATCH] setup_meilisearch: generate a 32-byte master key base64 12 yields 16 characters. MeiliSearch itself only asks for 16 bytes, but Wanderer's PocketBase fork refuses to start below 32 and crash-loops with "MEILI_MASTER_KEY not set or is shorter than 32 bytes". A longer key is valid for all 11 callers, so this is raised at the source rather than overridden per script. Refs community-scripts/ProxmoxVE#16909 --- lib/db.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/db.func b/lib/db.func index eb3dd44..94f153d 100644 --- a/lib/db.func +++ b/lib/db.func @@ -672,8 +672,9 @@ setup_meilisearch() { return 7 } - # Generate master key - MEILISEARCH_MASTER_KEY=$(openssl rand -base64 12) + # 32 bytes, not 12: base64 12 yields 16 characters, and consumers such as + # Wanderer's PocketBase fork refuse to start below 32. + MEILISEARCH_MASTER_KEY=$(openssl rand -base64 32) export MEILISEARCH_MASTER_KEY # Configure