Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.
OS Name/Version: Windows 2022 Server
Product Name/Version: Fresh Minecraft Java Edition 1.20.4
Problem Description:
“Minecraft server repeatable failed to start. Not an issue with AMP, check Minecraft logs.” I have no issue running the server from another manager or even just starting minecraft_server.jar. It’s AMP that is giving the issue.
Console Info
Starting net.minecraft.server.Main
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:391)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:416)
at com.mojang.logging.LogUtils.getLogger(LogUtils.java:62)
at net.minecraft.server.Main.<clinit>(SourceFile:63)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:534)
at java.base/java.lang.Class.forName(Class.java:513)
at net.minecraft.bundler.Main.lambda$run$0(Main.java:52)
at java.base/java.lang.Thread.run(Thread.java:1583)
2024-02-26 17:40:58,831 ServerMain ERROR Unable to invoke factory method in 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 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:260)
at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:136)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1138)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1063)
at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1055)
at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:664)
at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:258)
at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:304)
at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694)
at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:61)
at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:391)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:416)
at com.mojang.logging.LogUtils.getLogger(LogUtils.java:62)
at net.minecraft.server.Main.<clinit>(SourceFile:63)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:534)
at java.base/java.lang.Class.forName(Class.java:513)
at net.minecraft.bundler.Main.lambda$run$0(Main.java:52)
at java.base/java.lang.Thread.run(Thread.java:1583)
2024-02-26 17:40:58,837 ServerMain ERROR Null object returned for RollingRandomAccessFile in Appenders.
2024-02-26 17:40:58,847 ServerMain ERROR Unable to locate appender "File" for logger config "root"
ServerMain/INFO17:41:03
Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
ServerMain/ERROR17:41:03
Failed to start the minecraft server
Console17:41:03
java.nio.file.AccessDeniedException: .\world\session.lock
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:119) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:309) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:369) ~[?:?]
at atu.a(SourceFile:34) ~[server-1.20.4.jar:?]
at egm$c.<init>(SourceFile:394) ~[server-1.20.4.jar:?]
at egm.d(SourceFile:373) ~[server-1.20.4.jar:?]
at net.minecraft.server.Main.main(SourceFile:133) ~[server-1.20.4.jar:?]
at net.minecraft.bundler.Main.lambda$run$0(Main.java:54) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Steps to reproduce:
- Literally just click the instance and start. It won’t start and also makes the CPU go to 130%
Actions taken to resolve so far:
- Installed/PATH JDK 21, then tried 17. Also have JRE 8. Which like i said, server starts no problem without AMP.
- In Java and Memory section, it does have (unrecognized) on the side of JDK 21, JDK17.
- Tried different versions and also different packages other than Official