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

saerach field is not working fine as expected

SA-12473

 

Summary



When User is trying to search any rule content in search field of PEGA developer portal getting the error : 'Search failed because the index is unavailable. Please contact System Administrator'.

Error Messages



ERROR   - Attempt to create index dir failed - 

java.io.IOException: Cannot create directory: /opt/WebSphere6/wasadm2/PegaIndex/wwsyclt1/RuleIndex
            at com.pega.apache.lucene.store.FSDirectory.create(FSDirectory.java:158)
            at com.pega.apache.lucene.store.FSDirectory.(FSDirectory.java:148)
            at com.pega.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:108)
            at com.pega.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:89)
            at com.pega.pegarules.engine.search.RuleIndexer.getOptimizedIndexWriter(RuleIndexer.java:1565)
            at com.pega.pegarules.engine.search.RuleIndexer.seedIndexDir(RuleIndexer.java:1538)
            at com.pega.pegarules.engine.search.RuleIndexer.optimizeIndex(RuleIndexer.java:1053)
            at com.pega.pegarules.engine.search.RuleIndexer.optimizeIndices(RuleIndexer.java:1040)
            at com.pega.pegarules.management.IndexManagementAPI.OptimizePegaRULESIndex(IndexManagementAPI.java:108)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
            at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
            at com.pega.pegarules.management.MB2EngineAccess.invoke(MB2EngineAccess.java:136)
            at com.pega.pegarules.etier.impl.EngineImpl._invoke_privact(EngineImpl.java:329)
            at com.pega.pegarules.etier.impl.EngineImpl.run(EngineImpl.java:314)
            at com.pega.pegarules.engine.context.PREnvironment.doWithRequestorLocked(PREnvironment.java(Compiled Code))
            at com.pega.pegarules.engine.context.PREnvironment.doWithRequestorLocked(PREnvironment.java(Inlined Compiled Code))
            at com.pega.pegarules.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java(Compiled Code))
            at com.pega.pegarules.etier.impl.EngineImpl.invokeEngine(EngineImpl.java(Compiled Code))
            at com.pega.pegarules.etier.ejb.EngineBean.invokeEngine(EngineBean.java(Compiled Code))
            at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
            at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

Steps to Reproduce



Unable to reproduce ,since the issue is sporadic

Root Cause



Issue is due to index directory not exist in the path. Due to insufficient permissions not able to create the index directory.

Resolution



Index directory created and granted Read/Write/Execute permissions on the directory.
 

Published July 27, 2015 - Updated December 2, 2021

Was this useful?

0% 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