Re: Running groovy scripts in composum

2020-12-04 Thread Carlos Munoz
as. IS there a way to change this? On Thu, Dec 3, 2020 at 7:21 PM Carlos Munoz wrote: > Thanks Oliver. > > With regards to Sling Karaf, we’ve had to resort to forking the configs > and features’ repos in order to have frozen releases to work with. Is there > a plan to do a

Re: Sling data migrations

2020-12-04 Thread Carlos Munoz
pendency), > 2. check that plumberimpl is active > 3. in your code have plumber as a reference (with the osgi annotation) > > Hope this helps > Nicolas > > Le ven. 4 déc. 2020 à 03:36, Carlos Munoz a écrit : > > > Hi Nicholas, > > > > I'm reviving this thread as I ha

Re: Sling data migrations

2020-12-03 Thread Carlos Munoz
2:51 AM Nicolas Peltier > > wrote: > > > > > Hi Carlos, > > > > > > one approach (not saying it's the best, i'm the main maintainer of > them) > > is > > > to use a handful of sling pipes [0] and script to kick them off, or as > > > pac

Re: Running groovy scripts in composum

2020-12-03 Thread Carlos Munoz
, Dec 3, 2020 at 6:32 PM Oliver Lietz wrote: > On Thursday, December 3, 2020 6:07:33 PM CET Carlos Munoz wrote: > > I got it working. Interestingly enough when I installed the groovy-all > > bundle from the karaf console it didn't work, but if I installed it > > directly as par

Re: Running groovy scripts in composum

2020-12-03 Thread Carlos Munoz
I got it working. Interestingly enough when I installed the groovy-all bundle from the karaf console it didn't work, but if I installed it directly as part of the distribution it's successful. On Thu, Dec 3, 2020 at 8:06 AM Carlos Munoz wrote: > Thanks Oliver. > > Here's the informat

Re: Running groovy scripts in composum

2020-12-03 Thread Carlos Munoz
0 │ 2.4.19 │ Groovy Runtime On Thu, Dec 3, 2020 at 11:18 AM Oliver Lietz wrote: > On Wednesday, December 2, 2020 11:33:59 PM CET Carlos Munoz wrote: > > Hi all, > > Hi Carlos, > > > I am trying to run a groovy script directly from the resource br

Re: Running groovy scripts in composum

2020-12-03 Thread Carlos Munoz
der JAR. > > [1] - https://issues.apache.org/jira/browse/SLING-9421 > > > On Thu, Dec 3, 2020 at 4:43 AM Bertrand Delacretaz > wrote: > > > > Hi Carlos, > > > > On Wed, Dec 2, 2020 at 11:34 PM Carlos Munoz wrote: > > > ...I am trying to run a gr

Running groovy scripts in composum

2020-12-02 Thread Carlos Munoz
Hi all, I am trying to run a groovy script directly from the resource browser in composum, and getting a ClassNotFoundExfeption for one of the groovy base classes, even when groovy is deployed on the sling instance. Has anyone run into this problem? Regards, Carlos -- Carlos A. Muñoz Senior

Re: Latest updates to sling karaf features throwing bson decode exception

2020-09-09 Thread Carlos Munoz
Hi Oliver, I have been working with AP on this. Is it possible to have some stable (non-SNAPSHOT) releases of the karaf artifacts? Right now we are forking these repos to make sure things don't change from under us, but that might not be the ideal solution. Regards, Carlos On Mon, Sep 7, 2020

Re: Deprecated org.apache.sling.servlets.post.AbstractPostOperation

2020-06-22 Thread Carlos Munoz
package that is not accessible as part of the bundle. Regards, Carlos On Mon, Jun 22, 2020 at 10:35 AM Bertrand Delacretaz wrote: > On Mon, Jun 22, 2020 at 2:36 PM Carlos Munoz wrote: > > ...My suggestion would be to add this > > solution you just proposed to the javadocs of t

Re: Deprecated org.apache.sling.servlets.post.AbstractPostOperation

2020-06-22 Thread Carlos Munoz
t; On Thu, Jun 18, 2020 at 3:59 AM Carlos Munoz wrote: > ... > > https://github.com/apache/sling-org-apache-sling-servlets-post/pull/5 > ... > > Thank you for this! > > In the meantime I think there's a simpler

