From bf8f6ebe5a172e656475f003425cbe55b1a8514e Mon Sep 17 00:00:00 2001 From: sudlud Date: Sat, 1 Aug 2026 06:43:06 +0200 Subject: [PATCH] fix(Core/Authserver): list the possible causes of an empty realm list (#26887) Co-authored-by: Ludwig Kormann Co-authored-by: Claude Opus 5 (1M context) Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/server/apps/authserver/Main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/apps/authserver/Main.cpp b/src/server/apps/authserver/Main.cpp index d19e2b83c..8b5504e87 100644 --- a/src/server/apps/authserver/Main.cpp +++ b/src/server/apps/authserver/Main.cpp @@ -143,7 +143,11 @@ int main(int argc, char** argv) if (sRealmList->GetRealms().empty()) { - LOG_ERROR("server.authserver", "No valid realms specified."); + LOG_ERROR("server.authserver", "No valid realms specified. Possible reasons:"); + LOG_ERROR("server.authserver", "- the realmlist table of the auth database is empty"); + LOG_ERROR("server.authserver", "- every realm has flag 3 (REALM_FLAG_VERSION_MISMATCH | REALM_FLAG_OFFLINE), which the realm list " + "query excludes. Reset it with: UPDATE realmlist SET flag = 0 WHERE id = ;"); + LOG_ERROR("server.authserver", "- no realm address could be resolved, see the resolver errors logged above"); return 1; }