"Failed to save server.properties" error MINECRAFT

Post Reply
User avatar
Vanderburg
Former staff
Former staff
Posts: 1253
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Nov 13, 2010 7:27 am
Location: Dallas, TX

"Failed to save server.properties" error MINECRAFT

Post by Vanderburg »

We are seeing a lot of requests for this the past few days and 99% of the time, it is due to your server.properties file being incomplete. The error commonly looks as follows:

Code: Select all

 [WARNING] Failed to save server.properties
java.io.FileNotFoundException: server.properties (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
at nt.b(SourceFile:34)
at nt.a(SourceFile:29)
at nt.b(SourceFile:37)
at nt.a(SourceFile:29)
at nt.b(SourceFile:37)
at nt.a(SourceFile:29)
at nt.b(SourceFile:37)
With a LOT of those at nt.X source files.

If you're experiencing this error, the easiest fix is to load a default server.properties file by either editing your current one or uploading a new one to replace your old one. A proper server.properties files looks like this:

Code: Select all

#Minecraft server properties
#Wed Sep 14 06:28:05 CDT 2011
level-name=world
hellworld=false
allow-nether=true
view-distance=10
spawn-monsters=true
online-mode=true
difficulty=1
gamemode=0
spawn-animals=true
pvp=true
server-ip=INSERT PROPER IP ADDRESS HERE
max-players=INSERT PROPER PLAYER COUNT HERE
level-seed=
server-port=25565
allow-flight=false
white-list=false
motd=Minecraft Server
Those two lines I put caps on are very, very, VERY important. If you don't have the IP, you'll get a can't bind to port error and won't be able to connect at all. And the proper player count needs to be there or you could get in trouble. Hopefully this helps a few of you.
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: "Failed to save server.properties" error MINECRAFT

Post by Edge100x »

Since the server.properties file is so easily broken, we don't include it on the "File manager" page of the control panel. Renters really shouldn't be editing this file; instead, the "Easy setup" page should be used.
Post Reply