and now I have no logfiles being generated. They're not anywhere - neither in the default location, nor anywhere else on the server. I'm guessing the governing option is "-server", as I can't see how any of the other changes might have caused the problem. Any idea how to get logfiles to be generated again in this config?
This may help - I managed to get into the start screen and found this at the beginning of the console log:
2019-04-24 14:09:41,409 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile. java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:224)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:130)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:952)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:892)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:508)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:232)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:244)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:545)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at agh.<clinit>(SourceFile:17)
2019-04-24 14:09:41,411 main ERROR Null object returned for RollingRandomAccessFile in Appenders.
2019-04-24 14:09:41,420 main ERROR Unable to locate appender "File" for logger config "root"
Not sure why running the java instance with the -server option would cause this big blowup. Any suggestions for clearing this so I can get my log files going again would be great.
A final piece of info: running the MC .jar as root generates logs no problem. Running it as the minecraft user pops the error. This has worked for years, until I monkeyed with the CLI params today. Any idea what permissions the minecraft user is failing on? I must have re-created a file somewhere as root when I manually executed the Java .jar during testing, and now the minecraft user can't touch it, but I can't figure out which file.
I've been running a Java based server on Linux for a number of years. Trying to troubleshoot sources of lag and altered my invocation from:
java -Xms512M -Xmx2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=$CPU_COUNT -XX:+AggressiveOpts -jar minecraft_server.jar nogui
to:
java -server -Xms512M -Xmx2048M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -jar minecraft_server.jar nogui
and now I have no logfiles being generated. They're not anywhere - neither in the default location, nor anywhere else on the server. I'm guessing the governing option is "-server", as I can't see how any of the other changes might have caused the problem. Any idea how to get logfiles to be generated again in this config?
Thanks,
G.
This may help - I managed to get into the start screen and found this at the beginning of the console log:
2019-04-24 14:09:41,409 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element RollingRandomAccessFile. java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:224)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:130)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:952)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:892)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:884)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:508)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:232)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:244)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:545)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:617)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:634)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:229)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:152)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
at agh.<clinit>(SourceFile:17)
2019-04-24 14:09:41,411 main ERROR Null object returned for RollingRandomAccessFile in Appenders.
2019-04-24 14:09:41,420 main ERROR Unable to locate appender "File" for logger config "root"
Not sure why running the java instance with the -server option would cause this big blowup. Any suggestions for clearing this so I can get my log files going again would be great.
Thanks,
G.
A final piece of info: running the MC .jar as root generates logs no problem. Running it as the minecraft user pops the error. This has worked for years, until I monkeyed with the CLI params today. Any idea what permissions the minecraft user is failing on? I must have re-created a file somewhere as root when I manually executed the Java .jar during testing, and now the minecraft user can't touch it, but I can't figure out which file.
G.