Expand my Community achievements bar.

error.log not getting generated

Avatar

Level 2

Dear All,

I have configured error.log in AEM console but still logs and not getting printed in the file

as below

1847065_pastedImage_1.png

But Still error.logs are not getting printed.
Is there a problem with this configuration or am i missing something?

Thanks in Adavance.
Regards,
Naziya

6 Replies

Avatar

Employee

Are you saying by default the "error.log" was not getting created ?

Can you see this logger in http://host:port/system/console/slinglog

Avatar

Employee Advisor

Can you go to http://<host>:<port>/system/console/bundles and restart the following bundles:

org.apache.sling.commons.logservice
org.apache.sling.commons.log

com.adobe.granite.logging

com.adobe.granite.requests.logging

log4j.over.slf4j

Avatar

Level 1
Hi jbrar, Even i faced similar issues, After restarting the above bundles logs started working. But this is happening quite frequently, may i know root cause of the issue and let me know if any configuration changes has to be done please.

Avatar

Employee Advisor
Please log a daycare , share log files and we can check whats going on.

Avatar

Level 2

Hi Hamid,

No they were generating and suddenly all logs stopped generating only stdout.log is generating rest all are not getting generated at all.
I have tried restarting server several times.

Avatar

Level 2

Hi Jaideep,

As suggested by i tried restating the bundles org.apache.sling.commons.log is not starting at all and printing following error in stdout.log file.

[ERROR] %bundles.pluginTitle: Cannot start

org.osgi.framework.BundleException: Activator start error in bundle org.apache.sling.commons.log [11].

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)

        at org.apache.felix.webconsole.internal.core.BundlesServlet.doPost(BundlesServlet.java:359)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

        at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:563)

        at org.apache.felix.webconsole.internal.servlet.OsgiManager$3.run(OsgiManager.java:465)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:461)

        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:120)

        at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:86)

        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:328)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)

        at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)

        at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)

        at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)

        at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:96)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)

        at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)

        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:131)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:135)

        at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:147)

        at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager.invokePreprocessors(WhiteboardManager.java:1000)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:91)

        at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)

        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)

        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)

        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)

        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)

        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)

        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)

        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)

        at org.eclipse.jetty.server.Server.handle(Server.java:534)

        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)

        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)

        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)

        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)

        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)

        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)

        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)

        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)

        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NullPointerException

        at org.apache.sling.commons.log.logback.internal.LogbackManager$LoggerStateContext.<init>(LogbackManager.java:733)

        at org.apache.sling.commons.log.logback.internal.LogbackManager.determineLoggerState(LogbackManager.java:663)

        at org.apache.sling.commons.log.logback.internal.FilterTracker.getAppenderMap(FilterTracker.java:173)

        at org.apache.sling.commons.log.logback.internal.FilterTracker.addingService(FilterTracker.java:67)

        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)

        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)

        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)

        at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)

        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)

        at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)

        at org.apache.sling.commons.log.logback.internal.FilterTracker.<init>(FilterTracker.java:55)

        at org.apache.sling.commons.log.logback.internal.LogbackManager.<init>(LogbackManager.java:153)

        at org.apache.sling.commons.log.logback.internal.Activator.initializeLogbackManager(Activator.java:75)

        at org.apache.sling.commons.log.logback.internal.Activator.start(Activator.java:55)

        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)

And if I try refreshing its packages it gives below error1847357_pastedImage_1.png