Re: Deprecated org.apache.sling.servlets.post.AbstractPostOperation

2020-06-17 Thread Carlos Munoz
11, 2020 at 1:51 PM Carlos Munoz wrote: > > ...I might take it upon myself to code up said public replacement (my > first > > Sling contribution!) which avoids using the jcr apis... > > That would be fantastic! As mentioned, moving the code from the > servlets.post.imp

Re: Deprecated org.apache.sling.servlets.post.AbstractPostOperation

2020-06-11 Thread Carlos Munoz
up said public replacement (my first Sling contribution!) which avoids using the jcr apis. Regards, Carlos On Thu, Jun 11, 2020 at 4:40 AM Bertrand Delacretaz wrote: > Hi, > > On Thu, Jun 11, 2020 at 3:06 AM Carlos Munoz wrote: > > ...We are curren

Deprecated org.apache.sling.servlets.post.AbstractPostOperation

2020-06-10 Thread Carlos Munoz
Hi all, We are currently using class org.apache.sling.servlets.post.AbstractPostOperation but it is deprecated (seems to have been for a while). We found non-deprecated class org.apache.sling.servlets.post.impl.operations.AbstractPostOperation which seems to be almost the same (save for a thrown

Re: Sling data migrations

2020-06-10 Thread Carlos Munoz
t; > Nicolas > > > > [0] https://sling.apache.org/documentation/bundles/sling-pipes.html > > > > Le mar. 9 juin 2020 à 23:55, Carlos Munoz a écrit : > > > > > Hi Sling devs, I was wondering what the best approach would be to take > an > > > exisiting repository and making changes to the content structure in a > > safe > > > and repeatable way. > > > > > > Thanks in advance! > > > > > >

Sling data migrations

2020-06-09 Thread Carlos Munoz
Hi Sling devs, I was wondering what the best approach would be to take an exisiting repository and making changes to the content structure in a safe and repeatable way. Thanks in advance!

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-28 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17094730#comment-17094730 ] Carlos Munoz commented on SLING-9118: - This might be a loosely related question to the subject

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-27 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17093610#comment-17093610 ] Carlos Munoz commented on SLING-9118: - [~olli] I got our application running on Karaf. So far I'm

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-23 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17090938#comment-17090938 ] Carlos Munoz commented on SLING-9118: - Thanks [~rombert]  and [~olli]. I tried the feature model

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-21 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17088903#comment-17088903 ] Carlos Munoz commented on SLING-9118: - I have only briefly looked at the feature model. Is it mature

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-16 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084753#comment-17084753 ] Carlos Munoz commented on SLING-9118: - Thank you Robert. Please let us know if we can do anything

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-06 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17076428#comment-17076428 ] Carlos Munoz commented on SLING-9118: - Ahh... here it is: [^error.log] > Sling fails to start w

[jira] [Updated] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-06 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Munoz updated SLING-9118: Attachment: error.log > Sling fails to start when database exists but 'sling' directory is miss

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-03 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17074861#comment-17074861 ] Carlos Munoz commented on SLING-9118: - Attached: [^sling-startup-error.log.txt] > Sling fa

[jira] [Updated] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-03 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Munoz updated SLING-9118: Attachment: sling-startup-error.log.txt > Sling fails to start when database exists but 'sl

[jira] [Comment Edited] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17074086#comment-17074086 ] Carlos Munoz edited comment on SLING-9118 at 4/2/20, 8:58 PM: -- I also

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17074086#comment-17074086 ] Carlos Munoz commented on SLING-9118: - I also discovered that if I leave just the 'sling/config

[jira] [Updated] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Munoz updated SLING-9118: Attachment: (was: recreateSlingReplicaSet.sh) > Sling fails to start when database exi

[jira] [Updated] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Munoz updated SLING-9118: Attachment: recreateSlingReplicaSet.sh > Sling fails to start when database exists but 'sl

[jira] [Comment Edited] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17074066#comment-17074066 ] Carlos Munoz edited comment on SLING-9118 at 4/2/20, 8:21 PM: -- Thanks

[jira] [Updated] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Munoz updated SLING-9118: Attachment: recreateSlingReplicaSet.sh > Sling fails to start when database exists but 'sl

[jira] [Commented] (SLING-9118) Sling fails to start when database exists but 'sling' directory is missing

2020-04-02 Thread Carlos Munoz (Jira)
[ https://issues.apache.org/jira/browse/SLING-9118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17074066#comment-17074066 ] Carlos Munoz commented on SLING-9118: - Thanks for looking into this Robert. I followed your

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-03-26 Thread Carlos Munoz
-base/commit/6f5771a > - https://github.com/apache/sling-org-apache-sling-jcr-base/commit/3de2b9f > > But that failed due to conflicts. I will try and manually remove the > changes and see what that does. > Robert > > On Wed, 2020-03-18 at 21:24 -0400, Carlos Munoz wrote: >

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-03-18 Thread Carlos Munoz
gt; coming from. > > Thanks! > Robert > > On Mon, 2020-03-16 at 16:27 -0400, Carlos Munoz wrote: > > Hi Robert, > > > > Just a friendly ping about this issue :) > > > > We could try to submit a fix with some potential guidance from you. &

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-03-16 Thread Carlos Munoz
Hi Robert, Just a friendly ping about this issue :) We could try to submit a fix with some potential guidance from you. For example, which of the many Sling bundles should we start looking at? Regards, Carlos On Wed, Feb 26, 2020 at 7:24 AM Carlos Munoz wrote: > Thanks Robert. As alw

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-26 Thread Carlos Munoz
script that detects the abnormal startup problem > > > and > > > restarts Sling, so that it starts up successfully. > > > > > > Another would be to persist the 'sling' directory as a per- > > > container > > > volume. Not sure how easy that is wi

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-17 Thread Carlos Munoz
. Carlos On Mon, Feb 17, 2020 at 5:23 AM Robert Munteanu wrote: > On Fri, 2020-02-14 at 15:41 -0500, Carlos Munoz wrote: > > Robert I managed to replicate the issue in a local, non-containerized > > environment (!!!). > > > > The problem seems to be when the data

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-14 Thread Carlos Munoz
Carlos Munoz wrote: > Thanks Robert (and once again I can't stress enough how grateful I am for > all your help). > > Right now we deploy our container with the expectation that the mongo db > is the only necessary state we need to keep; everything else is throwaway. > This means

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-14 Thread Carlos Munoz
to break with the more up-to-date bundles. Perhaps running Sling in a container is just not meant to be. Regards, Carlos On Fri, Feb 14, 2020 at 2:21 PM Robert Munteanu wrote: > Hi Carlos, > > On Fri, 2020-02-14 at 11:50 -0500, Carlos Munoz wrote: > > Thanks Bertrand. How

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-14 Thread Carlos Munoz
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 wrote: > Hi, > > On Thu, Feb 13, 2020 at 8:47 PM Car

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-13 Thread Carlos Munoz
if this is the case? I have unsuccessfully tried to increase the logging level in Sling but nothing I've done has worked. Carlos On Tue, Feb 11, 2020 at 4:43 AM Robert Munteanu wrote: > On Mon, 2020-02-10 at 17:16 -0500, Carlos Munoz wrote: > > Thanks Sergiu, I will give that a sho

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-10 Thread Carlos Munoz
Thanks Sergiu, I will give that a shot (removing that configuration item I mean). I actually managed to replicate some of the weird symptoms locally. It required me to set up a local mongo replica set. (I used podman, so let me know if you need the steps I followed to do this). The first time I

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-07 Thread Carlos Munoz
.loginService(AbstractSlingRepository2.java:387) I wonder if the sling pod is leaving the database in an unusable state when being brought down. Regards, Carlos On Thu, Feb 6, 2020 at 4:11 AM Robert Munteanu wrote: > On Wed, 2020-02-05 at 21:17 -0500, Carlos Munoz wrote: > > Hi all, > &

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-05 Thread Carlos Munoz
are attempting to use it simultaneously. If I am right, then our core problem to figure out is how to upgrade a database from one sling version to the next. Let me know what you all think. Regards, Carlos On Tue, Feb 4, 2020 at 7:06 AM Carlos Munoz wrote: > Thanks Bertrand! I will continue my f

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-04 Thread Carlos Munoz
Thanks Bertrand! I will continue my fact finding mission here :) Regards, Carlos On Tue, Feb 4, 2020 at 4:31 AM Bertrand Delacretaz wrote: > Hi, > > On Sun, Feb 2, 2020 at 4:50 AM Carlos Munoz wrote: > > ...do configurations from the > > repoinit files get installe

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-02-01 Thread Carlos Munoz
ends on containers. > > Thanks, > Robert > > > [1]: > https://builds.apache.org/job/Sling/job/sling-org-apache-sling-starter/job/master/104/console > > On Wed, 2020-01-29 at 21:27 -0500, Carlos Munoz wrote: > > Robert, I checked the latest (master) pipel

