sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Munoz <camu...@redhat.com>
Subject Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)
Date Fri, 14 Feb 2020 16:50:17 GMT
Thanks Bertrand. How can I run Sling with DEBUG-level logs for every
bundle? I tried passing a few configuration arguments from the command line
but nothing seemed to work.

Carlos

On Fri, Feb 14, 2020 at 4:32 AM Bertrand Delacretaz <bdelacretaz@apache.org>
wrote:

> Hi,
>
> On Thu, Feb 13, 2020 at 8:47 PM Carlos Munoz <camunoz@redhat.com> wrote:
> > ...Is there a reason why the Jcr repository could be restarting? And what
> > class could we start looking into to debug if this is the case?...
>
> It's not uncommon to see extra restarts of OSGi components at startup,
> for various reasons.
>
> The simplest way to detect and log multiple repository startups might
> be to implement a SlingRepositoryInitializer service [1] that's called
> at every startup, or use the logs of an existing one like the JCR
> RepositoryInitializer [2] if that has anything to process in your
> system.
>
> -Bertrand
>
> [1]
> https://sling.apache.org/documentation/bundles/repository-initialization.html#slingrepositoryinitializer
> [2]
> https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/41dfe606f99ca71baee8d9054d3ec6e9b896b12e/src/main/java/org/apache/sling/jcr/repoinit/impl/RepositoryInitializer.java#L98
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message