Repository navigation
Troubleshooting EN
Real problems encountered during deployment and how they were solved.
Русская версия: Устранение неполадок
Console output:
Log::CreateAppenderFromConfig: Unknown type '4' for appender Console
Error while configuring Appender Console in Logger root. Appender does not exist
AC>
Cause: Appender.Console starts with 4 (unknown appender type).
Fix: the first number is the appender type; 1 is valid:
Appender.Console = 1,4,0,"1 9 3 6 5 8"Cause: worldserver.exe looks for the config in the current directory, but it
lives in configs\.
Fix: run with the flag:
.\worldserver.exe -c configs/worldserver.confCause: data/sql is missing. The core tries to apply auto-updates, fails
during init and never reaches networking.
Fix: copy data/sql from upstream AzerothCore:
git clone --depth 1 https://github.com/azerothcore/azerothcore-wotlk.git C:\temp\ac
Copy-Item -Recurse C:\temp\ac\data\sql E:\azeroth\data\Example:
ERROR 1062 (23000) at line 49: Duplicate entry '991001' for key 'creature.PRIMARY'
Applying of file '.../archivist_tables.sql' to database 'echo_world' failed!
Cause: the module migration file hash changed, the core tries to reapply it.
Fix: update the hash in the updates table:
$sha1 = (Get-FileHash <path to .sql> -Algorithm SHA1).HashUPDATE echo_world.updates SET hash='<SHA1>' WHERE name='archivist_tables.sql';Cause: mod-ai-bots requires a column missing from a table created by another
module or core version.
Fix: the module is unrelated to the project — remove it from modules/ and
configs/modules/, reconfigure CMake.
Cause: the DB has a ScriptName, but no matching C++ class in the built
worldserver.
Fix: either compile the module implementing it, or clear the ScriptName:
UPDATE echo_world.gameobject_template SET ScriptName='' WHERE entry=705605;Symptom: worldserver dies within seconds, Crashes/*.txt shows:
Exception code: C0000005 ACCESS_VIOLATION
ScriptRegistry<WorldScript>::_checkMemory+29
WorldScript::WorldScript+D3
`dynamic initializer for 'ChallengeModesWorldScriptInstance''
Cause: scripts created as global objects — their constructors run before
ScriptRegistry is initialised.
Fix: move creation into the loader function:
void Addecho_challenge_modesScripts()
{
static bool registered = false;
if (registered) return;
registered = true;
new ChallengeModesWorldScript();
// ...
}Cause: a model in creature_template_model is absent from the client's
CreatureDisplayInfo.dbc.
Fix: substitute an existing ID. Verify it exists in the client DBC, then:
UPDATE echo_world.creature_template_model
SET CreatureDisplayID = <existing>
WHERE CreatureID = <entry>;The shutdown log shows which pools were opened:
Closing down DatabasePool 'echo_world' ...
If it shows 1acore_world_new or another name, the config was not applied. Check:
Select-String -Path configs\worldserver.conf -Pattern "DatabaseInfo"Almost always a start order problem, not networking.
On startup authserver runs:
UPDATE realmlist SET flag = flag | 2; -- REALM_FLAG_OFFLINE for ALL realmsand worldserver clears that bit for its own realm when it starts. If the
worldserver comes up before the authserver, the authserver immediately marks the
realm offline again — and that is what the client displays.
Check:
SELECT id, name, flag, flag & 2 AS offline_bit FROM echo_auth.realmlist;offline_bit must be 0. If it is 2, the servers were started in the wrong order.
Correct order: authserver first, worldserver a few seconds later.
Quick fix without a restart:
UPDATE echo_auth.realmlist SET flag = flag & ~2 WHERE id = 1;Check the ports separately: Test-NetConnection 127.0.0.1 -Port 8085 and -Port 3724.
The client caches the realm list for the session — go back to the realm list
again after the change (a full client restart is more reliable).
Possible causes:
-
Cache/WDBnot cleared — the client reads the oldCharTitles.dbc. - Title not granted:
SELECT * FROM echo_characters.character_titles WHERE guid=<guid>; - ID 178 is outside the stock 1–47 range and the mask did not take.
Fix:
Remove-Item -Recurse -Force "C:\WoW\Cache\WDB\ruRU"If that does not help, rebuild patch-x.mpq with an ID in the 1–47 range.
- Spell on the server:
SELECT Effect_1, EffectAura_1, EffectMiscValue_1 FROM echo_world.spell_dbc WHERE ID=70010;Expect6 / 78 / 29767. IfEffect_1is76(SPELL_EFFECT_SUMMON_OBJECT_WILD), the spell creates a GameObject instead of mounting the player — apply0023_fix_mount_spell.sql. - Spell in the client:
verify_mpq.pymust unpack aSpell.dbcidentical to the source; record 70010 inclient_dbc_pt/Spell.dbcmust carry the sameEffect_1/EffectAura_1. A server/client mismatch means the mount will not work. - The mount creature exists:
SELECT t.entry, m.CreatureDisplayID FROM echo_world.creature_template t JOIN creature_template_model m ON m.CreatureID=t.entry WHERE t.entry=29767; - Item binding:
SELECT class, subclass, spellid_1, spellcategory_1 FROM echo_world.item_template WHERE entry=70003;Must be15 / 5 / 70010 / 330. - Clear
Cache/WDB— the client may have cached the old spell.
- Is
patch-Z.mpqinData/? - Load order: is
patch-Zlast alphabetically? - Is
Map.dbcon the server indata/dbc/? - Is
Map.dbcnot duplicated inpatch-x.mpq?
Check the structure: the .toc must be directly in AddOns/AzerothEcho/, not in
AddOns/AzerothEcho/AzerothEcho/:
Test-Path "C:\WoW\Interface\AddOns\AzerothEcho\AzerothEcho.toc"Corrupted MPQ or a conflict. Quick isolation — move out the patches:
Move-Item "C:\WoW\Data\patch-x.mpq" "C:\WoW\Data\patch-x.mpq.off"
Move-Item "C:\WoW\Data\patch-Z.mpq" "C:\WoW\Data\patch-Z.mpq.off"If the client starts, put them back one at a time to find the culprit.
The migration was written for a different core schema. Use sql/world-adapted/,
not sql/world/.
subclass is tinyint unsigned while the migration writes -1. Replace with 0.
Reapplying a migration that creates spawns with fixed guid. Remove the conflicting
rows before reimporting:
DELETE FROM echo_world.creature WHERE guid BETWEEN 7000101 AND 7000102;The migration writes to the wrong database. item_template lives in echo_world,
not echo_characters.
The base world dump overwrote the tables. The correct order is: schema → base ACDB
→ project migrations. If content is gone, reapply sql/world-adapted/.
| Symptom | Fix |
|---|---|
HTTP 401 Unauthorized |
check account credentials and gmlevel >= 3
|
Command can not be empty |
use <command> without the ns1: prefix |
User has to be assigned on all realms |
set account_access.RealmID = -1
|
| Port closed |
SOAP.Enabled = 1 and restart |
The server prints UTF-8 while the Windows console in a Russian locale runs cp866. Files on disk are fine — only the console rendering is broken.
Fix it by switching the code page of the console that hosts the process:
chcp 65001
worldserver.exe
tools/server/start-server.ps1 already launches both servers through
cmd /c "chcp 65001 & …", so starting them with the script gives a correct console.
To read logs without touching the server console, use the viewer:
.\tools\server\watch-log.ps1 # last 30 lines of Server.log
.\tools\server\watch-log.ps1 -Name Errors.log
.\tools\server\watch-log.ps1 -Filter "lua_scripts" -Lines 50
.\tools\server\watch-log.ps1 -Follow # stream new linesIt opens the file with FileShare.ReadWrite, so it works while the server is
running, and decodes UTF-8 properly.
Checks the custom id range (70000–70299 by default) and exits with code 1 when it finds problems, so it can run before a release or in CI.
python tools/verify-content.py --data-dir E:/acbuild/bin/RelWithDebInfo/dataWhat it checks:
| Check | What the warning means |
|---|---|
| NPCs without spawn | template exists, no row in creature — players will never see it |
| NPC models |
CreatureDisplayID missing from the client CreatureDisplayInfo.dbc
|
| Items |
displayid = 0, Material < 0, empty name, model missing from ItemDisplayInfo.dbc
|
| Mounts | spell without SPELL_AURA_MOUNTED (78), without a creature, without category 330 |
| Map 5000 | no spawns, graveyards, areatriggers or game_tele points |
| Titles | what actually sits in chartitles_dbc
|
NPCs 70190 "Void Rift" and 70191 "Withered from the Rift" show up as spawnless on
purpose: 17_TimeRift.lua creates them dynamically.
No CLI support: script, /console, stdin — all exit with code 0 and no effect.
It is a GUI application. Use tools/dbc/build_mpq.py.
The script is UTF-8 without BOM; PowerShell 5.1 reads it as ANSI and breaks on Cyrillic.
Fix: save with BOM:
$content = Get-Content script.ps1 -Raw -Encoding UTF8
[System.IO.File]::WriteAllText("$PWD\script.ps1", $content, [System.Text.UTF8Encoding]::new($true))GitHub rejects files over 100 MB. Add to .gitignore:
data/sql/
*.mpq
*.pdb
The Crashes/ directory next to worldserver.exe holds two files per crash:
.dmp (for WinDbg) and .txt (human-readable).
In .txt the Call stack section matters — top to bottom from the failure point:
00007FF7A7B18ED9 ScriptRegistry<WorldScript>::_checkMemory+29 ScriptMgr.h line 932
00007FF7A7B17F73 ScriptRegistry<WorldScript>::AddScript+53 ScriptMgr.h line 802
00007FF7A70718D3 `dynamic initializer for 'ChallengeModesWorldScriptInstance'
The first line mentioning your file is the problem location. Here: static script initialisation.
worldserver writes to the console. No file logs until an appender is configured:
Appender.Server = 2,5,0,Server.log,w
Appender.Errors = 2,2,0,Errors.log,w
Logger.root = 2,Console ServerCapturing output to a file:
.\worldserver.exe -c configs/worldserver.conf > ws.log 2>&1Log encoding is cp1251; read it explicitly:
Get-Content ws.log -Encoding DefaultStart
Для игрока / For players
- Установка клиента · Client install (EN)
- Контент реалма · Realm content (EN)
- Карта 5000 · Custom map 5000 (EN)
Для администратора / For admins
- Установка сервера · Server install (EN)
- SQL-миграции · SQL migrations (EN)
- SOAP и администрирование · SOAP & admin (EN)
- Устранение неполадок · Troubleshooting (EN)
Для разработчика / For developers
- Сборка ядра · Core build (EN)
- Клиентские патчи · Client patches (EN)
- Модули · Modules (EN)
- Lua-скрипты · Lua scripts (EN)
- Аддон AzerothEcho · Addon (EN)
- Разработка · Development (EN)