Hi, all, I am trying to use sponge to build my mod server. However, it makes me frustrated. After editing eula.txt I did start the forge server without any mod at all. However, after dropping sponge and starting forge with terminal(command under Windows), the server crashed because of eula!!? I checked it several times and use different types of true like TRUE True true, but it did not work. The most ridculous thing is my official server could not work as the same reason-- EULA. Here is my software environment:
Operating system: OSX/Windows (I tried both of them, but i got same results)
JAVA: 1.8
forge: 1890
sponge: 1528/1653
Could you also put a paste of your EULA and of your server log. Simply saying that an error exists is not enough to tell what is going on - we need to see what the game is saying.
Could you post the crash report?
Here is my crash report:
---- Minecraft Crash Report ----
WARNING: coremods are present:
SpongeCoremod (spongeforge-1.8.9-1890-4.2.0-BETA-1528.jar)
Contact their authors BEFORE contacting forge
// Oops.
Time: 16-8-19 …œŒÁ1:48
Description: Exception generating new chunk
java.lang.OutOfMemoryError: Java heap space
at net.minecraft.world.chunk.ChunkPrimer.(SourceFile:11)
at org.spongepowered.common.util.gen.ChunkBufferPrimer.(ChunkBufferPrimer.java:43)
at net.minecraft.world.gen.ChunkProviderHell.populate(ChunkProviderHell.java:82)
at org.spongepowered.common.world.gen.SpongeChunkProvider.func_73154_d(SpongeChunkProvider.java:224)
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:154)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84)
at net.minecraft.server.MinecraftServer.prepareSpawnArea(MinecraftServer.java:646)
at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:621)
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:481)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:254)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
– Head –
Stacktrace:
at net.minecraft.world.chunk.ChunkPrimer.(SourceFile:11)
at org.spongepowered.common.util.gen.ChunkBufferPrimer.(ChunkBufferPrimer.java:43)
at net.minecraft.world.gen.ChunkProviderHell.populate(ChunkProviderHell.java:82)
at org.spongepowered.common.world.gen.SpongeChunkProvider.func_73154_d(SpongeChunkProvider.java:224)
– Chunk to be generated –
Details:
Location: 8,-3
Position hash: -12884901880
Generator: RandomLevelSource
Stacktrace:
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:154)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:114)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:84)
at net.minecraft.server.MinecraftServer.prepareSpawnArea(MinecraftServer.java:646)
at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:621)
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:481)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:254)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Unknown Source)
– System Details –
Details:
Minecraft Version: 1.8.9
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode, sharing), Oracle Corporation
Memory: 75888 bytes (0 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP 9.19 Powered by Forge 11.15.1.1902 4 mods loaded, 4 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UCHIJAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1902-1.8.9-universal.jar)
UCHIJAA Forge{11.15.1.1902} [Minecraft Forge] (forge-1.8.9-11.15.1.1902-1.8.9-universal.jar)
UCHIJAA sponge{1.8.9-1890-4.2.0-BETA-1528} [SpongeForge] (spongeforge-1.8.9-1890-4.2.0-BETA-1528.jar)
Loaded coremods (and transformers):
SpongeCoremod (spongeforge-1.8.9-1890-4.2.0-BETA-1528.jar)
org.spongepowered.common.launch.transformer.SpongeSuperclassTransformer
Profiler Position: N/A (disabled)
Player Count: 0 / 20; []
Is Modded: Definitely; Server brand changed to ‘fml,forge,sponge’
Type: Dedicated Server (map_server.txt)
This is not a EULA error. This is a Java out of memory error. Could you also paste your startup script.
That’s not the EULA’s fault. You need to give the server more memory.
Try adding -Xmx1G
before the -jar
when you start the server.
how do you know?
One of the first lines in the crash report:
java.lang.OutOfMemoryError: Java heap space
EDIT Two people posting simultaneously . I’ll get out of this.
Wow, it doesn’t work. here is the command:
java -jar -Xmx1G /Users/gd/Desktop/18er/forge-1.8.9-11.15.1.1902-1.8.9-universal.jar
I just used ‘java -jar sponge.jar’
as the start script no more than arguments stated above
The same output echo in terminal
The command didn’t work because the -jar command was not followed by a jar, it was followed by another argument. Here are two revised versions of the command:
java -jar {whatever}/forge-1.8.9-11.15.1.1902-1.8.9-universal.jar -Xmx1G
java -Xmx1G -jar {whatever}/forge-1.8.9-11.15.1.1902-1.8.9-universal.jar
If it still runs out of memory, try 2G.
java -jar /Users/guanzd/Deskto189server/forge-1.8.9-11.15.1.1902-1.8.9-universal.jar -Xms2G -Xmx2G
Is it ok?
I got the same output.
I think the problem is the server is not able to load eula.txt. But i do not know the solution.
The reason of my point of view is in lastes.log:
[13:39:11] [Server thread/WARN]: server.properties does not exist
[13:39:11] [Server thread/INFO]: Generating new properties file
[13:39:12] [Server thread/WARN]: Failed to load eula.txt
[13:39:12] [Server thread/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
the thing that makes confused is that if I start server through terminal/command the initiation must go to fail because of eula, but it is ok, when i started server directly.
You have posted 2 different errors.
- is because the server ran out of memory.
- is the server failing to start because it failed to load the eula.
Can you please post the full file name and path of eula.txt
as well as the full path you are attempting to run the server from, as well as the current working directory?
I suspect something strange is happening, and it’s either attempting to load the EULA.txt from the wrong directory, or you have named EULA.txt EULA.txt.txt or something, and are unable to tell due to file name extensions being disabled.
-Xmx1G
has to go before -jar
since it’s instructions for Java, not Minecraft.
Try deleting all eula
files and restarting the server. Then edit whichever eula
file appears. Also make sure you have a blank line at the end of the file.