Err.log

Getting errors like this on my servers in a file called err.log. I have them for other log files like exception.log too. Not sure what writes the err.log and what that means

lucee-server\context\logs\application.log; Current state = FLUSHED, new state = CODING_END
java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END

here are others.

2023-06-05 14:45:19.353 log-loading Unable to write toC:\backatyou\lucee\sites\contexts\sites\logs\datasource.log; Stream closed
java.io.IOException: Stream closed
at sun.nio.cs.StreamEncoder.ensureOpen(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.Writer.write(Unknown Source)
at lucee.commons.io.log.log4j2.appender.ResourceAppender.append(ResourceAppender.java:83)
at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:161)
at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:134)
at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:125)
at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:89)
at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:675)
at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:633)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:616)
at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:552)
at org.apache.logging.log4j.core.config.DefaultReliabilityStrategy.log(DefaultReliabilityStrategy.java:63)
at org.apache.logging.log4j.core.Logger.log(Logger.java:161)
at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2205)
at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2159)
at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2142)
at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2017)
at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1983)
at org.apache.logging.log4j.spi.AbstractLogger.log(AbstractLogger.java:1652)
at lucee.commons.io.log.log4j2.LogAdapter.log(LogAdapter.java:31)
at lucee.commons.io.log.log4j2.LogAdapter.info(LogAdapter.java:55)
at lucee.runtime.tag.Query._doEndTag(Query.java:781)
at lucee.runtime.tag.Query.doEndTag(Query.java:566)
at lucee.runtime.functions.query.QueryExecute.call(QueryExecute.java:86)
at iqquery_cfc$cf.udfCall1(/iqquery.cfc:236)
at iqquery_cfc$cf.udfCall(/iqquery.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at iqquery_cfc$cf.udfCall1(/iqquery.cfc:129)
at iqquery_cfc$cf.udfCall(/iqquery.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:584)
at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1950)
at lucee.runtime.tag.CFTag.cfcEndTag(CFTag.java:560)
at lucee.runtime.tag.CFTag.doAfterBody(CFTag.java:206)
at app._sitemap_cfm$cf.call(/app/_sitemap.cfm:173)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:929)
at lib.iq_cfc$cf.udfCall1(/lib/iq.cfc:90)
at lib.iq_cfc$cf.udfCall(/lib/iq.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at lib.iq_cfc$cf.udfCall1(/lib/iq.cfc:45)
at lib.iq_cfc$cf.udfCall(/lib/iq.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at lib.iq_cfc$cf.udfCall1(/lib/iq.cfc:29)
at lib.iq_cfc$cf.udfCall(/lib/iq.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:696)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:584)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1931)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
at application_cfc$cf.udfCall(/application.cfc:233)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:696)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:584)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1931)
at lucee.runtime.listener.ModernAppListener.call(ModernAppListener.java:444)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:218)
at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:107)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)

please always describe your env, lucee version, database / ext version, everything that might be relevant to your support request

Windows
Latest Lucee Release version.

Mostly my question is, what is the err.log? The other logs are self explanatory, no clue where that one is coming from.

I had one on a server that got to 20gb.

This is literally filling up my servers HD. The err.log was 11gb since yesterday. I need to know what is generating the err.log

I found where the err.log comes from. I am now trying to understand why lucee is erroring on things like rotating logs.

err.log and out.log are the underlying logging for the core systems before log4j is even started

see the 5.4 release notes about a logging fix

May or may not be related, but I’m picking up this issue after upgrading commons-io from 2.11.0 to 2.13.0. Reverting to 2.11.0 resolves the issue

Caused by: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
at java.base/java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:996)
at java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:578)
at org.apache.commons.io.input.ReaderInputStream.fillBuffer(ReaderInputStream.java:357)
at org.apache.commons.io.input.ReaderInputStream.read(ReaderInputStream.java:388)
at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:165)

2.11.0 is the latest we bundle with 5.4 and 6.0, are you doing custom builds?