Re: Error migrating to latest version of the bundles - Can neither derive user name nor principal names (was: Slow queries and unexpected results)

2020-01-30 Thread Carlos Munoz
till like to get some steps to reproduce - even if it's a change > of 1 in 3, even if it depends on containers. > > Thanks, > Robert > > > [1]: > https://builds.apache.org/job/Sling/job/sling-org-apache-sling-starter/job/master/104/console > > On Wed, 2020-01-29 at 21:27 -0

Re: Slow queries and unexpected results

2020-01-29 Thread Carlos Munoz
), but same type of exception nonetheless. Carlos On Wed, Jan 29, 2020 at 7:47 PM Carlos Munoz wrote: > Robert, I wonder if this is a timing issue. I’m not sure I understand how > Sling is loading bundles and configurations, but is it possible that it > could load up a bundle wh

Re: Slow queries and unexpected results

2020-01-29 Thread Carlos Munoz
the error now on a containerized environment where resources may be more virtualized than in a local environment, where the application seems to run without any issues. Regards, Carlos On Tue, Jan 28, 2020 at 10:11 PM Carlos Munoz wrote: > Hi Robert, I'm picking up this thread again since we brie

Re: Slow queries and unexpected results

2020-01-28 Thread Carlos Munoz
> On Fri, 2020-01-24 at 10:58 -0500, Carlos Munoz wrote: > > Thanks Robert. I think we actually found out what was going on: it > > seems we > > have a poorly defined index which was being deployed as part of our > > bundle > > and which was interfering with some

