PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.7k stars 2.26k forks source link

[main/FATAL]: Failed to start the minecraft server #3743

Closed RedTeaDev closed 4 years ago

RedTeaDev commented 4 years ago

Link/paste of stack trace

[00:21:52] [main/FATAL]: Failed to start the minecraft server
com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
    at net.minecraft.server.v1_16_R1.ChatDeserializer.a(SourceFile:495) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.ChatDeserializer.a(SourceFile:545) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.ChatDeserializer.a(SourceFile:541) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.ChatDeserializer.a(SourceFile:549) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.GeneratorSettings.a(SourceFile:203) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.DedicatedServerProperties.<init>(DedicatedServerProperties.java:107) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.DedicatedServerProperties.load(DedicatedServerProperties.java:112) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.DedicatedServerSettings.<init>(DedicatedServerSettings.java:17) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at net.minecraft.server.v1_16_R1.Main.main(Main.java:64) [spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at org.bukkit.craftbukkit.Main.main(Main.java:202) [spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212]
    at com.songoda.serverjars.ServerJars.main(ServerJars.java:54) [Updater-1.0.0.jar:?]
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1564) ~[Updater-1.0.0.jar:?]
    at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1405) ~[Updater-1.0.0.jar:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:594) ~[Updater-1.0.0.jar:?]
    at com.google.gson.stream.JsonReader.peek(JsonReader.java:426) ~[Updater-1.0.0.jar:?]
    at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:700) ~[Updater-1.0.0.jar:?]
    at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:698) ~[Updater-1.0.0.jar:?]
    at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:894) ~[Updater-1.0.0.jar:?]
    at net.minecraft.server.v1_16_R1.ChatDeserializer.a(SourceFile:493) ~[spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f]
    ... 14 more

Plugin list:

none

Actions to reproduce (if known):

force upgrade the server java -jar paper-1.16.1.jar --forceUpgrade --nogui the issue fixed only if all .yml was removed

Paper build number:

Paper 1.16.1 Build # 34

system environment

Prof-Bloodstone commented 4 years ago

Please put all you *.json files through json linter - ops.json, whitelist.json, ...

Probably one of those got corrupted.

SamB440 commented 4 years ago

at com.songoda.serverjars.ServerJars.main(ServerJars.java:54) [Updater-1.0.0.jar:?]

hmm...

spigot-1.16.1.jar:git-Spigot-4d9262c-3b9cf0f

Uhh...

Chew commented 4 years ago

This repository is for issues relating to Paper, not Spigot. If you have an issue with Spigot I recommend asking on their forums.

aikar commented 4 years ago

Please, for the love of all tacos, burritos, or any diety you wish to worship, DO NOT USE THAT WEBSITE!!!

Only download paper from our website at https://papermc.io/downloads

But to fix the issue, delete the generator-settings from server.properties

apparently mojang broke that.

TheArcaneBrony commented 4 years ago

no need to re-open but "do not use that website", which website?

aikar commented 4 years ago

server jars

guoguoaidaogu commented 3 years ago

I had the same problem as yours. I found it on Mojang website that they broke the 'generator-settings' option on Minecraft versions 1.13+. So maybe you should delete the option in server.properties and restart your server. 😄