Minecraft2026-11-09 · 6 min read

"You Need to Agree to the EULA" — Fixed in 30 Seconds

Every Minecraft server refuses to start on its very first launch until you accept the EULA — it's not a bug, and the fix is one line in one file. Here's exactly what to change, plus the four reasons it sometimes doesn't stick.

The fix, if you just want it right now

Open eula.txt in your server's root folder. Change the line eula=false to eula=true. Save. Start the server again.

If that doesn't stick, or you're on a Docker-based host, keep reading — the causes below cover every variant we've actually seen.

1

First install — you haven't opened eula.txt yet

Symptom

You run server.jar for the first time. It prints a short log, then stops: "You need to agree to the EULA in order to run the server. Go to eula.txt for more info." A new file called eula.txt has appeared in the server folder.

Cause

This is expected, not a bug. The very first launch of any Minecraft server jar generates eula.txt and refuses to start — Mojang legally requires an explicit, separate acceptance of the End User License Agreement before the server software will run unattended.

Fix

Open eula.txt in a plain text editor. It contains one real line: `eula=false`. Change it to `eula=true`, save, and start the server again. Nothing else in the file matters — the comment line above it is just a link to the EULA text and can be left alone.

2

You changed it, saved it, and it still refuses to start

Symptom

You're sure you set eula=true. You saved the file. The server prints the exact same EULA message on the next launch, as if nothing changed.

Cause

Almost always one of three things: (a) the editor added a `.txt.txt` double extension or saved as rich text instead of plain text, so the file Minecraft reads isn't the one you edited, (b) there's whitespace or a stray character before `eula=true` that breaks the simple key=value parser, or (c) you're running the server from a **different folder** than the one containing the eula.txt you edited — common when a shortcut or start script points at an old install path.

Fix

Open a terminal in the exact folder the start command runs from and print the file directly: `cat eula.txt` on Linux/macOS or `type eula.txt` on Windows. If it shows `eula=false`, you edited the wrong file. If it shows `eula=true` and the server still refuses, check file permissions — the Minecraft process needs write access to this folder on first boot, and a read-only mount or wrong file owner (common in Docker setups run as the wrong UID) silently fails the write-back after parsing.

3

It worked, then reset back to eula=false on its own

Symptom

The server ran fine for days or weeks, then one day refuses to start again with the same EULA message, and eula.txt is back to false.

Cause

The file got overwritten — most commonly by **restoring an old backup** taken before you first accepted the EULA, or by a fresh-install script re-running against the same folder (a modpack updater or reinstall tool that regenerates the base server files without checking for an existing acceptance).

Fix

Set it back to `eula=true` as before. If this keeps recurring after every backup restore, check what your backup actually includes — some backup tools intentionally exclude config files like eula.txt to avoid overwriting environment-specific settings, and a restore then falls back to whatever default template shipped with the install. Exclude eula.txt from restore operations, or re-set it as the last step of your restore process.

4

Using a Docker image (itzg/minecraft-server or similar) and don't want to edit files manually

Symptom

You're running the popular itzg/minecraft-server Docker image, or a host built on it, and would rather not exec into the container to hand-edit a text file every time you spin up a fresh instance.

Cause

Most Docker-based Minecraft images expose EULA acceptance as an **environment variable** specifically so it can be set once in your compose file or host panel and never touched again.

Fix

Set the environment variable `EULA=TRUE` (itzg's image reads this and writes eula.txt automatically on container start — case matters, it must be the literal string `TRUE`, not `true`). On a managed host, this is usually a checkbox in the signup or server-settings screen rather than a raw environment variable — look for "Accept Minecraft EULA" during setup instead of hunting for a file.

Why this exists at all

Running a Minecraft server distributes Mojang's server software to every player who connects, and the EULA is the legal document that permits this. Mojang deliberately made acceptance a one-time, explicit, file-based step rather than a checkbox buried in an installer — it has to be something a server operator consciously sets, which is why no startup flag or server.properties option can skip it.

FAQ

Is accepting the Minecraft EULA legally binding?+

Yes. Setting eula=true is Mojang's mechanism for recording that you, as the server operator, have read and agreed to the Minecraft End User License Agreement — the same legal document every player accepts when installing the game. Running a server is only permitted under that agreement, which is why the software refuses to launch unattended until you've explicitly set the flag.

Can I host a Minecraft server without accepting the EULA?+

No — the vanilla server jar, Paper, Spigot, Forge, Fabric and every mainstream server implementation check for eula=true before binding to a port, and this check cannot be disabled through server.properties or startup flags. It's baked into the server's boot sequence specifically so it can't be silently bypassed.

Why does eula.txt keep resetting to false after I fix it?+

The most common cause is a backup or restore process overwriting it with an older version of the file (or the install template's default) rather than your current one. Less commonly, a modpack installer or auto-updater regenerates the base server files on every update and doesn't check for an existing EULA acceptance first. Check what exactly your restore/update step writes to the server folder.

Does every world or server instance need its own eula.txt acceptance?+

Yes — eula.txt lives in the server's root working directory, one per server.jar process. If you run multiple separate server instances (even on the same machine, in separate folders), each one needs its own eula.txt set to true. A single acceptance doesn't carry across different installs.

I set eula=true but now I get a different error instead — is that related?+

No — once the EULA check passes, the server moves on to its normal boot sequence, and any error after that point (port binding, world loading, a mod crash) is unrelated to the EULA and has its own separate cause. The EULA message is specifically and only about this one check; it doesn't resurface once eula=true is correctly set and the file is being read from the right place.

Skip the file-editing entirely

CoalHost accepts the EULA for you during signup — your server boots straight to the world, no eula.txt hunting required. From €10.69/month.

View Minecraft Hosting →