Hi Marc, On Thu, 2019-02-21 at 18:18 -0500, [email protected] wrote: > Hello Robert et all, > > Thank you for your reply. I have not been able to pair down to a > sample > project that isolates this issue. I'm currently deploying my > application > over and over until I hit the failure mode. I haven't identified the > code that would have created the missing primary types. I could use > some ideas on where to look next, even if it is just a best guess. > > In the failed state I can see that the component > org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager > is > active according the Felix Webconsole. But there is no corresponding > service of the type org.apache.sling.jcr.api.SlingRepository. This > may > another version of the information the logs are telling me. But it > is > something I noticed trying to compare working and not working > instances. > > Any ideas would be helpful at this point. I was kind of hoping that > the > log messages might trigger an "oh yeah, I've seen this before in X" > kind > of moment, since I currently have no purchase on the problem.
Unfortunately I haven't seen this problem so far. Could you maybe try the same setup with the old Oak version that was working? If you encounter the same problem it's probably not Oak, so at least we can rule that out. Also, do you have any custom code that plugs into the repository initialisation? The index you referenced is created by ExtraSlingContent [1] and is added _after_ Oak's InitialContent [2][3]. So the question is - has the InitialContent been installed successfully? Are you able to inspect the repository after in the scenario where this fails? Thanks, Robert [1]: https://github.com/apache/sling-org-apache-sling-jcr-oak-server/blob/6aa041d47fe5a8df834b83170bc0f5df460ed94d/src/main/java/org/apache/sling/jcr/oak/server/internal/OakSlingRepositoryManager.java#L212 [2]: https://github.com/apache/sling-org-apache-sling-jcr-oak-server/blob/6aa041d47fe5a8df834b83170bc0f5df460ed94d/src/main/java/org/apache/sling/jcr/oak/server/internal/OakSlingRepositoryManager.java#L127-L128 [3]: https://github.com/apache/jackrabbit-oak/blob/jackrabbit-oak-1.10.0/oak-core/src/main/java/org/apache/jackrabbit/oak/InitialContent.java
