Failed to load level data / level.dat (world won't open)
level.dat is the world's header file — seed, spawn, gamerules, world settings. A crash or power loss mid-save can leave it truncated, and then the world refuses to open even though the region files (the actual terrain) may be perfectly fine. The error appears at boot and the server stops.
Fastest path: paste your crash report into the Crash Doctor — it identifies this pattern and 40+ others automatically. No signup.
How to fix it
- 1
Stop the server — protect what's there
Do not restart repeatedly hoping it heals; failed loads can trigger writes that make recovery harder. One clean stop.
- 2
Restore the world from backup
The Backups tab restores the whole world to a known-good moment. This is the reliable fix and the reason verified backups exist.
- 3
No backup? Try level.dat_old
The server keeps a previous header copy. Rename level.dat to level.dat.broken, then level.dat_old to level.dat, and boot. Settings may be one save older, but the world opens.
- 4
Fix the root cause
Mid-save truncation usually traces to disk-full or a hard kill. Check free space and shutdown hygiene before calling it fixed.
Alternative causes
These can produce the same error message — worth ruling out if the steps above don't resolve it.
Disk full mid-save
A zero-byte or tiny level.dat is the disk-full signature. Clear space first — restoring a backup onto a full disk corrupts again.
Region corruption, not the header
If the world loads but specific chunks crash it, the header is fine and a region file is the problem — see the chunk-corruption guide.
Frequently asked
Can level.dat be repaired by hand?
Only via the level.dat_old fallback. Beyond that, NBT editors can sometimes salvage data, but a backup restore is faster and safer.
How do I prevent this?
Scheduled backups, clean shutdowns (never kill -9 a running server), and disk headroom. Hosts with verified backup-restore tests make this a non-event.
Want this auto-fixed on your server?
CoalHosting's Minecraft hosting runs the same pattern database against every crash and applies the known fix before your players notice. Free crash diagnosis works on any server, hosted or not.
Related crashes
Registry / world corruption (unregistered block or entity)
Fix Minecraft 'Encountered an unregistered' and 'ResourceLocation X not registered' crashes — the world refere…
Failed to save world / Failed to save chunk
Fix Minecraft 'Failed to save world' and 'Failed to save chunk' errors — Minecraft couldn't flush data to disk…
Unable to load chunk / Exception ticking world (corrupt region file)
A crash loop pointing at one chunk usually means a corrupt region file from a crash mid-save or disk error. Is…
Last reviewed 2026-09-06. If a step is wrong or out of date, tell us — we'll fix the article and the auto-pattern at the same time.