Server list randomly resets / servers.dat may be getting corrupted
There are currently only a few log files or log snippets which hint at possible reasons why this bug occurs. Therefore please attach your log files to this report if your log contains any conspicuous errors or warning possibly containing either "Couldn't load server list" or "Couldn't save server list" . These logs are crucial to finding out what causes this bug.
The bug
The multiplayer server list (servers.dat) may reset itself or get corrupted.
How to reproduce
Some users wrote that this requires pressing the refresh button at a rapid rate but others said that this is not required.
Exact reproduction steps are unknown.
Known reasons
The following are log snippets showing why the server list could not be loaded in some cases. However, it does not explain how the server list became malformed in the first place.
[11:16:52 INFO]: Client> [11:16:52] [Client thread/ERROR]: Couldn't load server list [11:16:52 INFO]: Client> java.io.UTFDataFormatException: malformed input around byte 3[16:37:42] [Client thread/ERROR]: Couldn't load server list java.io.FileNotFoundException: C:\Users\sclark2\AppData\Roaming\.minecraft\servers.dat (Access is denied)
[04:25:45] [Client thread/ERROR]: Couldn't load server list java.io.EOFException at java.io.DataInputStream.readByte(Unknown Source) ~[?:1.8.0_25]
- Concurrent file access by other programs, for example Dropbox, see this comment.
Workaround
- Don't exit the game (else servers.dat_tmp will be deleted)
- Navigate to .minecraft/
- Rename the file servers.dat_tmp to servers.dat
- Refresh the list in the Game
Windows: You might as well be able to restore a previous version of the file by right clicking the current servers.dat file and selecting "Restore previous versions".
Try disabling programs which might access the file while Minecraft is currently trying to access it, for example Dropbox.
2013-11-10, 10:07 PM
2023-08-22, 06:30 PM
107
54
Minecraft 1.7.2 - 1.20
Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 1.7.5, Minecraft 1.7.9, Minecraft 1.7.10, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 1.8.9, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w05b, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.10, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 1.13, 1.14.4, 1.15, 1.15.2, 1.16.1, 20w27a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.5, 1.17, 1.17.1, 1.19.2, 1.20
-