From 12586765fbbb0c1c126ab9edfc30bf22ff99f6b8 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Fri, 1 Aug 2025 15:00:05 +0100 Subject: [PATCH] Merge pull request #27592 from overleaf/bg-update-check-mongo-script-to-use-docs update mongodb permission error message to include documentation link GitOrigin-RevId: 89dc1ef8388f83531f9875e034d145a6de6a075b --- .../web/modules/server-ce-scripts/scripts/check-mongodb.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs b/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs index 46be91a1d9..83e0e2c8a3 100644 --- a/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs +++ b/services/web/modules/server-ce-scripts/scripts/check-mongodb.mjs @@ -24,8 +24,9 @@ function handleUnauthorizedError(err, feature) { console.warn(`Warning: failed to check ${feature} (not authorised)`) if (!shouldSkipAdminChecks()) { console.error( - `Please ensure the MongoDB user has the required admin permissions, or\n` + - `set the environment variable ${OVERRIDE_ENV_VAR_NAME}=true to ignore this check.` + `Please ensure the MongoDB user has the required permissions, for more information see +https://docs.overleaf.com/on-premises/maintenance/updating-mongodb#creating-a-custom-role +or set the environment variable ${OVERRIDE_ENV_VAR_NAME}=true to ignore this check.` ) process.exit(1) }