Been having this issue where my character keeps getting reset (nothing in inventory, all levels gone, and starting at spawn). It doesn’t happen every time, but happens when I log back in to my server. The logs show the following:
[01:39:15] [User Authenticator #1/INFO]: UUID of player rezadu is e0ef0bd1-57ae-48bd-8e8e-ddade67e9d2f
[01:39:15] [Server thread/WARN]: Failed to load player data for rezadu
[01:39:15] [Server thread/INFO]: rezadu[/192.168.1.157:51545] logged in with entity id 227 at (36.5, 73.0, 254.5)
[01:39:15] [Server thread/INFO]: rezadu joined the game
I have 3 other people that connect to my server, and this only affects me which is local lan. Any ideas?
here's more log informaion
[02:59:26] [Server thread/INFO]: Starting minecraft server version 1.10.2
[02:59:27] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[02:59:27] [Server thread/INFO]: Loading properties
[02:59:27] [Server thread/INFO]: Default game type: SURVIVAL
[02:59:27] [Server thread/INFO]: Generating keypair
[02:59:27] [Server thread/INFO]: Starting Minecraft server on 0.0.0.0:25565
[02:59:27] [Server thread/INFO]: Using epoll channel type
[02:59:27] [Server thread/INFO]: Preparing level "world"
[02:59:27] [Server thread/ERROR]: Exception reading ./world/level.dat
java.io.EOFException
at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:268) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:258) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:164) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:79) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:91) ~[?:1.8.0_91]
at ea.a(SourceFile:24) ~inecraft_server.1.10.2.jar:?]
at azz.a(SourceFile:82) inecraft_server.1.10.2.jar:?]
at azz.c(SourceFile:66) inecraft_server.1.10.2.jar:?]
at azw.b(SourceFile:99) inecraft_server.1.10.2.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:194) inecraft_server.1.10.2.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:236) inecraft_server.1.10.2.jar:?]
at ld.j(SourceFile:228) inecraft_server.1.10.2.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:428) inecraft_server.1.10.2.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
[02:59:27] [Server thread/ERROR]: Exception reading ./world/level.dat
java.io.EOFException
at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:268) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:258) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:164) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:79) ~[?:1.8.0_91]
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:91) ~[?:1.8.0_91]
at ea.a(SourceFile:24) ~inecraft_server.1.10.2.jar:?]
at azz.a(SourceFile:82) inecraft_server.1.10.2.jar:?]
at azy.d(SourceFile:99) inecraft_server.1.10.2.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:246) inecraft_server.1.10.2.jar:?]
at ld.j(SourceFile:228) inecraft_server.1.10.2.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:428) inecraft_server.1.10.2.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
[02:59:28] [Server thread/INFO]: Preparing start region for level 0
[02:59:29] [Server thread/INFO]: Preparing spawn area: 21%
[02:59:30] [Server thread/INFO]: Preparing spawn area: 73%
[02:59:30] [Server thread/INFO]: Done (2.597s)! For help, type "help" or "?"
[03:00:45] [User Authenticator #1/INFO]: UUID of player rezadu is e0ef0bd1-57ae-48bd-8e8e-ddade67e9d2f
[03:00:45] [Server thread/WARN]: Failed to load player data for rezadu
[03:00:45] [Server thread/INFO]: rezadu[/192.168.1.157:61242] logged in with entity id 228 at (42.5, 74.0, 244.5)
[03:00:45] [Server thread/INFO]: rezadu joined the game
Check the permissions of the files using the command line prompt.
ls -la /var/games/minecraft/servers/*
let us know what you get as output. One possibility is that somehow the permissions of the file that holds the stats for rezadu is not writable by the process that the server starts up as. It’s not likely unless you’ve been tooling around as root
user and doing things, but it’s a possibility.
Other than that:
[02:59:27] [Server thread/ERROR]: Exception reading ./world/level.dat
java.io.EOFException
seems not that great. Corruption in the file? Permissions problem?
root@mineos-tkldev ~# ls -la /var/games/minecraft/servers/*
total 18528
drwxrwxr-x 4 mc mc 4096 Jun 24 06:11 .
drwxrwxr-x 3 root root 4096 Jun 20 01:18 ..
-rw-rw-r-- 1 mc mc 2 Jul 7 02:59 banned-ips.json
-rw-rw-r-- 1 mc mc 2 Jul 7 02:59 banned-players.json
-rw-rw-r-- 1 mc mc 0 Jun 20 01:18 cron.config
-rw-rw-r-- 1 mc mc 9 Jun 20 01:20 eula.txt
drwxrwxr-x 2 mc mc 4096 Jul 7 02:59 logs
-rw-rw-r-- 1 mc mc 9459897 Jun 24 06:11 minecraft_server.1.10.2.jar
-rw-rw-r-- 1 mc mc 9459395 Jun 20 01:14 minecraft_server.1.10.jar
-rw-rw-r-- 1 mc mc 134 Jul 7 02:59 ops.json
-rw-rw-r-- 1 mc mc 122 Jul 1 05:08 server.config
-rw-rw-r-- 1 mc mc 812 Jul 7 02:59 server.properties
-rw-rw-r-- 1 mc mc 325 Jul 7 03:00 usercache.json
-rw-rw-r-- 1 mc mc 2 Jun 20 01:21 whitelist.json
drwxrwxr-x 8 mc mc 4096 Jul 7 04:28 world
Is it possible that maybe I’m not shutting down the server properly and not saving my profile correctly? Is there a graceful way of shutting down in a VM? Normally I just go into the VM and Power off the virtual machine that way. Should i get in the CLI and do a “poweroff”?
That’s the equivalent of unplugging a powered on computer. You should instead use either the “ACPI Shutdown” option, shutting down via CLI (or do it via the UI that comes pre-installed on the official ISOs if that’s how you got MineOS), or even heading over to the WebUI and stopping all servers first before improperly shutting down the VM (although you still shouldn’t improperly shut it down, being that it could be updating/installing security updates and other stuff).
I do not have spigot installed.
I will give shutting down the server properly a go and give yall an update…Thanks for the advice!
Individual player’s saved data is saved at two different times:
- when a player logs off
- when the server is gracefully stopped
It seems like maybe it was only affecting you probably because you were the only one online when you yourself shut down the VM. If you had shutdown the minecraft server first, it will save the player data, and you literally could then just power off the whole VM as you are. There’s not a lot of reason to do this rather than gracefully shutting it down, though.
Otherwise, just 100% ensure you close your client gracefully, which will save your player data, too.