Logs / Error guide / Minecraft
Minecraft: “You need to agree to the EULA in order to run the server”
What the message means
Mojang requires you to agree to the end user license agreement (EULA) before a server starts. Until you do, the server shuts down again right after its first start.
What it looks like in the log
[12:00:01] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[12:00:02] [ServerMain/WARN]: Failed to load eula.txt
[12:00:02] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
container@pterodactyl~ Server marked as offline...
Excerpt from an example log, marked the way the analysis marks it.
Common causes
- First start of a new server: the file eula.txt was only just created.
- eula.txt was overwritten when you set the server up again, switched server software or restored a backup.
How to fix it
- Open the file eula.txt in the server's main folder.
- Change the line eula=false to eula=true and save.
- Restart the server.
Many panels ask about the EULA on first start and set the value themselves. With eula=true, you agree to Mojang's terms (aka.ms/MinecraftEULA).