Control Panel Stopping produces Java I/O Error

Post Reply
Jambe
New to forums
New to forums
Posts: 10
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Nov 03, 2011 8:37 am

Control Panel Stopping produces Java I/O Error

Post by Jambe »

I can stop the server in-game or via the console in Server Control and it doesn't produce this error, but stopping or restarting via the drop-down box in Server Control throws this. btw, restart happens normally after the error, and stopping and starting works, too. I just thought I'd mention this:

Code: Select all

2012-02-05 12:34:03 [INFO] Unknown command. Type "help" for help.[0m
2012-02-05 12:34:04 [SEVERE] null
java.io.IOException: Input/output error
	at java.io.FileInputStream.readBytes(Native Method)
	at java.io.FileInputStream.read(FileInputStream.java:236)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
	at jline.Terminal.readCharacter(Terminal.java:99)
	at jline.UnixTerminal.readVirtualKey(UnixTerminal.java:128)
	at jline.ConsoleReader.readVirtualKey(ConsoleReader.java:1453)
	at jline.ConsoleReader.readBinding(ConsoleReader.java:654)
	at jline.ConsoleReader.readLine(ConsoleReader.java:494)
	at net.minecraft.server.ThreadCommandReader.run(ThreadCommandReader.java:31)
Whereas /stop from the console or IG produces:

Code: Select all

2012-02-05 11:10:43 [INFO] Jambe: Stopping the server..[0m
2012-02-05 11:10:43 [INFO] Stopping server
2012-02-05 11:10:43 [INFO] [Minequery] Unloading Minequery v1.5.
2012-02-05 11:10:43 [INFO] Stopping Minequery server
2012-02-05 11:10:43 [INFO] [RepairChest] Unloading RepairChest v0.7.
2012-02-05 11:10:43 [INFO] [RepairChest 0.7] Disabled
2012-02-05 11:10:43 [INFO] [ExpMiner] Unloading ExpMiner v1.5.2.
2012-02-05 11:10:43 [INFO] ExpMiner disabled
2012-02-05 11:10:43 [INFO] [PermissionsBukkit] Unloading PermissionsBukkit v1.2.
2012-02-05 11:10:43 [INFO] PermissionsBukkit v1.2 is now disabled
2012-02-05 11:10:43 [INFO] [Essentials] Unloading Essentials v2.8.1.
2012-02-05 11:10:43 [INFO] Essentials: Using config based permissions. Enable superperms in config.
2012-02-05 11:10:43 [INFO] [EssentialsChat] Unloading EssentialsChat v2.8.1.
2012-02-05 11:10:43 [INFO] [EssentialsProtect] Unloading EssentialsProtect v2.8.1.
2012-02-05 11:10:44 [INFO] [EssentialsSpawn] Unloading EssentialsSpawn v2.8.1.
2012-02-05 11:10:44 [INFO] Saving chunks
Is this a quirk of the control panel, or have I borked something on the server? It seems /stop unloads all the plugins and saves chunks whereas stopping or restarting via the drop-down doesn't?
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Control Panel Stopping produces Java I/O Error

Post by Edge100x »

When the option is used on the server control page, the system tries to stop the server gracefully, then force-kills it if it is still active after a timeout. If your server takes more than a couple of seconds to stop, that could cause a problem with this. I will work on raising that timeout.
Jambe
New to forums
New to forums
Posts: 10
Joined: Thu Nov 03, 2011 8:37 am

Re: Control Panel Stopping produces Java I/O Error

Post by Jambe »

Oh I see. Well, the next log from that second code-paste is this:
2012-02-05 11:10:50 [INFO] Starting minecraft server version 1.1
So it's only taking 7 seconds to shut down the plugins and save chunks.

Hm.
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Control Panel Stopping produces Java I/O Error

Post by Edge100x »

Please try shutting down the server through the CP again now and let me know if you see any problem with it. I have raised the timeout.
Jambe
New to forums
New to forums
Posts: 10
Joined: Thu Nov 03, 2011 8:37 am

Re: Control Panel Stopping produces Java I/O Error

Post by Jambe »

Didn't throw the error this time, sir!

Thanks! You're great. I guess this'll shorten up everybody's logs, which is a good thing.
User avatar
Edge100x
Founder
Founder
Posts: 12948
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Control Panel Stopping produces Java I/O Error

Post by Edge100x »

:). Most importantly, I hope that it prevents unnecessary rollbacks due to the save not finishing!
Post Reply