From dev-return-103496-archive-asf-public=cust-asf.ponee.io@sling.apache.org Fri Feb 14 19:14:56 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B849D180647 for ; Fri, 14 Feb 2020 20:14:55 +0100 (CET) Received: (qmail 46083 invoked by uid 500); 14 Feb 2020 19:14:55 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 46069 invoked by uid 99); 14 Feb 2020 19:14:55 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2020 19:14:55 +0000 Received: from [10.136.170.172] (unknown [193.105.139.131]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 6BFB52233 for ; Fri, 14 Feb 2020 19:14:54 +0000 (UTC) Message-ID: <9bd3d5545b34ed13c503818a0ca5377f09c78dac.camel@apache.org> Subject: Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results) From: Robert Munteanu To: dev@sling.apache.org Date: Fri, 14 Feb 2020 20:14:55 +0100 In-Reply-To: References: <21b4d5e3e5b29d9ccec6e98a6fe58dd227d72993.camel@apache.org> <636503200ccc6eb8bbcd6b21dd7b163ed89c7976.camel@apache.org> <7139d074-0ab7-4a61-4796-6a75b0be59ac@apache.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Hi Carlos, On Fri, 2020-02-14 at 11:50 -0500, Carlos Munoz wrote: > 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. Try configuring the LogManager to debug at https://github.com/apache/sling-org-apache-sling-starter/blob/8ba34e28fbea2feb4c61767dde510aa94d86fa0a/src/main/provisioning/sling.txt#L138 Thanks, Robert > > 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 > > 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 > > > >