Problem Forge server.jar running, but fatal error encountered upon launching.

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Vinnskii

New Member
Mar 4, 2021
2
0
2
Hello world,

I've been running a FTB Endeavor server with a forge .jar file and portforwarding for about a week now and all of the sudden I've been encountering errors upon attempting to launch the server .jar.

I'm rather inexperienced with running servers, as this was a personal server for my friends and I. I'd just like to know what I could possibly do to save it.

Here is the last part of the .jar log error:

JavaScript:
[11:12:23] [Server console handler/ERROR] [minecraft/DedicatedServer]: Exception handling console input
java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_281]
    at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_281]
    at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_281]
    at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_281]
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_281]
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_281]
    at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_281]
    at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_281]
    at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_281]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_281]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_281]
    at net.minecraft.server.dedicated.DedicatedServer$1.run(DedicatedServer.java:89) [?:?]
[11:12:23] [Server thread/INFO] [minecraft/DedicatedServer]: Starting Minecraft server on XXXXX.XXXX.XXXX.XX:XXXXX
[11:12:23] [Server thread/INFO] [minecraft/NetworkSystem]: Using default channel type
[11:12:24] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file simplyutilities-server.toml of type SERVER for modid simplyutilities
    at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:61) ~[forge:?]
    at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) ~[forge:?]
    at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) ~[forge:?]
    at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_281]
    at java.util.Collections$SynchronizedCollection.forEach(Unknown Source) ~[?:1.8.0_281]
    at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) ~[forge:?]
    at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:95) ~[forge:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:166) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:621) ~[?:?]
    at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:232) ~[?:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]
Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available
    at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) ~[toml-3.6.2.jar:?]
    at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.2.jar:?]
    at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.2.jar:?]
    at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.2.jar:?]
    at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.2.jar:?]
    at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.2.jar:?]
    at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:57) ~[forge:?]
    ... 10 more
[11:12:24] [Server thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID 00977a00-3750-4aa0-be89-f4ee1c17ad11

And here is the crash report:

Time: 3/4/21 11:12 AM
Description: Exception in server tick loop
JavaScript:
net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file simplyutilities-server.toml of type SERVER for modid simplyutilities
    at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:61) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) ~[forge:?] {re:classloading}
    at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_281] {}
    at java.util.Collections$SynchronizedCollection.forEach(Unknown Source) ~[?:1.8.0_281] {}
    at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) ~[forge:?] {re:classloading}
    at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:95) ~[forge:?] {re:mixin,re:classloading}
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:166) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:621) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:232) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:byg.mixins.json:server.MixinMinecraftServer,pl:mixin:A,pl:runtimedistcleaner:A}
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_281] {}
Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available
    at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) ~[toml-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.2.jar:?] {}
    at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.2.jar:?] {}
    at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:57) ~[forge:?] {re:classloading}
    ... 10 more

And finally, here is the latest server log: https://gist.github.com/Vinnskii/3d7c8d6330402f69e8bd807a3f8961d1

I have not altered the modlist for Endeavor whatsoever. The items that stick out to a newbie are the "not enough data available", "the handle is invalid" and "exception in server tick loop" lines. Does anyone with experience running servers know a fix to these error lines? Thank you for any possible input!! And please let me know if more information is needed. I'd be happy to grant it!!
 
Last edited:

grandrolf

Global moderator
Team Member
Global Moderator
Trusted User
Aug 29, 2014
2,658
246
133
sweden
How did you create the server - did you use the server installer?

Is this server directly connected to the public internet - if not, then you should remove the ip from server.properties and leave that section blank - even with public facing and only one nic/IP, you should leave that blank.

That is used to bind the traffic to that specific IP if the server have several, but it will not work if the server is behind a router/firewall with the use of portforward.
 

Vinnskii

New Member
Mar 4, 2021
2
0
2
How did you create the server - did you use the server installer?

Is this server directly connected to the public internet - if not, then you should remove the ip from server.properties and leave that section blank - even with public facing and only one nic/IP, you should leave that blank.

That is used to bind the traffic to that specific IP if the server have several, but it will not work if the server is behind a router/firewall with the use of portforward.

I used the new FTB official launcher and clicked "download server" from the More<Versions tab. Then I simply ran the serverinstall in a folder as per usual.

Is this server directly connected to the public internet - if not, then you should remove the ip from server.properties and leave that section blank - even with public facing and only one nic/IP, you should leave that blank.
Thank you, I will keep that in mind for next time. But the weird thing is that the server worked just fine even with that filled in the server.properties before. Which leads me to believe that there are mod conflicts with the server itself instead of it being an issue with that.

I tried re-downloading the server files, just in case it was an error with those. But it seems like it's an issue with the world file, because I kept the old world file and dropped it into the new server files and got the same error. I don't know if that's something you can do, but I assume you can.