mojira.dev
MC-115797

Server output shows errors and nothing else

ERROR StatusLogger Unrecognized format specifier [d]
ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [thread]
ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [level]
ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [logger]
ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [msg]
ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [n]
ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 internal initialization logging.
ERROR StatusLogger Unrecognized format specifier [d]
ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [thread]
ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [level]
ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [logger]
ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [msg]
ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
ERROR StatusLogger Unrecognized format specifier [n]
ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.

Because of this, no logs will generate in the logs folder either.

Linked issues

Comments

migrated

I can confirm this indeed occurs on at least MS systems. Linux based server starts, but server logging does not work

md_5

Doesn't work on Linux here, same errors above as windows followed by server exiting.

migrated

Maybe a bit obvious, but I can confirm that this affects macOS (10.12.5) as well.

EDIT: The server runs just fine, tho. It just doesn't output anything to console.

migrated

I've run it up on Debian with MineOS, runs and can join server.

Greener

the server is running in the background, just the logging engine, log4j, seems to not be able to read the config file in the jar, so it doesn't write anything to the console or latest.log

md_5

Nevermind, reason my server wasn't running was because eula.txt wasn't set, but I didn't know that for obvious reasons.

migrated

Wow. This is basically the equiv. of the 15w34c memory allocation crash (in my opinion as a server manager). This REALLY needs to be fixed IMMEDIATELY. Can confirm for macOS .jar.

migrated

Confirmed Win7 x86

eula=true is set. Issue occurs even on fresh instance with no world generated yet.

Further info:

When attempting on a fresh instance, The world does generate and the server is actually running.

When attempting on an existing upgraded world from previous snapshot. Persistent NullPointerException on every connection attempt.

In either instance, Nothing is output to console except the aforementioned errors.

Following commands also return nothing, but do execute successfully on server (client gets notified)

ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56
in conversion pattern.
op YT_Veritas0923
debug start

On the plus side. Books now craft. Advancements also work.

migrated

I know I'm stating the obvious but.... FreeBSD 10.3 using OpenJDK 8.121.13 gives the exact same results. Seems like a common Java logger related bug of some sort.

migrated

im running windows 10 64 bit pprofessional and am running into the same problem

migrated

Confirmed running standalone server with openjdk version 1.8.0_111
running snapshot17w14a (and previous) works
running snapshot17w15a fails

It seems that there are some issues with log4j 2.1 and shaded jars under Maven ?

A workaround is to open minecraft_server.jar and remove the two files under
/META-INF/org/apache/logging/log4j/core/config/plugins/

This seems to make the server log output to the console again

migrated

The problem is the jar has two files with the same name:

META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

Using the following did the trick for me:

unzip <jar> META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

which then asks me if I want to replace the first with the second--I say no.

Then:

zip -d <jar> META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

and again:

zip -d <jar> META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

And then:

jar -uvf <jar> META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat
migrated

BTW, I no longer see the StatusLogger errors after going through the above workaround.

migrated

What i did on Win7 x86 is just open up the minecraft_server.jar in WinRAR and deleted the duplicate named files mentioned above.

META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

Noticed in the previous snapshot such files did not exist in the archive.

Regular console output is now restored.

[media]
migrated

http://www.minecraftforum.net/forums/support/server-support/2715194-keeping-entity-that-already-exists-server-version

this also help with the client side when ppl having entiy with the same uuid works for me very well and the above metion also worked for me

migrated

For people who don't understand what Phillip said:
(Phillip's comment link:
https://bugs.mojang.com/browse/MC-115797?focusedCommentId=377682&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-377682)

How to fix:
1.Open the jar file using an unzipper like WinRAR/7-zip File manager/etc...
2.Navigate to: META-INF\org\apache\logging\log4j\core\config\plugins\ 3.Delete the Log4j2Plugins.dat file that is 67 bytes long
4.Run the server if you want using either the jar file itself or a batch script that:
a) is with jar file in the same directory containing code:

scriptInDirectory.bat

java -Xms<least memory to use> -Xmx<max memory to use> -jar minecraft_server.<server version>.jar nogui

b) is in a different directory containing code:

scriptOutsideDirectory.bat

cd <jar file directory in double quote marks, i.e: "C:\Users\<username>\Desktop">
java -Xms<least memory to use> -Xmx<max memory to use> -jar minecraft_server.<server version>.jar nogui
migrated

It is a easy fix, so it will probably be fixed in the next snapshot (hopefully) 🙂

migrated

Nathan Adams

Confirmed

Minecraft 17w15a

Minecraft 17w16a

Retrieved