Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error 503 during login, LogDeleteUtil.readFromFile() error in lo

SA-13291

Summary



Whenever user tries  to login, error “ Error 503: PegaRULES server not available” is thrown.

Error Messages




The exception below is seen in logs which causes the PRPC application start-up to fail

Caused by: java.lang.StringIndexOutOfBoundsException
at java.lang.String.<init>(String.java:183)
at com.pega.pegarules.priv.util.LogDeleteUtil.readFromFile(LogDeleteUtil.java:296)
at com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega.handleFirstLogEvent(DailySizeRollingFileAppenderPega.java:167)
at com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega.subAppend(DailySizeRollingFileAppenderPega.java:148)
at com.pega.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at com.pega.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at com.pega.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at com.pega.apache.log4j.AsyncAppender.append(AsyncAppender.java:146)
at com.pega.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at com.pega.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at com.pega.apache.log4j.Category.callAppenders(Category.java:206)
at com.pega.pegarules.priv.LogHelper.infoForced(LogHelper.java:1198)
at com.pega.pegarules.priv.context.web.WebEnvironment.getJNDIContexts(WebEnvironment.java:324)
at com.pega.pegarules.priv.context.web.WebEnvironment._runDiscovery_privact(WebEnvironment.java:260)
at com.pega.pegarules.priv.context.web.WebEnvironment.runDiscovery(WebEnvironment.java:166)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener._contextInitialized_privact(WebAppLifeCycleListener.java:269)
at com.pega.pegarules.web.servlet.WebAppLifeCycleListener.contextInitialized(WebAppLifeCycleListener.java:218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:338)
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:379)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:216)
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:265)
... 26 more


Root Cause



PegaRULES-FirstLogCreationTime.log  is zero byte in the file system. PRPC finds this file in the file system throws the exception above.


Resolution



Remove the zero byte PegaRULES-FirstLogCreationTime.log and restart server.
 

Published August 28, 2015 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us