You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dejan (Jira)" <ji...@apache.org> on 2021/01/13 08:24:00 UTC

[jira] [Comment Edited] (LOG4J2-2901) Reconfiguration failed during backend server startup

    [ https://issues.apache.org/jira/browse/LOG4J2-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17263973#comment-17263973 ] 

Dejan edited comment on LOG4J2-2901 at 1/13/21, 8:23 AM:
---------------------------------------------------------

[~rgoers] Here is a debug log from log4j2:

DEBUG | wrapper | 2021/01/13 09:06:08 | command: "<Java-Path>\java.exe" -Di3s.configFilePath=etc -Dlog4j.configuration=file:etc/log4j2.properties -Dlog4j2.debug=true -Xms20m -Xmx500m -Djava.library.path="lib" -classpath "etc;lib/org/apache/logging/log4j/log4j-api/2.14.0/log4j-api-2.14.0.jar;lib/org/apache/logging/log4j/log4j-core/2.14.0/log4j-core-2.14.0.jar" <My startup class>

DEBUG | wrapper | 2021/01/13 09:06:08 | JVM started (PID=4632)
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Using ShutdownCallbackRegistry class org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger AsyncLogger.ThreadNameStrategy=UNCACHED (user specified null, default is UNCACHED)
 INFO | jvm 1 | 2021/01/13 09:06:09 | TRACE StatusLogger Using default SystemClock for timestamps.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock supports precise timestamps.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Took 0.109343 seconds to load 216 plugins from jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-1
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Starting LoggerContext[name=30946e09, org.apache.logging.log4j.core.LoggerContext@79079097]...
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Reconfiguration started for context[name=30946e09] at URI null (org.apache.logging.log4j.core.LoggerContext@79079097) with optional ClassLoader: null
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger PluginManager 'ConfigurationFactory' found 4 plugins
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Missing dependencies for Yaml support, ConfigurationFactory org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory is inactive
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Missing dependencies for Json support, ConfigurationFactory org.apache.logging.log4j.core.config.json.JsonConfigurationFactory is inactive
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Using configurationFactory org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@6ad82709
 INFO | *jvm 1 | 2021/01/13 09:06:09 | WARN StatusLogger Invalid URI [file:etc/log4j2.properties*|file://etc/log4j2.properties*]
 INFO | jvm 1 | 2021/01/13 09:06:09 | ERROR StatusLogger Reconfiguration failed: No configuration found for '30946e09' at 'null' in 'null'
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
 INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger LoggerContext[name=30946e09, org.apache.logging.log4j.core.LoggerContext@79079097] started OK.
 INFO | jvm 1 | 2021/01/13 09:06:10 | WrapperManager class initialized by thread: main Using classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09


was (Author: dmusic):
[~rgoers] Here is a debug log from log4j2:

DEBUG | wrapper | 2021/01/13 09:06:08 | JVM started (PID=4632)
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Using ShutdownCallbackRegistry class org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger AsyncLogger.ThreadNameStrategy=UNCACHED (user specified null, default is UNCACHED)
INFO | jvm 1 | 2021/01/13 09:06:09 | TRACE StatusLogger Using default SystemClock for timestamps.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock supports precise timestamps.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Took 0.109343 seconds to load 216 plugins from jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger PluginManager 'Converter' found 44 plugins
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-1
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Starting LoggerContext[name=30946e09, org.apache.logging.log4j.core.LoggerContext@79079097]...
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Reconfiguration started for context[name=30946e09] at URI null (org.apache.logging.log4j.core.LoggerContext@79079097) with optional ClassLoader: null
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger PluginManager 'ConfigurationFactory' found 4 plugins
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Missing dependencies for Yaml support, ConfigurationFactory org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory is inactive
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Missing dependencies for Json support, ConfigurationFactory org.apache.logging.log4j.core.config.json.JsonConfigurationFactory is inactive
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Not in a ServletContext environment, thus not loading WebLookup plugin.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Using configurationFactory org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@6ad82709
INFO | *jvm 1 | 2021/01/13 09:06:09 | WARN StatusLogger Invalid URI file:etc/log4j2.properties*
INFO | jvm 1 | 2021/01/13 09:06:09 | ERROR StatusLogger Reconfiguration failed: No configuration found for '30946e09' at 'null' in 'null'
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
INFO | jvm 1 | 2021/01/13 09:06:09 | DEBUG StatusLogger LoggerContext[name=30946e09, org.apache.logging.log4j.core.LoggerContext@79079097] started OK.
INFO | jvm 1 | 2021/01/13 09:06:10 | WrapperManager class initialized by thread: main Using classloader: jdk.internal.loader.ClassLoaders$AppClassLoader@30946e09

> Reconfiguration failed during backend server startup
> ----------------------------------------------------
>
>                 Key: LOG4J2-2901
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2901
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API, Core
>    Affects Versions: 2.14.0, 2.13.3
>            Reporter: Dejan
>            Priority: Blocker
>             Fix For: 2.14.0
>
>
> I upgraded both components from log4j-api an log4j-core from 2.11.2 to 2.13.3 and started getting weird errors during the startup of our backend services:
> ERROR StatusLogger Reconfiguration failed: No configuration found for '2aae9190' at 'null' in 'null'
> As soon I switch back to 2.11.2 it starts working, and logs are created. The error occurs during bootstrapping phase so it does not look like it is bound to any other framework.
> log4j2 configuration is present and configured correctly as a properties file. It is bootstrapped with -Dlog4j.configuration property. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)