fix(Core/Authserver): list the possible causes of an empty realm list (#26887)

Co-authored-by: Ludwig Kormann <ludwig.kormann@in-circuit.de>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
sudlud
2026-08-01 06:43:06 +02:00
committed by GitHub
parent 8cfba48829
commit bf8f6ebe5a

View File

@@ -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 = <realm id>;");
LOG_ERROR("server.authserver", "- no realm address could be resolved, see the resolver errors logged above");
return 1;
}