Re: Slow queries and unexpected results

2020-01-24 Thread Carlos Munoz
t; during an 'upgrade'. > > Can you please give me a set of steps to reproduce? Ideally without > MongoDB, but if that's required leave it in :-) > > Thanks, > Robert > > On Wed, 2020-01-22 at 22:08 -0500, Carlos Munoz wrote: > > I double checked and we do have the mapp

Re: Slow queries and unexpected results

2020-01-22 Thread Carlos Munoz
://github.com/apache/sling-org-apache-sling-starter/commit/c4f6e3b [2] https://github.com/redhataccess/pantheon/tree/upgrade-sling-bundles/pantheon-slingstart/src/main/provisioning On Wed, Jan 22, 2020 at 4:54 PM Robert Munteanu wrote: > On Wed, 2020-01-22 at 16:16 -0500, Carlos Munoz wrote: > &g

Re: Slow queries and unexpected results

2020-01-22 Thread Carlos Munoz
sitory is planning to execute the query which may identify any > traversal or index issues: > https://jackrabbit.apache.org/oak/docs/query/grammar-sql2.html#explain > > > On Wed, Jan 22, 2020 at 12:06 PM Carlos Munoz wrote: > > > Thanks heaps Robert, sounds like way more than I

Re: Slow queries and unexpected results

2020-01-22 Thread Carlos Munoz
Thanks heaps Robert, sounds like way more than I was expecting :) I'll try these things and let you know how it goes. On Wed, Jan 22, 2020 at 9:31 AM Robert Munteanu wrote: > Hi Carlos, > > On Wed, 2020-01-22 at 07:11 -0500, Carlos Munoz wrote: > > Thanks for the reply Rober

Re: Slow queries and unexpected results

2020-01-22 Thread Carlos Munoz
. Regards, Carlos On Wed, Jan 22, 2020 at 4:47 AM Robert Munteanu wrote: > Hi Carlos, > > On Tue, 2020-01-21 at 22:31 -0500, Carlos Munoz wrote: > > Hi, > > > > My team is using Sling for an internal application and we've run into > > a > > couple o

Slow queries and unexpected results

2020-01-21 Thread Carlos Munoz
Hi, My team is using Sling for an internal application and we've run into a couple of unexpected scenarios: 1. When modifying the nodetypes.cnd file included with our bundle (e.g. adding a new node type), the application queries seem to stop working. This only happens when the queries use the