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

NullPointer occurs and second node fails to initialize Search

SA-100905

Summary



Two nodes in the system have the same default four node types. The first node starts correctly. The second node fails to initialize the Search.


Error Messages



[] [STANDARD] [ ] [  ] (Manager.PegaSearchProviderImpl) ERROR   - Failed to initialize full text search functionality for this node.

com.pega.platform.search.searchmanager.FTSInitializationException: Failed to initialize full text search for this node.

        at com.pega.platform.search.internal.ESSearchProviderEmbedded.initializeElasticSearchNode(ESSearchProviderEmbedded.java:204) ~[search.jar:?]

        at com.pega.platform.search.internal.ESSearchProviderEmbedded.startSearch(ESSearchProviderEmbedded.java:78) ~[search.jar:?]

        at com.pega.platform.search.searchmanager.internal.AbstractSearchManager.startSearch(AbstractSearchManager.java:22) ~[search.jar:?]

        at com.pega.platform.pegasearch.searchmanager.internal.PegaSearchProviderImpl._initializeFTS(PegaSearchProviderImpl.java:336) ~[pegasearch.jar:?]

        at com.pega.platform.pegasearch.searchmanager.internal.PegaSearchProviderImpl.initializeFTS(PegaSearchProviderImpl.java:191) [pegasearch.jar:?]

        at c…..

Caused by: java.lang.NullPointerException

        at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:286) ~[?:1.8.0]

        at org.elasticsearch.common.io.PathUtils.get(PathUtils.java:60) ~[elasticsearch-5.6.9.jar:?]

        at org.elasticsearch.monitor.os.OsProbe.readSysFsCgroupCpuAcctCpuAcctUsage(OsProbe.java:274) ~[elasticsearch-5.6.9.jar:?]

        at org.elasticsearch.monitor.os.OsProbe.getCgroupCpuAcctUsageNanos(OsProbe.java:261) ~[elasticsearch-5.6.9.jar:?]


Steps to Reproduce



Start the second node.


Root Cause



A defect or configuration issue in the operating environment.
The error is related to the cgroups configuration on the Linux node.



Resolution



Make the following change to the operating environment:

Modify the cgroups with the command similar to the below.

sudo mount -t cgroup -o rw,nosuid,nodev,noexec,relatime,cpu,cpuacct cgroup /sys/fs/cgroup/cpu,cpuacct

Published February 24, 2020 - 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