-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 14w28b
-
Ubuntu 14.04, Java 8 (from Webupd8 PPA)
-
Unconfirmed
What I expected to happen was:
When I started my server and didn't have the eula.txt file, it should have warned me that I needed to agree to the EULA and stopped automatically.
What actually happened was:
I started my server; I had no eula.txt file, so it warned me I needed to agree to the EULA, then hung. Typing stop stopped the server with an error:
stop
[17:36:20] [Server thread/INFO]: Stopping server
[17:36:20] [Server Shutdown Thread/INFO]: Stopping server
2014-07-10 17:36:20,632 ERROR Attempted to append to non-started appender File
2014-07-10 17:36:20,634 ERROR Unable to write to stream logs/latest.log for appender File
2014-07-10 17:36:20,635 ERROR An exception occurred processing Appender File org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing to RandomAccessFile logs/latest.log
at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.flush(RollingRandomAccessFileManager.java:109)
at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.write(RollingRandomAccessFileManager.java:90)
at org.apache.logging.log4j.core.appender.OutputStreamManager.write(OutputStreamManager.java:129)
at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:113)
at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender.append(RollingRandomAccessFileAppender.java:96)
at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:425)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:367)
at org.apache.logging.log4j.core.Logger.log(Logger.java:110)
at org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1011)
at net.minecraft.server.MinecraftServer.p(SourceFile:351)
at ov.run(SourceFile:694)
Caused by: java.io.IOException: Stream Closed
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(RandomAccessFile.java:493)
at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.flush(RollingRandomAccessFileManager.java:106)
... 12 more2014-07-10 17:36:20,640 ERROR Attempted to append to non-started appender ServerGuiConsole
Exception in thread "Server Shutdown Thread" org.apache.logging.log4j.core.appender.AppenderLoggingException: Attempted to append to non-started appender ServerGuiConsole
at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:89)
at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:425)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:406)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:367)
at org.apache.logging.log4j.core.Logger.log(Logger.java:110)
at org.apache.logging.log4j.spi.AbstractLogger.info(AbstractLogger.java:1011)
at net.minecraft.server.MinecraftServer.p(SourceFile:351)
at ov.run(SourceFile:694)
Steps to reproduce:
1) Start a Minecraft server (of a previous snapshot), agree to the EULA and let it generate all the files.
2) Stop the server.
3) Make sure there is no eula.txt file in the server directory.
4) Run the 14w28b server file in the same directory as the previous server, without deleting any files.
5) Notice that the server does not stop automatically when the eula.txt file is not found, and that typing stop causes an error.
- duplicates
-
MC-38134 Race condition in logging when shutting down
- Resolved