sub-Wiki nested pages not found

After upgrade to 17.10.7 we experienced the nested pages of one sub-wiki were not seen.

and logs showed following lines

2026-05-22 15:48:28,902 [http-nio-8080-exec-86 - http://{domain}/wiki/bin/get/Dokumenty/{URI}/WebHome] WARN  .n.ChildDocumentsTreeNodeGroup - Failed to retrieve the children of [document:xwiki:Dokumenty.WebHome]. Root cause [IllegalArgumentException: No query defined for that name [nestedPagesOrderedByTitleAsc]].
2026-05-22 15:48:36,954 [http-nio-8080-exec-102 - http://{domain}/wiki/bin/get/Dokumenty/{URI}/WebHome] WARN  .n.ChildDocumentsTreeNodeGroup - Failed to retrieve the children of [wiki:xwiki]. Root cause [IllegalArgumentException: No query defined for that name [nonTerminalPagesOrderedByTitleAsc]].

restart of XWiki solved the issue at the time, but similar issue just happened again.

We run actual version 17.10.8 already and see the very similar issue:

What might went wrong or how to handle this sort of issues the best way?

Is there way to monitor XWiki as it is hard to went through all spaces to make us sure everything is ok after every maintenance.

Evidence of the error in logs

2026-07-08 21:21:09,199 [http-nio-8080-exec-580 - http://xwiki.../wiki/wiki/vpip/get/VPIP/WebHome] WARN  .n.ChildDocumentsTreeNodeGroup - Failed to retrieve the children of [wiki:vpip]. Root cause [IllegalArgumentException: No query defined for that name [nonTerminalPagesOrderedByTitleAsc]]. 
2026-07-08 21:21:11,562 [http-nio-8080-exec-570 - http://xwiki.../wiki/wiki/vpip/get/VPIP/WebHome] WARN  .n.ChildDocumentsTreeNodeGroup - Failed to retrieve the children of [document:vpip:VPIP.WebHome]. Root cause [IllegalArgumentException: No query defined for that name [nestedPagesOrderedByTitleAsc]].

it might be related to wrong handling of “container restart” by administrator in K8s

related to “kill POD” vs. “down scale” (killing POD leads to the reported issue, downscaling is the proper way to “restart XWiki”)